# Path: trep/visual/splineplotter.py
# def plot_spline(spline, points=1000):
#     app = QApplication([])
#     plotter = SplinePlotter(spline, points)
#     plotter.show()
#     app.exec_()


import trep
from trep.visual.splineplotter import plot_spline
        ( 0.010300, 0.161000),
        ( 0.011800, 0.208000),
        ( 0.012300, 0.227000),
        ( 0.033000, 1.000000),
        ( 0.059648, 2.000000),
        ( 9.200000,345.000000),
        ( 9.201000,345.000000),
        ( 9.202000,345.000000),
        (20.000000,345.000000)
    ]

data2b = [
    (-10.0, 0.0, 0.0, 0.0),
    ( 0.000000, 0.000000, 0.0, 0.0),
    ## ( 0.001310, 0.010800),
    ## ( 0.002810, 0.025700),
    ## ( 0.004310, 0.043500),
    ## ( 0.005810, 0.065200),
    ## ( 0.007310, 0.091500),
    ## ( 0.008810, 0.123000),
    ## ( 0.010300, 0.161000),
    ## ( 0.011800, 0.208000),
    ## ( 0.012300, 0.227000),
    #( 0.033000, 1.000000),
    #( 0.059648, 2.000000, None, 0.0),
    #( 4.200000,345.000000, None, 0, 0.0),
    ( 10.0, 345.0, 0.0, 0.0)
    ]



# Path: trep/visual/splineplotter.py
# def plot_spline(spline, points=1000):
#     app = QApplication([])
#     plotter = SplinePlotter(spline, points)
#     plotter.show()
#     app.exec_()


# Path: examples/spline.py
import trep
from trep.visual.splineplotter import plot_spline

        ( 0.010300, 0.161000),
        ( 0.011800, 0.208000),
        ( 0.012300, 0.227000),
        ( 0.033000, 1.000000),
        ( 0.059648, 2.000000),
        ( 9.200000,345.000000),
        ( 9.201000,345.000000),
        ( 9.202000,345.000000),
        (20.000000,345.000000)
    ]

data2b = [
    (-10.0, 0.0, 0.0, 0.0),
    ( 0.000000, 0.000000, 0.0, 0.0),
    ## ( 0.001310, 0.010800),
    ## ( 0.002810, 0.025700),
    ## ( 0.004310, 0.043500),
    ## ( 0.005810, 0.065200),
    ## ( 0.007310, 0.091500),
    ## ( 0.008810, 0.123000),
    ## ( 0.010300, 0.161000),
    ## ( 0.011800, 0.208000),
    ## ( 0.012300, 0.227000),
    #( 0.033000, 1.000000),
    #( 0.059648, 2.000000, None, 0.0),
    #( 4.200000,345.000000, None, 0, 0.0),
    ( 10.0, 345.0, 0.0, 0.0)
    ]



plot_spline(trep.Spline(data2b))