From: Christopher B. <Chr...@no...> - 2006-11-27 17:58:44
|
Dav...@no... wrote: > OK, I see (kind of, i.e., via the pylab interface) how to do it - > indirectly, i.e., by catching the click-on-figure event, then figuring > out where that event happened and comparing that to the locations of the > figure's pieces - Does MPL have some kind of hit-testing built-in? this seems a bit harder than it should be. > using matplotlib only, so here's hoping that wxmpl has > made it A) more direct (i.e., provided some way to access a figure's > pieces seemingly directly, i.e., without having to figure out where in > the figure those pieces are as an explicit intermediate step), and > thereby B) easier. I don't' think so.... However, Mplot may be worth a look-see: http://cars9.uchicago.edu/~newville/Epics/Python/MPlot/ As far as I can tell, it provides a user-editable plot. However, I can't tell with a quick perusal if you can click on an axis and get feedback for that. It would be nice if wxMPL and MPlot shored a code base, but alas -- they were started independently. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |