Exemple #1
0
    def __init__(self, preset=None):
        global line

        if isinstance(preset, type(None)):
            from mpl_plotter.presets.standard.publication import preset
            line = two_d(direct_preset=preset).line
        else:
            line = two_d(direct_preset=preset).line
def test_2d():

    generate_preset_2d(preset_dest="presets",
                       preset_name="MYPRESET2D",
                       disable_warning=True,
                       overwrite=False)

    # Proceed to customize your 2D plots using the preset

    my_plot = two_d(preset_dir="presets", preset_name="MYPRESET2D").line

    my_plot(show=True,
            demo_pad_plot=True,
            color="blue",
            title="TITLE",
            title_size=200,
            aspect=1)
Exemple #3
0
    def test_2d(self):
        """
        Preferred use:

            generate_preset_2d(preset_dest="presets", preset_name="MYPRESET2D", disable_warning=True, overwrite=False)

            my_plot = three_d(preset_dir="presets", preset_name="MYPRESET2D").line

        Use to enable testing:
        """
        from tests.presets.MYPRESET2D import preset
        my_fam = two_d(direct_preset=preset)

        my_fam.line(show=show,
                    backend=backend,
                    demo_pad_plot=True,
                    color="blue",
                    title="TITLE")
        my_fam.scatter(show=show,
                       backend=backend,
                       demo_pad_plot=True,
                       color="blue",
                       title="TITLE")
        my_fam.heatmap(show=show,
                       backend=backend,
                       demo_pad_plot=True,
                       color="blue",
                       title="TITLE")
        my_fam.quiver(show=show,
                      backend=backend,
                      demo_pad_plot=True,
                      color="blue",
                      title="TITLE")
        my_fam.streamline(show=show,
                          backend=backend,
                          demo_pad_plot=True,
                          color="blue",
                          title="TITLE")
        my_fam.fill_area(show=show,
                         backend=backend,
                         demo_pad_plot=True,
                         color="blue",
                         title="TITLE")
Exemple #4
0
from mpl_plotter.presets.custom import two_d, three_d
from mpl_plotter.presets.standard.precision import preset2, preset3

two_d(direct_preset=preset2)
three_d(direct_preset=preset3)