Re: Different sized pixels in pg_plotimage (is this a "feature") [message #64796 is a reply to message #64791] |
Fri, 16 January 2009 12:40   |
pgrigis
Messages: 436 Registered: September 2007
|
Senior Member |
|
|
Brian Larsen wrote:
> While I'm not sure how to fix it the error is evident int he
> difference between these two cases.
> IDL> pg_plotimage, dist(4), findgen(4), findgen(4), /iso, /fulledges
> IDL> pg_plotimage, dist(4), findgen(4), findgen(4), /iso, /fulledges,
> xrange=[-1,5], yrange=[-1,5]
>
> In the first one you get 4x4 pixels but all the borders are half sized
> In the second one you get 4x4 pixels that are all the same size.
Yes, because the image is clipped to the plot area.
This si a failure of the automatic xrange selection process.
I have fixed that (but you may have to
use /xstyle and /ystyle to avoid a margin around the
image, simmilar to the way plot works).
pg_plotimage, dist(4), findgen(4), findgen(4), /iso, /fulledges,/xst,/
yst
Ciao,
Paolo
>
> So it has something to do with letting idl set the x and y ranges in
> the plot. That I can live with since I can set it manually.
>
>
>
> Brian
>
> ------------------------------------------------------------ --------------
> Brian Larsen
> Boston University
> Center for Space Physics
> http://people.bu.edu/balarsen/Home/IDL
|
|
|