How to add X vector and Y vector axis to imageItem with

23 views
Skip to first unread message

julien....@ensta.fr

unread,
Dec 10, 2020, 3:34:14 PM12/10/20
to pyqtgraph
Hi
Is it possible to plot an image with special X and Y axis.
I try to explain: I have a 2D matrix which the row represent the wavelenght and the column a delay. So  X and Y vectors are not linear and I can not do with translate and scale.
I saw the we can do with matplotlib like that : pcolormesh([x,Y],data) but i only use pyqtgraph to plot everything and prefer to use it.
Could somebody help me
Thanks in advance   

Ognyan Moore

unread,
Dec 10, 2020, 6:18:03 PM12/10/20
to pyqt...@googlegroups.com
pyqtgraph fairly recently added PColorMeshItem here: https://pyqtgraph.readthedocs.io/en/latest/graphicsItems/pcolormeshitem.html

--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/bc3a35aa-9271-47ec-9a55-b2d978372f15n%40googlegroups.com.

julien....@ensta.fr

unread,
Dec 11, 2020, 10:16:56 AM12/11/20
to pyqtgraph
Thanks
It's seem to work but in these case i can not use imageItem attribute like autolevel or histogram. au getLevels.
I ll try with that

Reply all
Reply to author
Forward
0 new messages