Matplotlib: how to make imshow read x,y coordinates from other numpy arrays?

前端 未结 3 681
甜味超标
甜味超标 2020-11-28 15:56

When you want to plot a numpy array with imshow, this is what you normally do:

import numpy as np
import matplotlib.pyplot as plt

A=np.array([[         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-28 16:27

    For the extent method, to make it work, the argument aspect of imshow() needs to be "auto".

提交回复
热议问题