@@ -234,17 +234,18 @@ class _ImageBase(mcolorizer.ColorizingArtist):
234
234
"""
235
235
Base class for images.
236
236
237
- interpolation and cmap default to their rc settings
237
+ * interpolation* and * cmap* default to their rc settings.
238
238
239
- cmap is a colors.Colormap instance
240
- norm is a colors.Normalize instance to map luminance to 0-1
239
+ * cmap* is a `. colors.Colormap` instance.
240
+ * norm* is a `. colors.Normalize` instance to map luminance to 0-1.
241
241
242
- extent is data axes (left, right, bottom, top) for making image plots
243
- registered with data plots. Default is to label the pixel
244
- centers with the zero-based row and column indices.
242
+ * extent* is a `` (left, right, bottom, top)`` tuple in data coordinates, for
243
+ making image plots registered with data plots; the default is to label the
244
+ pixel centers with the zero-based row and column indices.
245
245
246
- Additional kwargs are matplotlib.artist properties
246
+ Additional kwargs are `.Artist` properties.
247
247
"""
248
+
248
249
zorder = 0
249
250
250
251
def __init__ (self , ax ,
@@ -733,11 +734,10 @@ def set_interpolation_stage(self, s):
733
734
734
735
Parameters
735
736
----------
736
- s : {'data', 'rgba', 'auto'} or None
737
- Whether to apply up/downsampling interpolation in data or RGBA
738
- space. If None, use :rc:`image.interpolation_stage`.
739
- If 'auto' we will check upsampling rate and if less
740
- than 3 then use 'rgba', otherwise use 'data'.
737
+ s : {'data', 'rgba', 'auto'}, default: :rc:`image.interpolation_stage`
738
+ Whether to apply resampling interpolation in data or RGBA space.
739
+ If 'auto', 'rgba' is used if the upsampling rate is less than 3,
740
+ otherwise 'data' is used.
741
741
"""
742
742
s = mpl ._val_or_rc (s , 'image.interpolation_stage' )
743
743
_api .check_in_list (['data' , 'rgba' , 'auto' ], s = s )
@@ -758,8 +758,7 @@ def set_resample(self, v):
758
758
759
759
Parameters
760
760
----------
761
- v : bool or None
762
- If None, use :rc:`image.resample`.
761
+ v : bool, default: :rc:`image.resample`
763
762
"""
764
763
v = mpl ._val_or_rc (v , 'image.resample' )
765
764
self ._resample = v
@@ -788,8 +787,10 @@ def get_filternorm(self):
788
787
789
788
def set_filterrad (self , filterrad ):
790
789
"""
791
- Set the resize filter radius only applicable to some
792
- <
5E56
span class=pl-s> interpolation schemes -- see help for imshow
790
+ Set the resize filter radius (only applicable to some
791
+ interpolation schemes).
792
+
793
+ See help for `~.Axes.imshow`.
793
794
794
795
Parameters
795
796
----------
0 commit comments