FCMeasurement.
plot
(channel_names, kind='histogram', gates=None, gate_colors=None, gate_lw=1, **kwargs)[source]¶Plot the flow cytometry data associated with the sample on the current axis.
To produce the plot, follow up with a call to matplotlib’s show() function.
channel_names : [str | iterable of str]
The name (or names) of the channels to plot. When one channel is specified, then a 1d histogram is plotted.
specifies how to bin histograms.
CAUTION when bins=int, the bin locations are determined automatically based on the data. This means that the bins can have different widths, depending on the range of the data. When plotting using FCCollection (FCPlate), the bin locations are set according to minimum and maximum values of data from across all the FCMeasurements. If this is confusing for you, just specify the bin locations explicitely.
gates : [None | Gate | iterable of Gate]
Gate should be in [ThresholdGate
| IntervalGate
| QuadGate
| PolyGate
| CompositeGate
]
When supplied, the gates are drawn on the plot. The gates are applied by default.
ax : [None | ax]
Specifies which axis to plot on. If None, will plot on the current axis.
- gates : [None, Gate, list of Gate]
- Gate must be of type [
ThresholdGate
|IntervalGate
|QuadGate
|PolyGate
|CompositeGate
]
None : if no data is present plot_output : output of plot command used to draw (e.g., output of hist)
>>> sample.plot('Y2-A', bins=100, alpha=0.7, color='green', normed=1) # 1d histogram
>>> sample.plot(['B1-A', 'Y2-A'], cmap=cm.Oranges, colorbar=False) # 2d histogram