scanpy.pl.StackedViolin.show#
- StackedViolin.show(return_axes=None)[source]#
Show the figure
- Parameters:
- return_axes
bool
|None
(default:None
) If true return a dictionary with the figure axes. When return_axes is true then
matplotlib.pyplot.show()
is not called.
- return_axes
- Return type:
- Returns:
If
return_axes=True
: Dict ofmatplotlib.axes.Axes
. The dict key indicates the type of ax (eg.mainplot_ax
)
See also
render()
: Renders the plot but does not callmatplotlib.pyplot.show()
savefig()
: Saves the plot.Examples
>>> import scanpy as sc >>> adata = sc.datasets.pbmc68k_reduced() >>> markers = ["C1QA", "PSAP", "CD79A", "CD79B", "CST3", "LYZ"] >>> sc.pl._baseplot_class.BasePlot(adata, markers, groupby="bulk_labels").show()