From: Perry G. <pe...@st...> - 2005-02-17 15:43:15
|
On Feb 17, 2005, at 10:22 AM, Rich Drewes wrote: > On Thu, 17 Feb 2005, Perry Greenfield wrote: > >> If you want an image to spatially scale with the plot window, use >> implot instead of figimage. Figimage does not resample images >> spatially >> but rather displays them pixel for pixel (that's what distinguishes >> the two functions) > > Thanks for your response. I am familiar with implot however I've never > been able to get it to plot with distinct pixel boundaries. What I > want > is a figimage-like plot with distinct, single-color regions, just > larger > regions, so that the entire screen window is filled. No smoothing or > interpolation, just big chunky pixels. > > Can this be done? > > Rich Sure. To fill the entire window: axes((0,0,1,1)) # defines the axes bound to use the whole figure region (i.e, window) imshow(imdata, interpolation="nearest") # use nearest neighbor interpolation to rescale image Is this what you are looking for? Perry |