matplotlib
Fork me on GitHub


Travis-CI:

Related Topics

This Page

Figimage DemoΒΆ

This illustrates placing images directly in the figure, with no axes.

../../_images/sphx_glr_figimage_demo_001.png
import numpy as np
import matplotlib
import matplotlib.cm as cm
import matplotlib.pyplot as plt


fig = plt.figure()
Z = np.arange(10000).reshape((100, 100))
Z[:, 50:] = 1

im1 = fig.figimage(Z, xo=50, yo=0, origin='lower')
im2 = fig.figimage(Z, xo=100, yo=100, alpha=.8, origin='lower')

plt.show()

Total running time of the script: ( 0 minutes 0.001 seconds)

Gallery generated by Sphinx-Gallery