FlowCytometryTools.PolyGate

class FlowCytometryTools.PolyGate(vert, channels, region='in', name=None)

Passes all events that are either inside or outside the polygon.

Parameters:

vert : list of 2-tuples

[(x1, y1), (x2, y2), (x3, y3)] Each 2-tuple describes the location of a vertex.

channels : [‘channel 1 name’, ‘channel 2 name’]

Defines the names of the channels

region : [‘in’, ‘out’]

If ‘in’, the gate only passes through data that lies inside the interval.

name : str

The gate’s name.

Methods

plot([flip, ax_channels, ax]) Plots the gate.
validiate_input() Optional method to be defined by derived class
plot(flip=False, ax_channels=None, ax=None, *args, **kwargs)

Plots the gate.

Parameters:

ax : axes to use for plotting the gate on

flip : boolean

If True, draws the interval along the y-axis instead of along the x-axis

Returns:

Reference to created artists. :