grm/imshowΒΆ

[GRM] Using the imshow plot

import sys
import numpy as np
import grm

x = np.linspace(-2, 2, 40)
y = np.linspace(0, np.pi, 20)
z = np.sin(x[np.newaxis, :]) + np.cos(y[:, np.newaxis])

grm.plot.plot(grm.args.new({"c": z, "kind": "imshow", "title": "imshow-test"}))

print("Press enter to exit")
sys.stdin.readline()