Exemplo n.º 1
0
def test_eval_points():
    plotbackend.ioff()
    x = np.linspace(0, 5, 21)
    d = PlotData(np.sin(x), x)
    xi = np.linspace(0, 5, 61)
    di = PlotData(d.eval_points(xi, method='cubic'), xi)
    d.plot('.')
    di.plot()
    di.show()
Exemplo n.º 2
0
def test_eval_points():
    plotbackend.ioff()
    x = np.linspace(0, 5, 21)
    d = PlotData(np.sin(x), x)
    xi = np.linspace(0, 5, 61)
    di = PlotData(d.eval_points(xi, method='cubic'), xi)
    d.plot('.')
    di.plot()
    di.show()
Exemplo n.º 3
0
def test_plotdata():
    plotbackend.ioff()
    x = np.arange(-2, 2, 0.4)
    xi = np.arange(-2, 2, 0.1)
    
    d = PlotData(np.sin(x), x, xlab='x', ylab='sin', title='sinus', plot_args=['r.'])
    di = PlotData(d.eval_points(xi, method='cubic'), xi)
    unused_hi = di.plot()
    unused_h = d.plot()
    d.show()
Exemplo n.º 4
0
def test_plotdata():
    plotbackend.ioff()
    x = np.arange(-2, 2, 0.4)
    xi = np.arange(-2, 2, 0.1)

    d = PlotData(np.sin(x),
                 x,
                 xlab='x',
                 ylab='sin',
                 title='sinus',
                 plot_args=['r.'])
    di = PlotData(d.eval_points(xi, method='cubic'), xi)
    unused_hi = di.plot()
    unused_h = d.plot()
    d.show()