scanpy.set_figure_params#
- scanpy.set_figure_params(cls, *, scanpy=True, dpi=80, dpi_save=150, frameon=True, vector_friendly=True, fontsize=14, figsize=None, color_map=None, format='pdf', facecolor=None, transparent=False, ipython_format='retina')[source]#
Set resolution/size, styling and format of figures.
- Parameters:
- scanpy
bool(default:True) Init default values for
matplotlib.rcParamssuited for Scanpy.- dpi
int(default:80) Resolution of rendered figures – this influences the size of figures in notebooks.
- dpi_save
int(default:150) Resolution of saved figures. This should typically be higher to achieve publication quality.
- frameon
bool(default:True) Add frames and axes labels to scatter plots.
- vector_friendly
bool(default:True) Plot scatter plots using
pngbackend even when exporting aspdforsvg.- fontsize
int(default:14) Set the fontsize for several
rcParamsentries. Ignored ifscanpy=False.- figsize
int|None(default:None) Set
rcParams['figure.figsize'].- color_map
str|None(default:None) Convenience method for setting the default color map. Ignored if
scanpy=False.- format
Union[Literal['png','jpg','tif','tiff'],Literal['pdf','ps','eps','svg','svgz','pgf'],Literal['raw','rgba']] (default:'pdf') This sets the default format for saving figures:
file_format_figs.- facecolor
str|None(default:None) Sets backgrounds via
rcParams['figure.facecolor'] = facecolorandrcParams['axes.facecolor'] = facecolor.- transparent
bool(default:False) Save figures with transparent background. Sets
rcParams['savefig.transparent'].- ipython_format
str|Iterable[str] (default:'retina') Only concerns the notebook/IPython environment; see matplotlib_inline.backend_inline.set_matplotlib_formats for details.
- scanpy
- Return type: