Matplotlib imshow: Data rotated?

前端 未结 4 1197
清酒与你
清酒与你 2021-02-07 02:21

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         


        
4条回答
  •  别那么骄傲
    2021-02-07 02:39

    It's not inverted, just flipped. The origin for imshow default to the upper left rather than the lower left. imshow has a parameter to specify the origin, it's named origin. Alternatively you can set the default in your matplotlib.conf.

提交回复
热议问题