Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61bcac1

Browse files
committed
Fix error in Axis.gca introduced when removing gca changes
1 parent 0903dcb commit 61bcac1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/axis.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,8 @@ def cla(self):
774774

775775
self.label.set_text('') # self.set_label_text would change isDefault_
776776

777+
self._set_scale('linear')
778+
777779
# Clear the callback registry for this axis, or it may "leak"
778780
self.callbacks = cbook.CallbackRegistry()
779781

0 commit comments

Comments
 (0)