Every time I go to plot a 2D array in matplotlib
using, for example, pcolormesh
, I have the same question: Is the resultant image showing the array rightside-up or upside-down? That is, is index (0, 0)
at the top left of the plot or the bottom left?
It's tedious to write a test every six months to remind myself. This should be clearly documented in an obvious place, like SO.
该数组上下颠倒绘制,这意味着索引(0, 0)
在左下方。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.