Beispiel #1
0
    def get_notebook_code(self, idx):
        view = TableView()
        view.copy_traits(self, view.copyable_trait_names())

        return dedent("""
        {repr}.plot(ex_{idx})
        """.format(repr=repr(view), idx=idx))
Beispiel #2
0
 def plot(self, experiment, **kwargs):
     if not self.function_name:
         raise util.CytoflowViewError("Summary function isn't set")
     
     self.function = self.summary_functions[self.function_name]
     TableView.plot(self, experiment, **kwargs)
     
     group_vars = []
     if self.row_facet: group_vars.append(self.row_facet) 
     if self.subrow_facet: group_vars.append(self.subrow_facet)
     if self.column_facet: group_vars.append(self.column_facet)
     if self.subcolumn_facet: group_vars.append(self.subcolumn_facet)
             
     if self.subset:
         data = experiment.query(self.subset).data
     else:
         data = experiment.data
             
     self.result = data.groupby(by = group_vars)[self.channel].aggregate(self.function)
Beispiel #3
0
 def plot(self, experiment, plot_name=None, **kwargs):
     TableView.plot(self, experiment, **kwargs)
     self.result = experiment.statistics[self.statistic]