comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Different sized pixels in pg_plotimage (is this a "feature")
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
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 Go to previous messageGo to previous message
pgrigis is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: stop oddity
Next Topic: Image Inpainting

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 16:31:49 PDT 2025

Total time taken to generate the page: 0.01333 seconds