@@ -74,7 +74,7 @@ def composite_images(images, renderer, magnification=1.0):
74
74
75
75
Returns
76
76
-------
77
- image : uint8 array (M, N, 4)
77
+ image : (M, N, 4) `numpy.uint8` array
78
78
The composited RGBA image.
79
79
offset_x, offset_y : float
80
80
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,
333
333
the given *clip_bbox* (also in pixel space), and magnified by the
334
334
*magnification* factor.
335
335
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`.
339
340
340
341
If *unsampled* is True, the image will not be scaled, but an
341
342
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,
347
348
348
349
Returns
349
350
-------
350
- image : (M, N, 4) uint8 array
351
+ image : (M, N, 4) `numpy. uint8` array
351
352
The RGBA image, resampled unless *unsampled* is True.
352
353
x, y : float
353
354
The upper left corner where the image should be drawn, in pixel
354
355
space.
355
- trans : Affine2D
356
+ trans : `~matplotlib.transforms. Affine2D`
356
357
The affine transformation from image to pixel space.
357
358
"""
358
359
if A is None :
@@ -596,12 +597,12 @@ def make_image(self, renderer, magnification=1.0, unsampled=False):
596
597
597
598
Returns
598
599
-------
599
- image : (M, N, 4) uint8 array
600
+ image : (M, N, 4) `numpy. uint8` array
600
601
The RGBA image, resampled unless *unsampled* is True.
601
602
x, y : float
602
603
The upper left corner where the image should be drawn, in pixel
603
604
space.
604
- trans : Affine2D
605
+ trans : `~matplotlib.transforms. Affine2D`
605
606
The affine transformation from image to pixel space.
606
607
"""
607
608
raise NotImplementedError ('The make_image method must be overridden' )
@@ -781,7 +782,7 @@ def set_interpolation_stage(self, s):
781
782
Parameters
782
783
----------
783
784
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
785
786
space.
786
787
"""
787
788
if s is None :
0 commit comments