Skip to content

Commit f8687b0

Browse files
committed
Merge pull request matplotlib#2603 from fariza/aspect_auto_warning_bug
Correcting bad string comparsion in lin-log plot aspect verification
2 parents 6b1d8e1 + 514bac9 commit f8687b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ def apply_aspect(self, position=None):
11421142
aspect_scale_mode = "log"
11431143
elif ((xscale == "linear" and yscale == "log") or
11441144
(xscale == "log" and yscale == "linear")):
1145-
if aspect is not "auto":
1145+
if aspect != "auto":
11461146
warnings.warn(
11471147
'aspect is not supported for Axes with xscale=%s, '
11481148
'yscale=%s' % (xscale, yscale))

0 commit comments

Comments
 (0)