Skip to content

Commit 84af779

Browse files
committed
numpydoc AxesImage
1 parent 6d71c85 commit 84af779

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

lib/matplotlib/image.py

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,27 @@ def get_filterrad(self):
822822

823823

824824
class AxesImage(_ImageBase):
825+
"""
826+
Parameters
827+
----------
828+
cmap : colors.Colormap
829+
norm : colors.Normalize
830+
Maps luminance to 0-1
831+
origin :
832+
extent : tuple
833+
The data axes (left, right, bottom, top) for making image plots
834+
registered with data plots. Default is to label the pixel
835+
centers with the zero-based row and column indices.
836+
filternorm :
837+
filterrad :
838+
resample : bool
839+
**kwargs :
840+
Additional kwargs are matplotlib.artist properties.
841+
842+
Notes
843+
-----
844+
interpolation and cmap default to their rc settings
845+
"""
825846
def __str__(self):
826847
return "AxesImage(%g,%g;%gx%g)" % tuple(self.axes.bbox.bounds)
827848

@@ -836,19 +857,6 @@ def __init__(self, ax,
836857
resample=False,
837858
**kwargs
838859
):
839-
"""
840-
interpolation and cmap default to their rc settings
841-
842-
cmap is a colors.Colormap instance
843-
norm is a colors.Normalize instance to map luminance to 0-1
844-
845-
extent is data axes (left, right, bottom, top) for making image plots
846-
registered with data plots. Default is to label the pixel
847-
centers with the zero-based row and column indices.
848-
849-
Additional kwargs are matplotlib.artist properties
850-
851-
"""
852860

853861
self._extent = extent
854862

0 commit comments

Comments
 (0)