@@ -74,7 +74,7 @@ def composite_images(images, renderer, magnification=1.0):
7474
7575 Returns
7676 -------
77- image : uint8 array (M, N, 4)
77+ image : (M, N, 4) `numpy.uint8` array
7878 The composited RGBA image.
7979 offset_x, offset_y : float
8080 The (left, bottom) offset where the composited image should be placed
@@ -333,9 +333,10 @@ def _make_image(self, A, in_bbox, out_bbox, clip_bbox, magnification=1.0,
333333 the given *clip_bbox* (also in pixel space), and magnified by the
334334 *magnification* factor.
335335
336- *A* may be a greyscale image (M, N) with a dtype of float32, float64,
337- float128, uint16 or uint8, or an (M, N, 4) RGBA image with a dtype of
338- float32, float64, float128, or uint8.
336+ *A* may be a greyscale image (M, N) with a dtype of `~numpy.float32`,
337+ `~numpy.float64`, `~numpy.float128`, `~numpy.uint16` or `~numpy.uint8`,
338+ or an (M, N, 4) RGBA image with a dtype of `~numpy.float32`,
339+ `~numpy.float64`, `~numpy.float128`, or `~numpy.uint8`.
339340
340341 If *unsampled* is True, the image will not be scaled, but an
341342 appropriate affine transformation will be returned instead.
@@ -347,12 +348,12 @@ def _make_image(self, A, in_bbox, out_bbox, clip_bbox, magnification=1.0,
347348
348349 Returns
349350 -------
350- image : (M, N, 4) uint8 array
351+ image : (M, N, 4) `numpy. uint8` array
351352 The RGBA image, resampled unless *unsampled* is True.
352353 x, y : float
353354 The upper left corner where the image should be drawn, in pixel
354355 space.
355- trans : Affine2D
356+ trans : `~matplotlib.transforms. Affine2D`
356357 The affine transformation from image to pixel space.
357358 """
358359 if A is None :
@@ -596,12 +597,12 @@ def make_image(self, renderer, magnification=1.0, unsampled=False):
596597
597598 Returns
598599 -------
599- image : (M, N, 4) uint8 array
600+ image : (M, N, 4) `numpy. uint8` array
600601 The RGBA image, resampled unless *unsampled* is True.
601602 x, y : float
602603 The upper left corner where the image should be drawn, in pixel
603604 space.
604- trans : Affine2D
605+ trans : `~matplotlib.transforms. Affine2D`
605606 The affine transformation from image to pixel space.
606607 """
607608 raise NotImplementedError ('The make_image method must be overridden' )
@@ -781,7 +782,7 @@ def set_interpolation_stage(self, s):
781782 Parameters
782783 ----------
783784 s : {'data', 'rgba'} or None
784- Whether to apply up/downsampling interpolation in data or rgba
785+ Whether to apply up/downsampling interpolation in data or RGBA
785786 space.
786787 """
787788 if s is None :
0 commit comments