scanpy.pl.MatrixPlot.show

MatrixPlot.show(return_axes=None)

Show the figure

Parameters:
return_axes : Optional[bool] (default: None)

If true return a dictionary with the figure axes. When return_axes is true then matplotlib.pyplot.show() is not called.

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

>>> adata = sc.datasets.pbmc68k_reduced()
>>> markers = ['C1QA', 'PSAP', 'CD79A', 'CD79B', 'CST3', 'LYZ']
>>> sc.pl.Plot(adata, markers, groupby='bulk_labels').show()