matplotlib.pyplot.figimage(*args, **kwargs)
[source]
Add a non-resampled image to the figure.
The image is attached to the lower or upper left corner depending on origin.
Parameters: |
|
---|---|
Returns: | |
Other Parameters: |
|
figimage complements the axes image (imshow()
) which will be resampled to fit the current axes. If you want a resampled image to fill the entire figure, you can define an Axes
with extent [0,0,1,1].
Examples:
f = plt.figure() nx = int(f.get_figwidth() * f.dpi) ny = int(f.get_figheight() * f.dpi) data = np.random.random((ny, nx)) f.figimage(data) plt.show()
matplotlib.pyplot.figimage
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.figimage.html