Пример #1
0
    def get_notebook_code(self, idx):
        view = FlowPeaks2DView()
        view.copy_traits(self, view.copyable_trait_names())
        view.subset = self.subset

        return dedent("""
        op_{idx}.default_view({traits}).plot(ex_{idx})
        """.format(traits=traits_str(view), idx=idx))
Пример #2
0
 def plot(self, experiment, **kwargs):
     if self.show_density:
         FlowPeaks2DDensityView(op = self.op,
                                xchannel = self.xchannel,
                                ychannel = self.ychannel,
                                xscale = self.xscale,
                                yscale = self.yscale).plot(experiment, **kwargs)
     else:
         FlowPeaks2DView(op = self.op,
                         xchannel = self.xchannel,
                         ychannel = self.ychannel,
                         xscale = self.xscale,
                         yscale = self.yscale).plot(experiment, **kwargs)
Пример #3
0
    def get_notebook_code(self, idx):
        view = FlowPeaks2DView()
        view.copy_traits(self, view.copyable_trait_names())
        view.subset = self.subset

        if self.show_density:
            plot_params_str = traits_str(self.density_plot_params)
        else:
            plot_params_str = traits_str(self.scatterplot_plot_params)

        return dedent("""
        op_{idx}.default_view({traits}).plot(ex_{idx}{plot_params})
        """.format(traits=traits_str(view),
                   idx=idx,
                   plot_params=", " +
                   plot_params_str if plot_params_str else ""))
Пример #4
0
 def plot(self, experiment, **kwargs):
     if self.show_density:
         FlowPeaks2DDensityView(op = self.op,
                                xchannel = self.xchannel,
                                ychannel = self.ychannel,
                                xscale = self.xscale,
                                yscale = self.yscale).plot(experiment,
                                                           **self.density_plot_params.trait_get(), 
                                                           **kwargs)
     else:
         FlowPeaks2DView(op = self.op,
                         xchannel = self.xchannel,
                         ychannel = self.ychannel,
                         xscale = self.xscale,
                         yscale = self.yscale).plot(experiment, 
                                                    **self.scatterplot_plot_params.trait_get(),
                                                    **kwargs)