From c6bcb2b93f1bea2349088b31b570fdfb78bf219f 2016-08-12 23:58:53 From: Hassan Kibirige Date: 2016-08-12 23:58:53 Subject: [PATCH] Remove access to 'savefig.dpi', use figure.dpi `ipykernel` now uses `figure.dpi` to control the dpi of the image to be created. This means that `dpi` property of the figure object is a reliable source of truth for the users preferences. --- diff --git a/IPython/core/pylabtools.py b/IPython/core/pylabtools.py index 815b8d7..0a07def 100644 --- a/IPython/core/pylabtools.py +++ b/IPython/core/pylabtools.py @@ -97,9 +97,7 @@ def print_figure(fig, fmt='png', bbox_inches='tight', **kwargs): if not fig.axes and not fig.lines: return - dpi = rcParams['savefig.dpi'] - if dpi == 'figure': - dpi = fig.dpi + dpi = fig.dpi if fmt == 'retina': dpi = dpi * 2 fmt = 'png'