Discussion:
guiqwt ImageDialog title
s***@public.gmane.org
2013-05-22 17:16:07 UTC
Permalink
Hello,

I have a script like this:

from guiqwt.builder import make
from guiqwt.plot import ImageDialog
...
image = ImageDialog(options=dict(title='my title'))
...

This code works fine but I would like to change the image title ('my
title') later in the code. How can I do?

An other question:
Actually, for each image, I'm doing:

im = image.get_plot()
im.dell_all_items()
im.add_item(make.image(new_image)

Does it's possible to update the image? I ask this because I would like to
be able to select a region of interest (RIO) and have the statistics of
this ROI for each successive image.

Thank you for your answers.
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
s***@public.gmane.org
2013-05-23 12:25:50 UTC
Permalink
I find the solution.

For the title and the update, it's easy:
im = image.get_plot()
im.set_title('My Title')
im.get_items()[1].set_data(new_image) #get_items()[1] because
get_items()[0] is the grid

Pierre, thank you very much for this powerful tool. I use it for different
project, mainly for data acquisition from different measuirng devices
(multimeter, temperature regulator, spectrometer etc.)
This shows that there is good alternative to Labview.

Boris Giordanengo
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Pierre Raybaut
2013-05-25 11:24:47 UTC
Permalink
Thanks for your kind words and thanks for sharing both your problem and
your solution!

Cheers,
-Pierre
Post by s***@public.gmane.org
I find the solution.
im = image.get_plot()
im.set_title('My Title')
im.get_items()[1].set_data(new_image) #get_items()[1] because
get_items()[0] is the grid
Pierre, thank you very much for this powerful tool. I use it for different
project, mainly for data acquisition from different measuirng devices
(multimeter, temperature regulator, spectrometer etc.)
This shows that there is good alternative to Labview.
Boris Giordanengo
--
You received this message because you are subscribed to the Google Groups
"guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Loading...