customize ImageView

68 views
Skip to first unread message

jean Bilheux

unread,
Nov 3, 2016, 10:39:11 AM11/3/16
to pyqtgraph
Hi all,

I'm new to pyqtgraph and am very impressed by its capabilities. I already inserted the ImageView inside a PyQt program I'm writing. I love the ImageView features (historgram and ROI capabilities) but when the user select a ROI, I want to display a different plot at the bottom.... so my question is : is it possible to customize such a feature ?  Intercept the ROI region and plot my own data instead of the profile plot offered by ImageView?

thanks for your help

Jean

Vincent Le Saux

unread,
Nov 6, 2016, 8:23:56 AM11/6/16
to pyqtgraph
Hi,

I don't know if it is possible with ImageView, but it should be very easy to do by subclassing ImageView and overwritting the roiChanged method.

Vincent

jean Bilheux

unread,
Nov 7, 2016, 10:48:44 AM11/7/16
to pyqt...@googlegroups.com
Thanks Vincent for your reply,

I pretty much exactly what you said. It took me a few hours to figure out how everything works (and I'm still learning) but this library is very impressive. I love it. 

Jean

--
You received this message because you are subscribed to a topic in the Google Groups "pyqtgraph" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyqtgraph/Y4_nqoSxbbw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyqtgraph+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/cb919d04-8d16-4a45-8185-46c81b6e5efa%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Jean Bilheux
jeanb...@gmail.com

Vincent Le Saux

unread,
Nov 7, 2016, 1:56:51 PM11/7/16
to pyqtgraph
Glad it helped! Indeed, Luke did an amazing job with this library.

Vincent


Le lundi 7 novembre 2016 16:48:44 UTC+1, jean Bilheux a écrit :
Thanks Vincent for your reply,

I pretty much exactly what you said. It took me a few hours to figure out how everything works (and I'm still learning) but this library is very impressive. I love it. 

Jean
On Sun, Nov 6, 2016 at 8:23 AM, Vincent Le Saux <vincent...@gmail.com> wrote:
Hi,

I don't know if it is possible with ImageView, but it should be very easy to do by subclassing ImageView and overwritting the roiChanged method.

Vincent

Le jeudi 3 novembre 2016 15:39:11 UTC+1, jean Bilheux a écrit :
Hi all,

I'm new to pyqtgraph and am very impressed by its capabilities. I already inserted the ImageView inside a PyQt program I'm writing. I love the ImageView features (historgram and ROI capabilities) but when the user select a ROI, I want to display a different plot at the bottom.... so my question is : is it possible to customize such a feature ?  Intercept the ROI region and plot my own data instead of the profile plot offered by ImageView?

thanks for your help

Jean

--
You received this message because you are subscribed to a topic in the Google Groups "pyqtgraph" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyqtgraph/Y4_nqoSxbbw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyqtgraph+...@googlegroups.com.



--
Jean Bilheux
jeanb...@gmail.com
Reply all
Reply to author
Forward
0 new messages