From: Perry G. <pe...@st...> - 2005-01-05 15:20:27
|
On Jan 3, 2005, at 7:36 PM, Stephen Walton wrote: > Stephen Walton wrote: > >> second would be a windowed, scrollable view into an image which is >> larger than the physical display. > > Actually, imshow seems almost to do this. I did > > imshow(imdata,interpolation='nearest') > > where imdata was a 1024 square image. Zooming and panning _seems_ to > show the full resolution image with individual pixels visible at high > zooms. Is this right? > Since John is away, if I interpret your question correctly, yes. Both implot and figimage save a reference to the original image so that when redisplayed, it is possible to do things like that (like expanding the size of a figimage window will show all pixels previously falling outside the bounds). Your previous request regarding adding scrollable plot regions raises an interesting issue. I think this is tricky (John may prove me wrong on this). It was this sort of functionality that made chaco comparatively complex so I'm hesitant about adding it. Effectively one now one would be wandering into the area of having the plotting package begin to emulate widgets within its canvas (e.g., the scroll bars). This doesn't mean that one couldn't write a gui application that had scroll bars that responded to scroll events by redisplaying the image (and plot) according to their position. But then it becomes gui dependent. Paul Barrett's suggestion to do a DS9 clone would likely take this approach I think. As you noticed, the general toolbar gives some of this functionality, but I don't know if will satisfy all such needs that something like DS9 does. Perry |