ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> scipy-chaco
scipy-chaco
[Chaco-users] issue with ImageInspectorTool...
by Fred other posts by this author
Aug 2 2007 2:54PM messages near this date
Re: [Chaco-users] nans with img_plot... | Re: [Chaco-users] issue with ImageInspectorTool...
Hi,

Someone who has posted here has given me the idea to (re) browse the 
examples :-)

I wanted to give a try to image_inspector.py, and applied to my traits app:

    def add_tools(self, plot):
        plot.tools.append(PanTool(plot))
        plot.tools.append(SaveTool(self.display))
        plot.overlays.append(SimpleZoom(plot))
        image_plot = self.plot2D.plots['plot2D'][0]
        image_tool = ImageInspectorTool(image_plot)
        image_plot.tools.append(image_tool)
        overlay = ImageInspectorOverlay(component=image_plot,
                                        image_inspector=image_tool,
                                        bgcolor='lavender',
                                        border_visible=True)
        image_plot.overlays.append(overlay)

1)
As you can see here:
http://fredantispam.free.fr/chaco_img_inspector.png
the probed value is obviously not the right one.

I must have made something wrong, since
the probed values in image_inspector.py seem to be ok.

Something obvious that did not catch my eyes ?

2) The textbox is always displayed.
I would like to display it only when I click on the middle-button (the 
last ;-) for example.
Moreover, I'm only interested by the scalar value, not the RGB,
and the x/y coords.
Should it be straightforward to do this ?
I looked at image_inspector_tool.py but did not see anything related.

If not, it does not matter.
Others issues are more important for me ;-)

 
TIA.


Cheers,

-- 
http://scipy.org/FredericPetit

_______________________________________________
Chaco-users mailing list
Chaco-users@[...].com
https://mail.enthought.com/mailman/listinfo/chaco-users
Thread:
Fred
Bryan Van de Ven
Bryan Van de Ven
Fred
Bryan Van de Ven
Fred
Bryan Van de Ven
Fred
Peter Wang
Fred
Fred
Fred
Fred
Fred
Bryan Van de Ven
Fred
Fred
Bryan Van de Ven
Fred
Bryan Van de Ven
Fred
Bryan Van de Ven
Fred
Bryan Van de Ven
Fred
Bryan Van de Ven
Fred
Peter Wang
Fred
Peter Wang
Fred
Fred

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved