0
私は非常に奇妙な問題があります。私のimshow instaceのデータを設定した後、原点は 'upper'から 'lower'に変更され、再び元に戻すことはできませんでした。何か案は?set_data()後のimshowの新しい起点
im = ax.imshow(data)
ax.set_xlim(0, new_data.shape[1])
ax.set_ylim(0, new_data.shape[0])
im.set_extent((0, new_data.shape[1], 0, new_data.shape[0]))
im.set_data(new_data)