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

Commit 90a5395

Browse filesBrowse files
committed
MNT: A bit of clean up for osx backend
Remove unused import and simplify a conditional.
1 parent 473e25c commit 90a5395
Copy full SHA for 90a5395

File tree

Expand file treeCollapse file tree

1 file changed

+2
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-5
lines changed

‎lib/matplotlib/backends/backend_macosx.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_macosx.py
+2-5Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from __future__ import (absolute_import, division, print_function,
22
unicode_literals)
33

4-
import six
5-
64
import os
75

86
from matplotlib._pylab_helpers import Gcf
@@ -99,10 +97,9 @@ def get_renderer(self, cleared=False):
9997
def _draw(self):
10098
renderer = self.get_renderer()
10199

102-
if not self.figure.stale:
103-
return renderer
100+
if self.figure.stale:
101+
self.figure.draw(renderer)
104102

105-
self.figure.draw(renderer)
106103
return renderer
107104

108105
def draw(self):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.