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 479d68f commit 917de33Copy full SHA for 917de33
1 file changed
lib/matplotlib/axes/_base.py
@@ -997,7 +997,10 @@ def cla(self):
997
self.xaxis.set_minor_locator(minl)
998
else:
999
self.xaxis._set_scale('linear')
1000
- self.set_xlim(0, 1)
+ try:
1001
+ self.set_xlim(0, 1)
1002
+ except TypeError:
1003
+ pass
1004
1005
if self._sharey is not None:
1006
self.yaxis.major = self._sharey.yaxis.major
@@ -1021,7 +1024,10 @@ def cla(self):
1021
1024
self.yaxis.set_minor_locator(minl)
1022
1025
1023
1026
self.yaxis._set_scale('linear')
- self.set_ylim(0, 1)
1027
1028
+ self.set_ylim(0, 1)
1029
1030
1031
1032
# update the minor locator for x and y axis based on rcParams
1033
if (rcParams['xtick.minor.visible']):
0 commit comments