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: |
|
Notes
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
¶