python – Equivalent to matlabs imagesc in matplotlib?

python – Equivalent to matlabs imagesc in matplotlib?

You want the extent kwarg

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

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

python – Equivalent to matlabs imagesc in matplotlib?

Leave a Reply

Your email address will not be published. Required fields are marked *