Imshow#

[1]:
import matplotgl.pyplot as plt
import numpy as np

Basic imshow#

[2]:
fig, ax = plt.subplots()

a = np.random.random((200, 300))

ax.imshow(a, extent=[10, 50, 200, 500])

fig
[2]:

With a colorbar#

[3]:
fig, ax = plt.subplots()

im = ax.imshow(np.random.random((20, 20)))
fig.colorbar(im)

fig
[3]: