Skip to content

Commit

Permalink
FIX: account for dpi == 'figure'
Browse files Browse the repository at this point in the history
In mpl 1.5.0 'figure' became a valid dpi value, in 2.0 it will
become the default.

xref matplotlib/matplotlib#6113
  • Loading branch information
tacaswell committed Mar 6, 2016
1 parent aafdf48 commit 6fa1c17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions IPython/core/pylabtools.py
Expand Up @@ -98,6 +98,8 @@ def print_figure(fig, fmt='png', bbox_inches='tight', **kwargs):
return

dpi = rcParams['savefig.dpi']
if dpi == 'figure':
dpi = fig.dpi
if fmt == 'retina':
dpi = dpi * 2
fmt = 'png'
Expand Down

0 comments on commit 6fa1c17

Please sign in to comment.