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 f8687b0

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/axes/_base.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_base.py
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.