scanpy.pl.StackedViolin.swap_axes

StackedViolin.swap_axes(swap_axes=True)

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 | NoneOptional[bool] (default: True)

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

Returns

BasePlot