コード例 #1
0
    def test_plotable2(self):

        p = _stat_tool.MultiPlotSet(1)
        p[0][0].add_point(_stat_tool.PlotPoint(1.0, 1.2))
        p[0][0].add_point(_stat_tool.PlotPoint(3.0, 5.2))
                
        assert len(p) == 1

        # Test iterator
        multiset = p
        for _i, multiplot in enumerate(multiset):
            assert multiplot

            for singleplot in multiplot:
                assert singleplot and len(multiplot)

        # test plot
        plotter = get_plotter()
        if DISABLE_PLOT == False:
            plotter.plot(p, "test_plot")
コード例 #2
0
    def test_plotable2(self):

        p = _stat_tool.MultiPlotSet(1)
        p[0][0].add_point(_stat_tool.PlotPoint(1.0, 1.2))
        p[0][0].add_point(_stat_tool.PlotPoint(3.0, 5.2))

        assert len(p) == 1

        # Test iterator
        multiset = p
        for _i, multiplot in enumerate(multiset):
            assert multiplot

            for singleplot in multiplot:
                assert singleplot and len(multiplot)

        # test plot
        plotter = get_plotter()
        if DISABLE_PLOT == False:
            plotter.plot(p, "test_plot")
コード例 #3
0
    def test_matplotlib(self):

        a = self.get_plotable()
        plotter = get_plotter()
        if DISABLE_PLOT == False:
            plotter.plot(a, "test_plot")
コード例 #4
0
    def test_matplotlib(self):

        a = self.get_plotable()
        plotter = get_plotter()
        if DISABLE_PLOT == False:
            plotter.plot(a, "test_plot")