When you want to plot a numpy array with imshow, this is what you normally do:
imshow
import numpy as np import matplotlib.pyplot as plt A=np.array([[
For the extent method, to make it work, the argument aspect of imshow() needs to be "auto".