Ejemplo n.º 1
0
    def __init__(self,
                 config=None,
                 data=None,
                 is_plot_histogram=False,
                 is_plot_kde=True):

        PyposmatAbstractPlot.__init__(self, config=config, data=data)

        self.qoi_name = None
        self.create_subplots()

        self.is_plot_histogram = False
        self.is_plot_kde = True
        self.is_plot_qoitarget = False
Ejemplo n.º 2
0
def test__init__no_args():
    o_plot = PyposmatAbstractPlot(config=None, data=None)
    assert o_plot.configuration is None
    assert o_plot.data is None
    assert o_plot.fig is None
    assert o_plot.ax is None
Ejemplo n.º 3
0
def test__init__data_is_obj():
    o_plot = PyposmatAbstractPlot(data=PyposmatDataFile())
    assert o_plot.configuration is None
    assert isinstance(o_plot.data, PyposmatDataFile)
    assert o_plot.fig is None
    assert o_plot.ax is None
Ejemplo n.º 4
0
def test__init__config_is_obj():
    o_plot = PyposmatAbstractPlot(config=PyposmatConfigurationFile())
    assert isinstance(o_plot.configuration, PyposmatConfigurationFile)
    assert o_plot.data is None
    assert o_plot.fig is None
    assert o_plot.ax is None
Ejemplo n.º 5
0
 def create_subplots(self):
     PyposmatAbstractPlot.create_subplots(self, nrows=1, ncols=1)