@@ -378,11 +378,15 @@ def _wrap_locator_formatter(self):
378378 self .isDefault_majloc = True
379379 self .isDefault_majfmt = True
380380
381- def cla (self ):
382- super ().cla ()
381+ def clear (self ):
382+ super ().clear ()
383383 self .set_ticks_position ('none' )
384384 self ._wrap_locator_formatter ()
385385
386+ @cbook .deprecated ("3.4" , alternative = "ThetaAxis.clear()" )
387+ def cla (self ):
388+ self .clear ()
389+
386390 def _set_scale (self , value , ** kwargs ):
387391 super ()._set_scale (value , ** kwargs )
388392 self ._wrap_locator_formatter ()
@@ -680,11 +684,15 @@ def _wrap_locator_formatter(self):
680684 self .axes ))
681685 self .isDefault_majloc = True
682686
683- def cla (self ):
684- super ().cla ()
687+ def clear (self ):
688+ super ().clear ()
685689 self .set_ticks_position ('none' )
686690 self ._wrap_locator_formatter ()
687691
692+ @cbook .deprecated ("3.4" , alternative = "RadialAxis.clear()" )
693+ def cla (self ):
694+ self .clear ()
695+
688696 def _set_scale (self , value , ** kwargs ):
689697 super ()._set_scale (value , ** kwargs )
690698 self ._wrap_locator_formatter ()
@@ -810,7 +818,7 @@ def _init_axis(self):
810818 # This is moved out of __init__ because non-separable axes don't use it
811819 self .xaxis = ThetaAxis (self )
812820 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 ()
814822 # results in weird artifacts. Therefore we disable this for
815823 # now.
816824 # self.spines['polar'].register_axis(self.yaxis)
0 commit comments