2D plottingΒΆ

Plot a basic 2D figure

plot basic2dplot
import numpy as np
import matplotlib.pyplot as plt
rng = np.random.default_rng()
image = rng.random((30, 30))
plt.imshow(image, cmap="hot")
plt.colorbar()
plt.show()

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

Gallery generated by Sphinx-Gallery