Rotating axis (whole widget)

62 views
Skip to first unread message

Zakaria EZZAHED

unread,
Jul 14, 2020, 5:50:03 AM7/14/20
to pyqtgraph
Hi,
I'm writing a program for that visualization. My purpose is giving the user a tool to freely navigate on the plots. So far, pyqtgraph is giving me everything I need (mouse events, dragging..etc) but now I want to give the user the ability to rotate the whole content of the plot widget using 2 small handles. these handles will also act as a reference for the current axis orientation (pic for reference). For the moment, I know that pyqtgraph allows me to rotate each of the plots but is there any ready functionality that will let me achieve this task ? 

Thanks   

Lavinia B

unread,
Jul 14, 2020, 6:28:45 AM7/14/20
to pyqtgraph
Hi,
First thing that comes to mind to me is the using the roi to transform objects - from the examples). I replaced the image item with a plot item and it gives me a plot that can be rotated using the handles. However the view is flipped , but you should be able to fix it with the flip functions - on the viewbox. 
Hope it helps!

Zakaria EZZAHED

unread,
Jul 16, 2020, 7:28:11 AM7/16/20
to pyqtgraph
Thank you for the answer, I will try to implement this solution and give you a feedback asap !

Yassine Echeblaoui

unread,
Jul 22, 2020, 8:33:20 AM7/22/20
to pyqtgraph
Ah, yes
Reply all
Reply to author
Forward
0 new messages