Skip to content

Commit

Permalink
Merge pull request #2603 from fariza/aspect_auto_warning_bug
Browse files Browse the repository at this point in the history
Correcting bad string comparsion in lin-log plot aspect verification
  • Loading branch information
tacaswell committed Nov 21, 2013
2 parents 6b1d8e1 + 514bac9 commit f8687b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/axes/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ def apply_aspect(self, position=None):
aspect_scale_mode = "log"
elif ((xscale == "linear" and yscale == "log") or
(xscale == "log" and yscale == "linear")):
if aspect is not "auto":
if aspect != "auto":
warnings.warn(
'aspect is not supported for Axes with xscale=%s, '
'yscale=%s' % (xscale, yscale))
Expand Down

0 comments on commit f8687b0

Please sign in to comment.