def setUp(self): ImportedDataTest.setUp(self) self.ex = flow.ChannelStatisticOp(name="ByDox", by=['Dox', 'Well'], channel="Y2-A", function=flow.geom_mean).apply( self.ex) self.view = flow.BarChartView(statistic=("ByDox", "geom_mean"), variable="Well", huefacet="Dox")
def testBarChart(self): import numpy as np ex2 = flow.ChannelStatisticOp(name="Stats1D", by=["Dox"], channel="V2-A", function=np.mean).apply(self.ex) warnings.filterwarnings( 'ignore', 'axes.color_cycle is deprecated and replaced with axes.prop_cycle') flow.BarChartView(statistic=("Stats1D", "mean"), variable="Dox").plot(ex2)
def testBarChart(self): flow.BarChartView(name="Bar Chart", channel="Y2-A", by="Dox", function=len).plot(self.ex)
ex.add_conditions({"Dox" : "float", "Repl" : "int"}) ex.add_tube(tube1, {"Dox" : 10.0, "Repl" : 1}) ex.add_tube(tube2, {"Dox" : 1.0, "Repl" : 1}) ex.add_tube(tube3, {"Dox" : 10.0, "Repl" : 2}) ex.add_tube(tube4, {"Dox" : 1.0, "Repl" : 2}) hlog = flow.HlogTransformOp() hlog.name = "Hlog transformation" hlog.channels = ['V2-A', 'Y2-A', 'B1-A', 'FSC-A', 'SSC-A'] ex2 = hlog.apply(ex) thresh = flow.ThresholdOp() thresh.name = "Y2-A+" thresh.channel = 'Y2-A' thresh.threshold = 2005.0 ex3 = thresh.apply(ex2) s = flow.BarChartView() s.channel = "V2-A" s.function = flow.geom_mean s.by = "Dox" s.huefacet = "Y2-A+" #s.error_bars = "data" #s.error_var = "Repl" #s.error_function = np.std plt.ioff() s.plot(ex3) plt.show()