Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2896b4d commit e2e2347Copy full SHA for e2e2347
1 file changed
lib/matplotlib/axes.py
@@ -1137,10 +1137,11 @@ def apply_aspect(self, position=None):
1137
aspect_scale_mode = "log"
1138
elif (xscale == "linear" and yscale == "log") or \
1139
(xscale == "log" and yscale == "linear"):
1140
- warnings.warn(
1141
- 'aspect is not supported for Axes with xscale=%s, yscale=%s' \
1142
- % (xscale, yscale))
1143
- aspect = "auto"
+ if aspect is not "auto":
+ warnings.warn(
+ 'aspect is not supported for Axes with xscale=%s, yscale=%s' \
+ % (xscale, yscale))
1144
+ aspect = "auto"
1145
else: # some custom projections have their own scales.
1146
pass
1147
0 commit comments