From: Perry G. <pe...@st...> - 2005-02-17 05:00:48
|
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) Perry Greenfield > -----Original Message----- > From: mat...@li... > [mailto:mat...@li...]On Behalf Of Rich > Drewes > Sent: Wednesday, February 16, 2005 11:24 PM > To: mat...@li... > Subject: [Matplotlib-users] figimage filling entire image > > > Hello, > > I'm trying to get a figimage to be scaled up dimensionally to occupy the > entire plot window rather than scrunched up in the upper left. The docs > cryptically suggest: > > " * origin is either 'upper' or 'lower', which indicates where the [0,0] > index of the array is in the upper left or lower left corner of > the axes. Defaults to the rc image.origin value > > This complements the axes image which will be resampled to fit the > current axes. If you want a resampled image to fill the entire > figure, you can define an Axes with size [0,1,0,1]." > > But that is too cryptic for my current knowledge state. The following > creates a scrunched image: > > figure(1) > d=rand(100, 100) > figimage(d) > show() > > But this, probably naive guess, errors out with a > transformation-not-invertible message: > > figure(1) > axes([0,1,0,1]) > d=rand(100, 100) > figimage(d) > show() > > Suggestions appreciated. Thanks, > > Rich > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |