Ejemplo n.º 1
0
 def test_PlotComputation_using_PlotMPL(self):
     '''
     Testing the PlotComputation using the PlotMPL module which uses Matplotlib as backend.
     '''
     for patch in self._name_list:
         test_patch = Patch(os.path.join(self._dir, patch))
         test_patch.scan()
         for index, cluster in enumerate(test_patch):
             cluster.compute_mode()
             cluster.compute_mode_detail()
             test_plot = PlotSingle(self._dir)
             test_plot.load_cluster(cluster)
             test_plot.plot_original()
             test_plot.plot_popen_on_original()
             test_plot.plot_open_close()
             test_plot.plot_cost_difference()