Esempio n. 1
0
    def test_triangular(self):
        from mpl_plotter.presets.publication import two_d

        t = np.linspace(0, 4, 1000)
        s_c = 2*triangular((t-2)/2, t)

        two_d.line(t, s_c, show=True)
Esempio n. 2
0
    def test_square(self):
        from mpl_plotter.presets.publication import two_d

        t = np.linspace(0, 4, 1000)
        s = square((t-2)/2, t)

        two_d.line(t, s, show=True)
 def test_precision2(self):
     from mpl_plotter.presets.precision import two_d
     two_d.line(x, z, color=one()[5], show=show, backend=backend)
     two_d.scatter(x, z, norm=z, show=show, backend=backend)
     two_d.heatmap(color=one()[5], show=show, backend=backend)
     two_d.quiver(color=one()[5], show=show, backend=backend)
     two_d.streamline(color=one()[5], show=show, backend=backend)
     two_d.fill_area(color=one()[5], show=show, backend=backend)
Esempio n. 4
0
    def test_ramp(self):
        from mpl_plotter.presets.publication import two_d
        t = np.linspace(-10, 10, 100)
        s = 3 * ramp((t - 5) / 2)

        two_d.line(t, s, show=True)