scanpy.pl.StackedViolin.make_figure
- StackedViolin.make_figure()
Renders the image but does not call
matplotlib.pyplot.show()
. Useful when several plots are put together into one figure.See also
show()
: Renders and shows the plot.savefig()
: Saves the plot.Examples
>>> import matplotlib.pyplot as plt >>> adata = sc.datasets.pbmc68k_reduced() >>> markers = ['C1QA', 'PSAP', 'CD79A', 'CD79B', 'CST3', 'LYZ'] >>> fig, (ax0, ax1) = plt.subplots(1, 2) >>> sc.pl.MatrixPlot(adata, markers, groupby='bulk_labels', ax=ax0) ... .style(cmap='Blues', edge_color='none').make_figure() >>> sc.pl.DotPlot(adata, markers, groupby='bulk_labels', ax=ax1).make_figure()