8000 Use Agg for rendering in the Mac OSX backend by mdboom · Pull Request #6178 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Use Agg for rendering in the Mac OSX backend #6178

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 6 commits into from
Mar 28, 2016
Merged
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
Prev Previous commit
Next Next commit
Simplify
  • Loading branch information
mdboom committed Mar 21, 2016
commit cf435b8f1c6eac6e1c5904f13b6b72f628dc77ed
10 changes: 1 addition & 9 deletions lib/matplotlib/backends/backend_macosx.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,8 @@ def _draw(self):
if not self._needs_draw:
return renderer

figure = self.figure

orig_dpi = figure.dpi
try:
figure.draw(renderer)
finally:
figure.dpi = orig_dpi

self.figure.draw(renderer)
self._needs_draw = False

return renderer

def draw(self):
Expand Down
0