scanpy.pl.DotPlot.swap_axes

scanpy.pl.DotPlot.swap_axes#

DotPlot.swap_axes(swap_axes=True)[source]#

Plots a transposed image.

By default, the x axis contains var_names (e.g. genes) and the y axis the groupby categories. By setting swap_axes then x are the groupby categories and y the var_names.

Parameters:
swap_axes bool | None (default: True)

Boolean to turn on (True) or off (False) ‘swap_axes’. Default True

Return type:

BasePlot

Returns:

Returns self for method chaining.