Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2de8089

Browse files
committed
Fix PEP8 errors
1 parent 74f6526 commit 2de8089

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ def __init__(self, fig, rect,
528528

529529
self._connected = {} # a dict from events to (id, func)
530530
try:
531-
self.cla(clear_axis=False) # new xaxis and yaxis are already cleared
531+
self.cla(clear_axis=False) # new xaxis, yaxis are already cleared
532532
except TypeError:
533533
self.cla() # For Axes subclasses lacking clear_axis argument.
534534

@@ -1088,7 +1088,6 @@ def cla(self, clear_axis=True):
10881088
self.xaxis.reset_ticks()
10891089
self.yaxis.reset_ticks()
10901090

1091-
10921091
self.stale = True
10931092

10941093
@cbook.deprecated("2.1", alternative="Axes.patch")
@@ -1272,7 +1271,7 @@ def set_aspect(self, aspect, adjustable=None, anchor=None, share=False):
12721271

12731272
if adjustable is None:
12741273
adjustable = self._adjustable
1275-
self.set_adjustable(adjustable, share=share) # Always call this to handle sharing.
1274+
self.set_adjustable(adjustable, share=share) # Handle sharing.
12761275

12771276
if anchor is not None:
12781277
self.set_anchor(anchor)

0 commit comments

Comments
 (0)