scanpy.pl.MatrixPlot.show

scanpy.pl.MatrixPlot.show#

MatrixPlot.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 type:

dict[str, Axes] | None

Returns:

If return_axes=True: Dict of matplotlib.axes.Axes. The dict key indicates the type of ax (eg. mainplot_ax)

See also

render(): Renders the plot but does not call matplotlib.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()