scanpy.pl.StackedViolin.savefig
- StackedViolin.savefig(filename, bbox_inches='tight', **kwargs)
Save the current figure
- Parameters
See also
render()
: Renders the plot but does not callmatplotlib.pyplot.show()
show()
: Renders and shows the plotExamples
>>> adata = sc.datasets.pbmc68k_reduced() >>> markers = ['C1QA', 'PSAP', 'CD79A', 'CD79B', 'CST3', 'LYZ'] >>> sc.pl.BasePlot(adata, markers, groupby='bulk_labels').savefig('plot.pdf')