@@ -220,7 +220,7 @@ def get_legend_handles_labels(self, legend_handler_map=None):
220
220
[self ], legend_handler_map )
221
221
return handles , labels
222
222
223
- @_docstring .dedent_interpd
223
+ @_docstring .interpd
224
224
def legend (self , * args , ** kwargs ):
225
225
"""
226
226
Place a legend on the Axes.
@@ -418,7 +418,7 @@ def inset_axes(self, bounds, *, transform=None, zorder=5, **kwargs):
418
418
419
419
return inset_ax
420
420
421
- @_docstring .dedent_interpd
421
+ @_docstring .interpd
422
422
def indicate_inset (self , bounds , inset_ax = None , * , transform = None ,
423
423
facecolor = 'none' , edgecolor = '0.5' , alpha = 0.5 ,
424
424
zorder = 4.99 , ** kwargs ):
@@ -572,7 +572,7 @@ def indicate_inset_zoom(self, inset_ax, **kwargs):
572
572
rect = (xlim [0 ], ylim [0 ], xlim [1 ] - xlim [0 ], ylim [1 ] - ylim [0 ])
573
573
return self .indicate_inset (rect , inset_ax , ** kwargs )
574
574
575
- @_docstring .dedent_interpd
575
+ @_docstring .interpd
576
576
def secondary_xaxis (self , location , functions = None , * , transform = None , ** kwargs ):
577
577
"""
578
578
Add a second x-axis to this `~.axes.Axes`.
@@ -626,7 +626,7 @@ def invert(x):
626
626
self .add_child_axes (secondary_ax )
627
627
return secondary_ax
628
628
629
- @_docstring .dedent_interpd
629
+ @_docstring .interpd
630
630
def secondary_yaxis (self , location , functions = None , * , transform = None , ** kwargs ):
631
631
"""
632
632
Add a second y-axis to this `~.axes.Axes`.
@@ -670,7 +670,7 @@ def secondary_yaxis(self, location, functions=None, *, transform=None, **kwargs)
670
670
self .add_child_axes (secondary_ax )
671
671
return secondary_ax
672
672
673
- @_docstring .dedent_interpd
673
+ @_docstring .interpd
674
674
def text (self , x , y , s , fontdict = None , ** kwargs ):
675
675
"""
676
676
Add text to the Axes.
@@ -749,7 +749,7 @@ def text(self, x, y, s, fontdict=None, **kwargs):
749
749
self ._add_text (t )
750
750
return t
751
751
752
- @_docstring .dedent_interpd
752
+ @_docstring .interpd
753
753
def annotate (self , text , xy , xytext = None , xycoords = 'data' , textcoords = None ,
754
754
arrowprops = None , annotation_clip = None , ** kwargs ):
755
755
# Signature must match Annotation. This is verified in
@@ -765,7 +765,7 @@ def annotate(self, text, xy, xytext=None, xycoords='data', textcoords=None,
765
765
annotate .__doc__ = mtext .Annotation .__init__ .__doc__
766
766
#### Lines and spans
767
767
768
- @_docstring .dedent_interpd
768
+ @_docstring .interpd
769
769
def axhline (self , y = 0 , xmin = 0 , xmax = 1 , ** kwargs ):
770
770
"""
771
771
Add a horizontal line spanning the whole or fraction of the Axes.
@@ -839,7 +839,7 @@ def axhline(self, y=0, xmin=0, xmax=1, **kwargs):
839
839
self ._request_autoscale_view ("y" )
840
840
return l
841
841
842
- @_docstring .dedent_interpd
842
+ @_docstring .interpd
843
843
def axvline (self , x = 0 , ymin = 0 , ymax = 1 , ** kwargs ):
844
844
"""
845
845
Add a vertical line spanning the whole or fraction of the Axes.
@@ -921,7 +921,7 @@ def _check_no_units(vals, names):
921
921
raise ValueError (f"{ name } must be a single scalar value, "
922
922
f"but got { val } " )
923
923
924
- @_docstring .dedent_interpd
924
+ @_docstring .interpd
925
925
def axline (self , xy1 , xy2 = None , * , slope = None , ** kwargs ):
926
926
"""
927
927
Add an infinitely long straight line.
@@ -995,7 +995,7 @@ def axline(self, xy1, xy2=None, *, slope=None, **kwargs):
995
995
self ._request_autoscale_view ()
996
996
return line
997
997
998
- @_docstring .dedent_interpd
998
+ @_docstring .interpd
999
999
def axhspan (self , ymin , ymax , xmin = 0 , xmax = 1 , ** kwargs ):
1000
1000
"""
1001
1001
Add a horizontal span (rectangle) across the Axes.
@@ -1050,7 +1050,7 @@ def axhspan(self, ymin, ymax, xmin=0, xmax=1, **kwargs):
1050
1050
self ._request_autoscale_view ("y" )
1051
1051
return p
1052
1052
1053
- @_docstring .dedent_interpd
1053
+ @_docstring .interpd
1054
1054
def axvspan (self , xmin , xmax , ymin = 0 , ymax = 1 , ** kwargs ):
1055
1055
"""
1056
1056
Add a vertical span (rectangle) across the Axes.
@@ -1301,7 +1301,7 @@ def vlines(self, x, ymin, ymax, colors=None, linestyles='solid',
1301
1301
@_preprocess_data (replace_names = ["positions" , "lineoffsets" ,
1302
1302
"linelengths" , "linewidths" ,
1303
1303
"colors" , "linestyles" ])
1304
- @_docstring .dedent_interpd
1304
+ @_docstring .interpd
1305
1305
def eventplot (self , positions , orientation = 'horizontal' , lineoffsets = 1 ,
1306
1306
linelengths = 1 , linewidths = None , colors = None , alpha = None ,
1307
1307
linestyles = 'solid' , ** kwargs ):
@@ -1547,7 +1547,7 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
1547
1547
1548
1548
# Uses a custom implementation of data-kwarg handling in
1549
1549
# _process_plot_var_args.
1550
- @_docstring .dedent_interpd
1550
+ @_docstring .interpd
1551
1551
def plot (self , * args , scalex = True , scaley = True , data = None , ** kwargs ):
1552
1552
"""
1553
1553
Plot y versus x as lines and/or markers.
@@ -1803,7 +1803,7 @@ def plot(self, *args, scalex=True, scaley=True, data=None, **kwargs):
1803
1803
1804
1804
@_api .deprecated ("3.9" , alternative = "plot" )
1805
1805
@_preprocess_data (replace_names = ["x" , "y" ], label_namer = "y" )
1806
- @_docstring .dedent_interpd
1806
+ @_docstring .interpd
1807
1807
def plot_date (self , x , y , fmt = 'o' , tz = None , xdate = True , ydate = False ,
1808
1808
** kwargs ):
1809
1809
"""
@@ -1883,7 +1883,7 @@ def plot_date(self, x, y, fmt='o', tz=None, xdate=True, ydate=False,
1883
1883
return self .plot (x , y , fmt , ** kwargs )
1884
1884
1885
1885
# @_preprocess_data() # let 'plot' do the unpacking..
1886
- @_docstring .dedent_interpd
1886
+ @_docstring .interpd
1887
1887
def loglog (self , * args , ** kwargs ):
1888
1888
"""
1889
1889
Make a plot with log scaling on both the x- and y-axis.
@@ -1937,7 +1937,7 @@ def loglog(self, *args, **kwargs):
1937
1937
* args , ** {k : v for k , v in kwargs .items () if k not in {* dx , * dy }})
1938
1938
1939
1939
# @_preprocess_data() # let 'plot' do the unpacking..
1940
- @_docstring .dedent_interpd
1940
+ @_docstring .interpd
1941
1941
def semilogx (self , * args , ** kwargs ):
1942
1942
"""
1943
1943
Make a plot with log scaling on the x-axis.
@@ -1984,7 +1984,7 @@ def semilogx(self, *args, **kwargs):
1984
1984
* args , ** {k : v for k , v in kwargs .items () if k not in d })
1985
1985
1986
1986
# @_preprocess_data() # let 'plot' do the unpacking..
1987
- @_docstring .dedent_interpd
1987
+ @_docstring .interpd
1988
1988
def semilogy (self , * args , ** kwargs ):
1989
1989
"""
1990
1990
Make a plot with log scaling on the y-axis.
@@ -2340,7 +2340,7 @@ def _convert_dx(dx, x0, xconv, convert):
2340
2340
return dx
2341
2341
2342
2342
@_preprocess_data ()
2343
- @_docstring .dedent_interpd
2343
+ @_docstring .interpd
2344
2344
def bar (self , x , height , width = 0.8 , bottom = None , * , align = "center" ,
2345
2345
** kwargs ):
2346
2346
r"""
@@ -2652,7 +2652,7 @@ def bar(self, x, height, width=0.8, bottom=None, *, align="center",
2652
2652
return bar_container
2653
2653
2654
2654
# @_preprocess_data() # let 'bar' do the unpacking..
2655
- @_docstring .dedent_interpd
2655
+ @_docstring .interpd
2656
2656
def barh (self , y , width , height = 0.8 , left = None , * , align = "center" ,
2657
2657
data = None , ** kwargs ):
2658
2658
r"""
@@ -2946,7 +2946,7 @@ def sign(x):
2946
2946
return annotations
2947
2947
2948
2948
@_preprocess_data ()
2949
- @_docstring .dedent_interpd
2949
+ @_docstring .interpd
2950
2950
def broken_barh (self , xranges , yrange , ** kwargs ):
2951
2951
"""
2952
2952
Plot a horizontal sequence of rectangles.
@@ -3455,7 +3455,7 @@ def _errorevery_to_mask(x, errorevery):
3455
3455
@_api .make_keyword_only ("3.9" , "ecolor" )
3456
3456
@_preprocess_data (replace_names = ["x" , "y" , "xerr" , "yerr" ],
3457
3457
label_namer = "y" )
3458
- @_docstring .dedent_interpd
3458
+ @_docstring .interpd
3459
3459
def errorbar (self , x , y , yerr = None , xerr = None ,
3460
3460
fmt = '' , ecolor = None , elinewidth = None , capsize = None ,
3461
3461
barsabove = False , lolims = False , uplims = False ,
@@ -4985,7 +4985,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
4985
4985
4986
4986
@_api .make_keyword_only ("3.9" , "gridsize" )
4987
4987
@_preprocess_data (replace_names = ["x" , "y" , "C" ], label_namer = "y" )
4988
- @_docstring .dedent_interpd
4988
+ @_docstring .interpd
4989
4989
def hexbin (self , x , y , C = None , gridsize = 100 , bins = None ,
4990
4990
xscale = 'linear' , yscale = 'linear' , extent = None ,
4991
4991
cmap = None , norm = None , vmin = None , vmax = None ,
@@ -5380,7 +5380,7 @@ def on_changed(collection):
5380
5380
5381
5381
return collection
5382
5382
5383
- @_docstring .dedent_interpd
5383
+ @_docstring .interpd
5384
5384
def arrow (self , x , y , dx , dy , ** kwargs ):
5385
5385
"""
5386
5386
Add an arrow to the Axes.
@@ -5435,7 +5435,7 @@ def _quiver_units(self, args, kwargs):
5435
5435
5436
5436
# args can be a combination of X, Y, U, V, C and all should be replaced
5437
5437
@_preprocess_data ()
5438
- @_docstring .dedent_interpd
5438
+ @_docstring .interpd
5439
5439
def quiver (self , * args , ** kwargs ):
5440
5440
"""%(quiver_doc)s"""
5441
5441
# Make sure units are handled for x and y values
@@ -5447,7 +5447,7 @@ def quiver(self, *args, **kwargs):
5447
5447
5448
5448
# args can be some combination of X, Y, U, V, C and all should be replaced
5449
5449
@_preprocess_data ()
5450
- @_docstring .dedent_interpd
5450
+ @_docstring .interpd
5451
5451
def barbs (self , * args , ** kwargs ):
5452
5452
"""%(barbs_doc)s"""
5453
5453
# Make sure units are handled for x and y values
@@ -5718,7 +5718,7 @@ def fill_between(self, x, y1, y2=0, where=None, interpolate=False,
5718
5718
dir = "horizontal" , ind = "x" , dep = "y"
5719
5719
)
5720
5720
fill_between = _preprocess_data (
5721
- _docstring .dedent_interpd (fill_between ),
5721
+ _docstring .interpd (fill_between ),
5722
5722
replace_names = ["x" , "y1" , "y2" , "where" ])
5723
5723
5724
5724
def fill_betweenx (self , y , x1 , x2 = 0 , where = None ,
@@ -5732,7 +5732,7 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
5732
5732
dir = "vertical" , ind = "y" , dep = "x"
5733
5733
)
5734
5734
fill_betweenx = _preprocess_data (
5735
- _docstring .dedent_interpd (fill_betweenx ),
5735
+ _docstring .interpd (fill_betweenx ),
5736
5736
replace_names = ["y" , "x1" , "x2" , "where" ])
5737
5737
5738
5738
#### plotting z(x, y): imshow, pcolor and relatives, contour
@@ -6093,7 +6093,7 @@ def _interp_grid(X):
6093
6093
return X , Y , C , shading
6094
6094
6095
6095
@_preprocess_data ()
6096
- @_docstring .dedent_interpd
6096
+ @_docstring .interpd
6097
6097
def pcolor (self , * args , shading = None , alpha = None , norm = None , cmap = None ,
6098
6098
vmin = None , vmax = None , ** kwargs ):
6099
6099
r"""
@@ -6310,7 +6310,7 @@ def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None,
6310
6310
return collection
6311
6311
6312
6312
@_preprocess_data ()
6313
- @_docstring .dedent_interpd
6313
+ @_docstring .interpd
6314
6314
def pcolormesh (self , * args , alpha = None , norm = None , cmap = None , vmin = None ,
6315
6315
vmax = None , shading = None , antialiased = False , ** kwargs ):
6316
6316
"""
@@ -6537,7 +6537,7 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6537
6537
return collection
6538
6538
6539
6539
@_preprocess_data ()
6540
- @_docstring .dedent_interpd
6540
+ @_docstring .interpd
6541
6541
def pcolorfast (self , * args , alpha = None , norm = None , cmap = None , vmin = None ,
6542
6542
vmax = None , ** kwargs ):
6543
6543
"""
@@ -6724,7 +6724,7 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6724
6724
return ret
6725
6725
6726
6726
@_preprocess_data ()
6727
- @_docstring .dedent_interpd
6727
+ @_docstring .interpd
6728
6728
def contour (self , * args , ** kwargs ):
6729
6729
"""
6730
6730
Plot contour lines.
@@ -6742,7 +6742,7 @@ def contour(self, *args, **kwargs):
6742
6742
return contours
6743
6743
6744
6744
@_preprocess_data ()
6745
- @_docstring .dedent_interpd
6745
+ @_docstring .interpd
6746
6746
def contourf (self , * args , ** kwargs ):
6747
6747
"""
6748
6748
Plot filled contours.
@@ -7374,7 +7374,7 @@ def stairs(self, values, edges=None, *,
7374
7374
7375
7375
@_api .make_keyword_only ("3.9" , "range" )
7376
7376
@_preprocess_data (replace_names = ["x" , "y" , "weights" ])
7377
- @_docstring .dedent_interpd
7377
+ @_docstring .interpd
7378
7378
def hist2d (self , x , y , bins = 10 , range = None , density = False , weights = None ,
7379
7379
cmin = None , cmax = None , ** kwargs ):
7380
7380
"""
@@ -7481,7 +7481,7 @@ def hist2d(self, x, y, bins=10, range=None, density=False, weights=None,
7481
7481
return h , xedges , yedges , pc
7482
7482
7483
7483
@_preprocess_data (replace_names = ["x" , "weights" ], label_namer = "x" )
7484
- @_docstring .dedent_interpd
7484
+ @_docstring .interpd
7485
7485
def ecdf (self , x , weights = None , * , complementary = False ,
7486
7486
orientation = "vertical" , compress = False , ** kwargs ):
7487
7487
"""
@@ -7584,7 +7584,7 @@ def ecdf(self, x, weights=None, *, complementary=False,
7584
7584
7585
7585
@_api .make_keyword_only ("3.9" , "NFFT" )
7586
7586
@_preprocess_data (replace_names = ["x" ])
7587
- @_docstring .dedent_interpd
7587
+ @_docstring .interpd
7588
7588
def psd (self , x , NFFT = None , Fs = None , Fc = None , detrend = None ,
7589
7589
window = None , noverlap = None , pad_to = None ,
7590
7590
sides = None , scale_by_freq = None , return_line = None , ** kwargs ):
@@ -7696,7 +7696,7 @@ def psd(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
7696
7696
7697
7697
@_api .make_keyword_only ("3.9" , "NFFT" )
7698
7698
@_preprocess_data (replace_names = ["x" , "y" ], label_namer = "y" )
7699
- @_docstring .dedent_interpd
7699
+ @_docstring .interpd
7700
7700
def csd (self , x , y , NFFT = None , Fs = None , Fc = None , detrend = None ,
7701
7701
window = None , noverlap = None , pad_to = None ,
7702
7702
sides = None , scale_by_freq = None , return_line = None , ** kwargs ):
@@ -7799,7 +7799,7 @@ def csd(self, x, y, NFFT=None, Fs=None, Fc=None, detrend=None,
7799
7799
7800
7800
@_api .make_keyword_only ("3.9" , "Fs" )
7801
7801
@_preprocess_data (replace_names = ["x" ])
7802
- @_docstring .dedent_interpd
7802
+ @_docstring .interpd
7803
7803
def magnitude_spectrum (self , x , Fs = None , Fc = None , window = None ,
7804
7804
pad_to = None , sides = None , scale = None ,
7805
7805
** kwargs ):
@@ -7886,7 +7886,7 @@ def magnitude_spectrum(self, x, Fs=None, Fc=None, window=None,
7886
7886
7887
7887
@_api .make_keyword_only ("3.9" , "Fs" )
7888
7888
@_preprocess_data (replace_names = ["x" ])
7889
- @_docstring .dedent_interpd
7889
+ @_docstring .interpd
7890
7890
def angle_spectrum (self , x , Fs = None , Fc = None , window = None ,
7891
7891
pad_to = None , sides = None , ** kwargs ):
7892
7892
"""
@@ -7956,7 +7956,7 @@ def angle_spectrum(self, x, Fs=None, Fc=None, window=None,
7956
7956
7957
7957
@_api .make_keyword_only ("3.9" , "Fs" )
7958
7958
@_preprocess_data (replace_names = ["x" ])
7959
- @_docstring .dedent_interpd
7959
+ @_docstring .interpd
7960
7960
def phase_spectrum (self , x , Fs = None , Fc = None , window = None ,
7961
7961
pad_to = None , sides = None , ** kwargs ):
7962
7962
"""
@@ -8026,7 +8026,7 @@ def phase_spectrum(self, x, Fs=None, Fc=None, window=None,
8026
8026
8027
8027
@_api .make_keyword_only ("3.9" , "NFFT" )
8028
8028
@_preprocess_data (replace_names = ["x" , "y" ])
8029
- @_docstring .dedent_interpd
8029
+ @_docstring .interpd
8030
8030
def cohere (self , x , y , NFFT = 256 , Fs = 2 , Fc = 0 , detrend = mlab .detrend_none ,
8031
8031
window = mlab .window_hanning , noverlap = 0 , pad_to = None ,
8032
8032
sides = 'default' , scale_by_freq = None , ** kwargs ):
@@ -8091,7 +8091,7 @@ def cohere(self, x, y, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
8091
8091
8092
8092
@_api .make_keyword_only ("3.9" , "NFFT" )
8093
8093
@_preprocess_data (replace_names = ["x" ])
8094
- @_docstring .dedent_interpd
8094
+ @_docstring .interpd
8095
8095
def specgram (self , x , NFFT = None , Fs = None , Fc = None , detrend = None ,
8096
8096
window = None , noverlap = None ,
8097
8097
cmap = None , xextent = None , pad_to = None , sides = None ,
@@ -8252,7 +8252,7 @@ def specgram(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
8252
8252
return spec , freqs , t , im
8253
8253
8254
8254
@_api .make_keyword_only ("3.9" , "precision" )
8255
- @_docstring .dedent_interpd
8255
+ @_docstring .interpd
8256
8256
def spy (self , Z , precision = 0 , marker = None , markersize = None ,
8257
8257
aspect = 'equal' , origin = "upper" , ** kwargs ):
8258
8258
"""
0 commit comments