@@ -378,11 +378,15 @@ def _wrap_locator_formatter(self):
378
378
self .isDefault_majloc = True
379
379
self .isDefault_majfmt = True
380
380
381
- def cla (self ):
382
- super ().cla ()
381
+ def clear (self ):
382
+ super ().clear ()
383
383
self .set_ticks_position ('none' )
384
384
self ._wrap_locator_formatter ()
385
385
386
+ @cbook .deprecated ("3.4" , alternative = "ThetaAxis.clear()" )
387
+ def cla (self ):
388
+ self .clear ()
389
+
386
390
def _set_scale (self , value , ** kwargs ):
387
391
super ()._set_scale (value , ** kwargs )
388
392
self ._wrap_locator_formatter ()
@@ -680,11 +684,15 @@ def _wrap_locator_formatter(self):
680
684
self .axes ))
681
685
self .isDefault_majloc = True
682
686
683
- def cla (self ):
684
- super ().cla ()
687
+ def clear (self ):
688
+ super ().clear ()
685
689
self .set_ticks_position ('none' )
686
690
self ._wrap_locator_formatter ()
687
691
692
+ @cbook .deprecated ("3.4" , alternative = "RadialAxis.clear()" )
693
+ def cla (self ):
694
+ self .clear ()
695
+
688
696
def _set_scale (self , value , ** kwargs ):
689
697
super ()._set_scale (value , ** kwargs )
690
698
self ._wrap_locator_formatter ()
@@ -810,7 +818,7 @@ def _init_axis(self):
810
818
# This is moved out of __init__ because non-separable axes don't use it
811
819
self .xaxis = ThetaAxis (self )
812
820
self .yaxis = RadialAxis (self )
813
- # Calling polar_axes.xaxis.cla () or polar_axes.xaxis.cla ()
821
+ # Calling polar_axes.xaxis.clear () or polar_axes.xaxis.clear ()
814
822
# results in weird artifacts. Therefore we disable this for
815
823
# now.
816
824
# self.spines['polar'].register_axis(self.yaxis)
0 commit comments