def set_figure_params(self, scanpy: bool=True, dpi: int=80, dpi_save: int=150, frameon: bool=True, vector_friendly: bool=True, fontsize: int=14, color_map: Optional[str]=None, format: Union[(str, Iterable[str])]='pdf', transparent: bool=False, ipython_format: str='png2x'):
    "        Set resolution/size, styling and format of figures.\n\n        Parameters\n        ----------\n        scanpy\n            Init default values for :obj:`matplotlib.rcParams` suited for Scanpy.\n        dpi\n            Resolution of rendered figures - this influences the size of figures in notebooks.\n        dpi_save\n            Resolution of saved figures. This should typically be higher to achieve\n            publication quality.\n        frameon\n            Add frames and axes labels to scatter plots.\n        vector_friendly\n            Plot scatter plots using `png` backend even when exporting as `pdf` or `svg`.\n        fontsize\n            Set the fontsize for several `rcParams` entries. Ignored if `scanpy=False`.\n        color_map\n            Convenience method for setting the default color map. Ignored if `scanpy=False`.\n        format: {`'png'`, `'pdf'`, `'svg'`, etc.}, optional (default: `'pdf'`)\n            This sets the default format for saving figures: `file_format_figs`.\n        transparent\n            Save figures with transparent back ground. Sets\n            `rcParams['savefig.transparent']`.\n        ipython_format\n            Only concerns the notebook/IPython environment; see\n            :func:`~IPython.display.set_matplotlib_formats` for details.\n        "
    try:
        import IPython
        if isinstance(ipython_format, str):
            ipython_format = [ipython_format]
        IPython.display.set_matplotlib_formats(*ipython_format)
    except Exception:
        pass
    from matplotlib import rcParams
    self._vector_friendly = vector_friendly
    self.file_format_figs = format
    if (dpi is not None):
        rcParams['figure.dpi'] = dpi
    if (dpi_save is not None):
        rcParams['savefig.dpi'] = dpi_save
    if (transparent is not None):
        rcParams['savefig.transparent'] = transparent
    if scanpy:
        from .plotting._rcmod import set_rcParams_scanpy
        set_rcParams_scanpy(fontsize=fontsize, color_map=color_map)
    self._frameon = frameon
Set resolution/size, styling and format of figures.

Parameters
----------
scanpy
    Init default values for :obj:`matplotlib.rcParams` suited for Scanpy.
dpi
    Resolution of rendered figures - this influences the size of figures in notebooks.
dpi_save
    Resolution of saved figures. This should typically be higher to achieve
    publication quality.
frameon
    Add frames and axes labels to scatter plots.
vector_friendly
    Plot scatter plots using `png` backend even when exporting as `pdf` or `svg`.
fontsize
    Set the fontsize for several `rcParams` entries. Ignored if `scanpy=False`.
color_map
    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
    Save figures with transparent back ground. Sets
    `rcParams['savefig.transparent']`.
ipython_format
    Only concerns the notebook/IPython environment; see
    :func:`~IPython.display.set_matplotlib_formats` for details.
def set_figure_params(self, scanpy: bool=True, dpi: int=80, dpi_save: int=150, frameon: bool=True, vector_friendly: bool=True, fontsize: int=14, color_map: Optional[str]=None, format: Union[(str, Iterable[str])]='pdf', transparent: bool=False, ipython_format: str='png2x'):
    "        Set resolution/size, styling and format of figures.\n\n        Parameters\n        ----------\n        scanpy\n            Init default values for :obj:`matplotlib.rcParams` suited for Scanpy.\n        dpi\n            Resolution of rendered figures - this influences the size of figures in notebooks.\n        dpi_save\n            Resolution of saved figures. This should typically be higher to achieve\n            publication quality.\n        frameon\n            Add frames and axes labels to scatter plots.\n        vector_friendly\n            Plot scatter plots using `png` backend even when exporting as `pdf` or `svg`.\n        fontsize\n            Set the fontsize for several `rcParams` entries. Ignored if `scanpy=False`.\n        color_map\n            Convenience method for setting the default color map. Ignored if `scanpy=False`.\n        format: {`'png'`, `'pdf'`, `'svg'`, etc.}, optional (default: `'pdf'`)\n            This sets the default format for saving figures: `file_format_figs`.\n        transparent\n            Save figures with transparent back ground. Sets\n            `rcParams['savefig.transparent']`.\n        ipython_format\n            Only concerns the notebook/IPython environment; see\n            :func:`~IPython.display.set_matplotlib_formats` for details.\n        "
    try:
        import IPython
        if isinstance(ipython_format, str):
            ipython_format = [ipython_format]
        IPython.display.set_matplotlib_formats(*ipython_format)
    except Exception:
        pass
    from matplotlib import rcParams
    self._vector_friendly = vector_friendly
    self.file_format_figs = format
    if (dpi is not None):
        rcParams['figure.dpi'] = dpi
    if (dpi_save is not None):
        rcParams['savefig.dpi'] = dpi_save
    if (transparent is not None):
        rcParams['savefig.transparent'] = transparent
    if scanpy:
        from .plotting._rcmod import set_rcParams_scanpy
        set_rcParams_scanpy(fontsize=fontsize, color_map=color_map)
    self._frameon = frameon