8000 Merge 1.5 into 2x. by jenshnielsen · Pull Request #6187 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Merge 1.5 into 2x. #6187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Mar 19, 2016
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
FIX: always normalize dpi
The string 'figure' is a valid value for dpi.  Always check if this
is the input, not just if we look it up from the rcparams.

closes #6113
  • Loading branch information
tacaswell committed Mar 6, 2016
commit 259483a52db535caf0cc27dcc73a42760f8cb46e
4 changes: 2 additions & 2 deletions lib/matplotlib/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,8 +755,8 @@ def save(self, filename, writer=None, fps=None, dpi=None, codec=None,
# Re-use the savefig DPI for ours if none is given
if dpi is None:
dpi = rcParams['savefig.dpi']
if dpi == 'figure':
dpi = self._fig.dpi
if dpi == 'figure':
dpi = self._fig.dpi

if codec is None:
codec = rcParams['animation.codec']
Expand Down
4 changes: 2 additions & 2 deletions lib/matplotlib/backend_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -2141,8 +2141,8 @@ def print_figure(self, filename, dpi=None, facecolor='w', edgecolor='w',

if dpi is None:
dpi = rcParams['savefig.dpi']
if dpi == 'figure':
dpi = self.figure.dpi
if dpi == 'figure':
dpi = self.figure.dpi

origDPI = self.figure.dpi
origfacecolor = self.figure.get_facecolor()
Expand Down
0