For duplicate-markers: I am fully aware that there are some similar questions in matplotlib
, such as this one. My question is about
An angle can be used like such:
image = Image.open("lena.jpg")
angle = 180
tkimage = ImageTk.PhotoImage(image.rotate(angle))
...
It would be possible to draw the picture, and use reversed coordinates (so when you know the size of the canvas, instead of saying 50x50
, you could use (max-50)x(max-50)
.
The question is whether axes.imshow
can handle the ImageTk.PhotoImage
. Then again, I am not entirely sure if you'd just want this on a Tkinter canvas instead, e.g.:
canvas_obj = self.canvas.create_image(250, 250, image=tkimage)