Skip to content

Commit a7d134d

Browse files
committed
Move _ImageBase __init__doc
1 parent 84af779 commit a7d134d

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

lib/matplotlib/image.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,19 @@ def _rgb_to_rgba(A):
218218

219219

220220
class _ImageBase(martist.Artist, cm.ScalarMappable):
221+
"""
222+
interpolation and cmap default to their rc settings
223+
224+
cmap is a colors.Colormap instance
225+
norm is a colors.Normalize instance to map luminance to 0-1
226+
227+
extent is data axes (left, right, bottom, top) for making image plots
228+
registered with data plots. Default is to label the pixel
229+
centers with the zero-based row and column indices.
230+
231+
Additional kwargs are matplotlib.artist properties
232+
233+
"""
221234
zorder = 0
222235

223236
def __init__(self, ax,
@@ -230,19 +243,6 @@ def __init__(self, ax,
230243
resample=False,
231244
**kwargs
232245
):
233-
"""
234-
interpolation and cmap default to their rc settings
235-
236-
cmap is a colors.Colormap instance
237-
norm is a colors.Normalize instance to map luminance to 0-1
238-
239-
extent is data axes (left, right, bottom, top) for making image plots
240-
registered with data plots. Default is to label the pixel
241-
centers with the zero-based row and column indices.
242-
243-
Additional kwargs are matplotlib.artist properties
244-
245-
"""
246246
martist.Artist.__init__(self)
247247
cm.ScalarMappable.__init__(self, norm, cmap)
248248
self._mouseover = True

0 commit comments

Comments
 (0)