Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix stale draws on MacOSX backend #9549

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 2 commits into from
Oct 24, 2017
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
BUG: Fix stale rendering on MacOSX backend (Fixes #8282)
Unlike on other backends (like Qt), MacOSX backend was never telling the
renderer to clear. This resulted in draws that would happen on top of
the previous Agg buffer. It seems enough to clear the renderer if the
figure is stale.
  • Loading branch information
dopplershift committed Oct 24, 2017
commit cb25f2ef78e5113148e142a73ba25a7b166a921e
2 changes: 1 addition & 1 deletion 2 lib/matplotlib/backends/backend_macosx.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _set_device_scale(self, value):
self._device_scale = value

def _draw(self):
renderer = self.get_renderer()
renderer = self.get_renderer(cleared=self.figure.stale)

if self.figure.stale:
self.figure.draw(renderer)
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.