For duplicate markers: I fully understand that matplotlib has similar questions like this one . My question on Tkinter not matplotlib .
Now I import Lena into python and draw a green dot in the hat with
In [72]: from PIL import Image ....: import matplotlib.pylab as plt ....: im = Image.open('lena.jpg') ....: fig = plt.figure() ....: axes = fig.add_axes([0.1, 0.1, 0.8, 0.8]) ....: axes.imshow(im) ....: axes.scatter(50, 50, marker='s', color='green') Out[72]: <matplotlib.collections.PathCollection at 0xb3e2ef0>
(Please ignore the red dot)

Now I want the green dot (50, 50) remain on Lena's hat, but I also want the green dot to be drawn in the lower left corner instead of the upper left corner.
I expect something like this:

As you can see, I managed to do this easily in matplotlib with one extra line:
axes.invert_yaxis()
Question
Now I draw on canvas in Tkinter . How can I achieve the same effect?
Update
Lena is just to illustrate my purpose. In my real problem, I am not importing anything into
Tkinter . I'm
just painting an empty canvas . I am
reluctant to change my data, I just want the drawing to turn upside down. As in my illustration of Lena, the coordinate is still
(50, 50) . The difference is that now it is in the lower left corner, and not in the upper corner.
python tkinter
user2881553
source share