scanpy.pl.DotPlot.savefig#
- DotPlot.savefig(filename, bbox_inches='tight', **kwargs)[source]#
Save the current figure
- Parameters:
- filename
str
Figure filename. Figure format is taken from the file ending unless the parameter
format
is given.- bbox_inches
str
|None
(default:'tight'
) By default is set to ‘tight’ to avoid cropping of the legends.
- kwargs
Passed to
matplotlib.pyplot.savefig()
- filename
See also
render()
: Renders the plot but does not callmatplotlib.pyplot.show()
show()
: Renders and shows the plotExamples
>>> 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" ... ).savefig("plot.pdf")