Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9285c3a

Browse files
committed
Update composite_images docstring
1 parent 5266fde commit 9285c3a

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

lib/matplotlib/image.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,31 @@
6161

6262
def composite_images(images, renderer, magnification=1.0):
6363
"""
64-
Composite a number of RGBA images into one.
64+
Composite a number of RGBA images into one. The images are
65+
composited in the order in which they appear in the `images` list.
6566
6667
Parameters
6768
----------
68-
images : list of objects with `make_image` method
69+
images : list of Images
70+
Each must have a `make_image` method. For each image,
71+
`can_composite` should return `True`, though this is not
72+
enforced by this function. Each image must have a purely
73+
affine transformation with no shear.
6974
7075
renderer : RendererBase instance
7176
7277
magnification : float
7378
The additional magnification to apply for the renderer in use.
79+
80+
Returns
81+
-------
82+
tuple : image, offset_x, offset_y
83+
Returns the tuple:
84+
85+
- image: A numpy array of the same type as the input images.
86+
87+
- offset_x, offset_y: The offset of the image (left, bottom)
88+
in the output figure.
7489
"""
7590
if len(images) == 0:
7691
return np.empty((0, 0, 4), dtype=np.uint8), 0, 0

0 commit comments

Comments
 (0)