1
Just place the [0, 0]
in the lower left corner of the axes with:
subplot.imshow(image, extent=[0, 10, 0, 10], origin='lower')
Please have a look at the imshow()
docs
Update: How to check and set a default image.origin
value
-
Check:
>>> import matplotlib as mpl >>> print(mpl.rcParams['image.origin']) upper
-
Set
lower
as a default value (docs):$ echo "image.origin : lower" >> .config/matplotlib/matplotlibrc
-
Check again:
>>> import matplotlib as mpl >>> print(mpl.rcParams['image.origin']) upper
Source:stackexchange.com