[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
|