Matplotlib imshow: Data rotated?

前端 未结 4 1196
清酒与你
清酒与你 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:35

    Consider to use pcolormesh or contourf if you want to plot data of the form f(X, Y) = Z. imshow simply plots data Z, scaling and resampling has do be done manually.

提交回复
热议问题