Ejemplo n.º 1
0
    def test_uni_plot_one_plot(self):
        # uni plot
        aplot_2 = APlot()
        aplot_2.uni_plot(0, self.xx, self.yy)
        aplot_2.tight_layout()

        self.image_name = "image_uniplot_1"
        self.check_plot()
Ejemplo n.º 2
0
    def test_bi_plot(self):
        aplot_4 = APlot(how=(2, 2))
        aplot_4.bi_plot(0, 1, self.xx, self.yy, self.xx, self.yy)
        aplot_4.uni_plot(2, self.xx, self.yy)
        aplot_4.uni_plot(3, self.xx, self.yy)
        aplot_4.tight_layout()

        self.image_name = "image_biplot"
        self.check_plot()
Ejemplo n.º 3
0
    def test_uni_plot_for_plots_same_graph_sharey(self):
        # uni plot *4
        aplot_3 = APlot(how=(2, 2), sharey=True)
        aplot_3.uni_plot(0, self.xx, self.yy)
        aplot_3.uni_plot(1, self.xx, self.yy)
        aplot_3.uni_plot(2, self.xx, self.yy)
        aplot_3.uni_plot(3, self.xx, self.yy)
        aplot_3.tight_layout()

        self.image_name = "image_uniplot_2_sharey"
        self.check_plot()
Ejemplo n.º 4
0
    def test_uni_plot_for_plots_same_graph_sharey_not_same_interval_for_y(
            self):
        xx = np.linspace(-1, 1, 1000)
        aplot_3 = APlot(how=(2, 2), sharey=True)
        aplot_3.uni_plot(0, xx, np.exp(xx))
        aplot_3.uni_plot(1, xx + 1, np.exp(xx + 1))
        aplot_3.uni_plot(2, xx + 1, np.exp(xx + 1))
        aplot_3.uni_plot(3, xx, np.exp(xx))
        aplot_3.tight_layout()

        self.image_name = "image_uniplot_2_sharey_not_same_interval_for_y"
        self.check_plot()