@@ -3602,7 +3602,7 @@ def set_xlabel(self, xlabel, fontdict=None, labelpad=None, *,
3602
3602
3603
3603
def invert_xaxis (self ):
3604
3604
"""
3605
- Invert the x-axis.
3605
+ [*Discouraged*] Invert the x-axis.
3606
3606
3607
3607
.. admonition:: Discouraged
3608
3608
@@ -3621,13 +3621,14 @@ def invert_xaxis(self):
3621
3621
get_xinverted = _axis_method_wrapper ("xaxis" , "get_inverted" )
3622
3622
xaxis_inverted = _axis_method_wrapper ("xaxis" , "get_inverted" )
3623
3623
if xaxis_inverted .__doc__ :
3624
- xaxis_inverted .__doc__ += textwrap .dedent ("""
3624
+ xaxis_inverted .__doc__ = ("[*Discouraged*] " + xaxis_inverted .__doc__ +
3625
+ textwrap .dedent ("""
3625
3626
3626
3627
.. admonition:: Discouraged
3627
3628
3628
3629
The use of this method is discouraged.
3629
3630
Use `.Axes.get_xinverted` instead.
3630
- """ )
3631
+ """ ))
3631
3632
3632
3633
def get_xbound (self ):
3633
3634
"""
@@ -3870,7 +3871,7 @@ def set_ylabel(self, ylabel, fontdict=None, labelpad=None, *,
3870
3871
3871
3872
def invert_yaxis (self ):
3872
3873
"""
3873
- Invert the y-axis.
3874
+ [*Discouraged*] Invert the y-axis.
3874
3875
3875
3876
.. admonition:: Discouraged
3876
3877
@@ -3889,13 +3890,14 @@ def invert_yaxis(self):
3889
3890
get_yinverted = _axis_method_wrapper ("yaxis" , "get_inverted" )
3890
3891
yaxis_inverted = _axis_method_wrapper ("yaxis" , "get_inverted" )
3891
3892
if yaxis_inverted .__doc__ :
3892
- yaxis_inverted .__doc__ += textwrap .dedent ("""
3893
+ yaxis_inverted .__doc__ = ("[*Discouraged*] " + yaxis_inverted .__doc__ +
3894
+ textwrap .dedent ("""
3893
3895
3894
3896
.. admonition:: Discouraged
3895
3897
3896
3898
The use of this method is discouraged.
3897
3899
Use `.Axes.get_yinverted` instead.
3898
- """ )
3900
+ """ ))
3899
3901
3900
3902
def get_ybound (self ):
3901
3903
"""
0 commit comments