Show the figure

return_axes bool | None (default: None)

If true return a dictionary with the figure axes. When return_axes is true then is not called.

Return type:

dict[str, Axes] | None


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 savefig(): Saves the plot.


>>> import scanpy as sc
>>> adata = sc.datasets.pbmc68k_reduced()
>>> markers = ["C1QA", "PSAP", "CD79A", "CD79B", "CST3", "LYZ"]
>>>, markers, groupby="bulk_labels").show()