@@ -844,8 +844,9 @@ def get_position(self, original=False):
844
844
return self ._position .frozen ()
845
845
846
846
def set_position (self , pos , which = 'both' ):
847
- """
848
- Set the axes position with::
847
+ """Set the axes position
848
+
849
+ The expected shape of ``pos`` is::
849
850
850
851
pos = [left, bottom, width, height]
851
852
@@ -1188,13 +1189,14 @@ def ishold(self):
1188
1189
return self ._hold
1189
1190
1190
1191
def hold (self , b = None ):
1191
- """
1192
+ """Set the hold state
1193
+
1192
1194
Call signature::
1193
1195
1194
1196
hold(b=None)
1195
1197
1196
- Set the hold state. If *hold* is *None* (default), toggle the
1197
- *hold* state. Else set the *hold* state to boolean value *b*.
1198
+ If *hold* is *None* (default), toggle the *hold* state. Else
1199
+ set the *hold* state to boolean value *b*.
1198
1200
1199
1201
Examples::
1200
1202
@@ -2727,11 +2729,16 @@ def xaxis_inverted(self):
2727
2729
return right < left
2728
2730
2729
2731
def get_xbound (self ):
2730
- """
2731
- Returns the x-axis numerical bounds where::
2732
+ """Returns the x-axis numerical bounds
2733
+
2734
+ This always returns::
2732
2735
2733
2736
lowerBound < upperBound
2734
2737
2738
+ Returns
2739
+ -------
2740
+ lowerBound, upperBound : float
2741
+
2735
2742
"""
2736
2743
left , right = self .get_xlim ()
2737
2744
if left < right :
@@ -2773,7 +2780,8 @@ def get_xlim(self):
2773
2780
return tuple (self .viewLim .intervalx )
2774
2781
2775
2782
def set_xlim (self , left = None , right = None , emit = True , auto = False , ** kw ):
2776
- """
2783
+ """Set the data limits for the xaxis
2784
+
2777
2785
Call signature::
2778
2786
2779
2787
set_xlim(self, *args, **kwargs):
@@ -2871,7 +2879,8 @@ def get_xscale(self):
2871
2879
2872
2880
@docstring .dedent_interpd
2873
2881
def set_xscale (self , value , ** kwargs ):
2874
- """
2882
+ """Set the x-axis scale
2883
+
2875
2884
Call signature::
2876
2885
2877
2886
set_xscale(value)
@@ -2953,12 +2962,13 @@ def get_xticklabels(self, minor=False, which=None):
2953
2962
2954
2963
@docstring .dedent_interpd
2955
2964
def set_xticklabels (self , labels , fontdict = None , minor = False , ** kwargs ):
2956
- """
2965
+ """Set the xtick labels with list of strings *labels*
2966
+
2957
2967
Call signature::
2958
2968
2959
2969
set_xticklabels(labels, fontdict=None, minor=False, **kwargs)
2960
2970
2961
- Set the xtick labels with list of strings *labels*. Return a
2971
+ Return a
2962
2972
list of axis text instances.
2963
2973
2964
2974
*kwargs* set the :class:`~matplotlib.text.Text` properties.
@@ -3031,13 +3041,12 @@ def get_ylim(self):
3031
3041
return tuple (self .viewLim .intervaly )
3032
3042
3033
3043
def set_ylim (self , bottom = None , top = None , emit = True , auto = False , ** kw ):
3034
- """
3044
+ """Set the data limits for the yaxis
3045
+
3035
3046
Call signature::
3036
3047
3037
3048
set_ylim(self, *args, **kwargs):
3038
3049
3039
- Set the data limits for the yaxis
3040
-
3041
3050
Examples::
3042
3051
3043
3052
set_ylim((bottom, top))
@@ -3130,7 +3139,8 @@ def get_yscale(self):
3130
3139
3131
3140
@docstring .dedent_interpd
3132
3141
def set_yscale (self , value , ** kwargs ):
3133
- """
3142
+ """Set the y-axis scale
3143
+
3134
3144
Call signature::
3135
3145
3136
3146
set_yscale(value)
@@ -3215,12 +3225,13 @@ def get_yticklabels(self, minor=False, which=None):
3215
3225
3216
3226
@docstring .dedent_interpd
3217
3227
def set_yticklabels (self , labels , fontdict = None , minor = False , ** kwargs ):
3218
- """
3228
+ """Set the y tick labels with list of strings *labels*
3229
+
3219
3230
Call signature::
3220
3231
3221
3232
set_yticklabels(labels, fontdict=None, minor=False, **kwargs)
3222
3233
3223
- Set the y tick labels with list of strings *labels*. Return a list of
3234
+ Return a list of
3224
3235
:class:`~matplotlib.text.Text` instances.
3225
3236
3226
3237
*kwargs* set :class:`~matplotlib.text.Text` properties for the labels.
@@ -3626,8 +3637,9 @@ def get_cursor_props(self):
3626
3637
return self ._cursorProps
3627
3638
3628
3639
def set_cursor_props (self , * args ):
3629
- """
3630
- Set the cursor property as::
3640
+ """Set the cursor property as
3641
+
3642
+ Call signature ::
3631
3643
3632
3644
ax.set_cursor_props(linewidth, color)
3633
3645
@@ -3688,7 +3700,8 @@ def contains_point(self, point):
3688
3700
return self .patch .contains_point (point , radius = 1.0 )
3689
3701
3690
3702
def pick (self , * args ):
3691
- """
3703
+ """Trigger pick event
3704
+
3692
3705
Call signature::
3693
3706
3694
3707
pick(mouseevent)
@@ -3760,7 +3773,8 @@ def _make_twin_axes(self, *kl, **kwargs):
3760
3773
return ax2
3761
3774
3762
3775
def twinx (self ):
3763
- """
3776
+ """Create a twin Axes sharing the xaxis
3777
+
3764
3778
Call signature::
3765
3779
3766
3780
ax = twinx()
@@ -3785,7 +3799,8 @@ def twinx(self):
3785
3799
return ax2
3786
3800
3787
3801
def twiny (self ):
3788
- """
3802
+ """Create a twin Axes sharing the yaxis
3803
+
3789
3804
Call signature::
3790
3805
3791
3806
ax = twiny()
0 commit comments