Ejemplo n.º 1
0
 def show_origianl(self):
     plot = PlotSingle()
     plot.load_cluster(self)
     plot.plot_original(savefig = False, display = True)
Ejemplo n.º 2
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()
Ejemplo n.º 3
0
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 13 16:14:24 2015

@author: zhiyiwu
"""

from batch_query import Batch
from PlotAnalysis import PlotSingle

a = Batch(['~/GitHub/Single_channel/HeteroData/',])
cluster_list = a.scan_folder()


for cluster in cluster_list:
    cluster.compute_mode()
    cluster.compute_mode_detail(True)
    c = PlotSingle('~/GitHub/sc_py/temp/')
    c.load_cluster(cluster)
#    c.plot_original()
#    c.plot_popen_on_original()
#    c.plot_open_close()
#    c.plot_cost_difference()
    c.plot_multitrace()