Gavin Wiggins

AboutNotesPhotos


Imshow plot

Written on May 10, 2023

Display data as an image using Matplotlib's imshow method.

import matplotlib.pyplot as plt
import numpy as np

a = np.random.rand(100, 100)

_, ax = plt.subplots(tight_layout=True)
ax.imshow(a, interpolation='bilinear')

plt.show()

imshow plot

Gavin Wiggins © 2024.
Made on a Mac with Genja. Hosted on GitHub Pages.