scanpy.set_figure_params

scanpy.set_figure_params(scanpy=True, dpi=80, dpi_save=150, frameon=True, vector_friendly=True, fontsize=14, color_map=None, format='pdf', transparent=False, ipython_format='png2x')

Set resolution/size, styling and format of figures.

Parameters
scanpy : boolbool

Init default values for matplotlib.rcParams suited for Scanpy.

dpi : intint

Resolution of rendered figures - this influences the size of figures in notebooks.

dpi_save : intint

Resolution of saved figures. This should typically be higher to achieve publication quality.

frameon : boolbool

Add frames and axes labels to scatter plots.

vector_friendly : boolbool

Plot scatter plots using png backend even when exporting as pdf or svg.

fontsize : intint

Set the fontsize for several rcParams entries. Ignored if scanpy=False.

color_map : str, NoneOptional[str]

Convenience method for setting the default color map. Ignored if scanpy=False.

format : {'png', 'pdf', 'svg', etc.}, optional (default: 'pdf')

This sets the default format for saving figures: file_format_figs.

transparent : boolbool

Save figures with transparent back ground. Sets rcParams['savefig.transparent'].

ipython_format : strstr

Only concerns the notebook/IPython environment; see set_matplotlib_formats() for details.