python - Numpy flipped coordinate system -


i used opencv image processing. tried plot image on plotter (origin @ lower left), image flipped. opencv's origin in upper left, , y coordinates of image flipped.origin in upper left

what function should apply points such plot in new origin system (lower left)?

edit: not concerned changing plot display, need points' coordinates flipped. using np.flipud did not change points @ since point displayed n x 2 matrix.

the problem not lie in numpy in matplotlib way of displaying data. in order produce valid visualization should flip y-axis on image generation level, not numpy analysis. can done through matplitlib api axes object:

plt.gca().invert_yaxis() 

Comments