inline_backend_fmt

inline_backend_fmt(fmt=None)[source]

Set up the ipython inline backend format and ensure that inline figures always look the same as saved figures. This runs the following ipython magic commands:

%config InlineBackend.figure_formats = rc['inlinefmt']
%config InlineBackend.rc = {}  # never override the rc settings
%config InlineBackend.close_figures = True  # memory issues
%config InlineBackend.print_figure_kwargs = {'bbox_inches': None}  # not 'tight', because proplot has its own tight layout algorithm

When the inline backend is inactive or unavailable, this has no effect.

Parameters

fmt (str or list of str, optional) – The inline backend file format(s). Default is rc.inlinefmt = 'svg'. Valid formats include 'jpg', 'png', 'svg', 'pdf', and 'retina'.