I was trying to plot some data with scatter. My code is
import matplotlib.pyplot as plt import matplotlib as mpl import numpy as np from scipy.interpolate import
Look at the keyword arguments of imshow. There is origin. The default is "upper", but you want "lower".
imshow
origin
The default makes sense for plotting images, that usually start at the top-left corner. For most matrix-plotting, you'll want origin="lower"
origin="lower"