Equivalent to matlab’s imagesc in matplotlib? [duplicate]

You want the extent kwarg

ax.imshow(data, extent=[0, 1, 0, 1])

See Imshow: extent and aspect for a more detailed example.

Leave a Comment