Skip to content

Commit c91c036

Browse files
committed
Correcting for docstring of set_matplotlib_formats
1 parent 9390396 commit c91c036

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

matplotlib_inline/backend_inline.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,9 @@ def set_matplotlib_formats(*formats, **kwargs):
287287
To set this in your config files use the following::
288288
289289
c.InlineBackend.figure_formats = {'png', 'jpeg'}
290-
c.InlineBackend.print_figure_kwargs.update({'quality' : 90})
290+
c.InlineBackend.print_figure_kwargs.update({
291+
'pil_kwargs': {'quality' : 90}
292+
})
291293
292294
Parameters
293295
----------

tests/notebooks/config_InlineBackend.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@
5555
" To set this in your config files use the following::\n",
5656
"\n",
5757
" c.InlineBackend.figure_formats = {'png', 'jpeg'}\n",
58-
" c.InlineBackend.print_figure_kwargs.update({'quality' : 90})\n",
58+
" c.InlineBackend.print_figure_kwargs.update({\n",
59+
" 'pil_kwargs': {'quality' : 90}\n",
60+
" })\n",
5961
"\n",
6062
" Parameters\n",
6163
" ----------\n",

0 commit comments

Comments
 (0)