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

Skip to content

Commit 748c759

Browse files
committed
Minor fixups from qlogic review
1 parent 2de8089 commit 748c759

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ def cla(self, clear_axis=True):
966966

967967
if clear_axis:
968968
self.xaxis.cla(shared_x)
969-
self.yaxis.cla(shared_y) #
969+
self.yaxis.cla(shared_y)
970970

971971
for name, spine in six.iteritems(self.spines):
972972
spine.cla(clear_axis=False) # Clears only the position.

lib/matplotlib/axis.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def __init__(self, axes, loc, label,
160160
self._grid_linewidth = (rcParams['grid.linewidth']
161161
if grid_linewidth is None else grid_linewidth)
162162
self._grid_alpha = (rcParams['grid.alpha']
163-
if grid_alpha is None else grid_alpha)
163+
if grid_alpha is None else grid_alpha)
164164

165165
self.apply_tickdir(tickdir)
166166

@@ -737,7 +737,6 @@ def cla(self, shared=None):
737737
'clear the current axis'
738738

739739
self.label.set_text('') # self.set_label_text would change isDefault_
740-
self._set_artist_props(self.label) # sets figure; needed here?
741740

742741
if shared is None:
743742
self._set_scale('linear')
@@ -798,7 +797,6 @@ def set_tick_params(self, which='major', reset=False, **kw):
798797

799798
if reset:
800799
self.reset_ticks()
801-
# Is this "else" correct? Shouldn't kwargs be applied after a reset?
802800
else:
803801
if which == 'major' or which == 'both':
804802
for tick in self.majorTicks:

lib/matplotlib/scale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def set_default_locators_and_formatters(self, axis):
7676
axis.set_major_formatter(ScalarFormatter())
7777
axis.set_minor_formatter(NullFormatter())
7878
# update the minor locator for x and y axis based on rcParams
79-
if (rcParams['xtick.minor.visible']):
79+
if rcParams['xtick.minor.visible']:
8080
axis.set_minor_locator(AutoMinorLocator())
8181
else:
8282
axis.set_minor_locator(NullLocator())

0 commit comments

Comments
 (0)