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

Home » Public Forums » archive » Different sized pixels in pg_plotimage (is this a "feature")
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Different sized pixels in pg_plotimage (is this a "feature") [message #64812] Fri, 16 January 2009 09:01 Go to next message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
Paolo (and anyone else who uses pg_plotimage),

I am having trouble using/modifying pg_plotimage in a way that
produces the output that I want, so I'll try here.

using the following idl code:
ctload, 39
pg_plotimage, dist(10), findgen(10), findgen(10), /iso

I expect to get 100 "pixles" of different values all the same size.
Instead what I get is an 8x8 region of square pixels surrounded by a
border of 1/2 sized pixels and corners of 1/4 sized pixels. At least
for what I am trying to do this isn't the desired output.

In hunting through pg_plotimage I am unable to figure out where the
border resizing is happening so I can undo it. Does anyone have any
ideas (or real knowledge) on where they are being changed?

Thanks

Brian

------------------------------------------------------------ --------------
Brian Larsen
Boston University
Center for Space Physics
http://people.bu.edu/balarsen/Home/IDL
Re: Different sized pixels in pg_plotimage (is this a "feature") [message #64842 is a reply to message #64812] Thu, 22 January 2009 22:40 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Jan 22, 11:20 pm, Giorgio <giorgiol...@gmail.com> wrote:
> Hi,
>  Since we are discussing different features to display images, one
> thing I would like is to be able to display an image with axis and at
> the same time specify the x and y-range. For example: tvimage, image,
> xaxis, yaxis, xrange =[], yrange =[]. Where the image is a mxn array,
> xaxis can be either an m-vector, yaxis and n-vector, and the x, y -
> ranges are 2 elements vector specifying the range to be shown.
> In this example, I use tvimage because I am used to it, but does any
> of the mentioned programs (plotimage or pg_plotimage) has this
> feature.
>  I know that this can be seem as a waste of space for the xaxis or the
> yaxis, one option then is that the xaxis can be a 2 element vector
> with the total range of the image.

Yes, PLOTIMAGE has this capability. You can specify the axis ranges
of the original image (with the IMGXRANGE and IMGYRANGE keywords), and
separately choose the ranges to be displayed.

Craig
Re: Different sized pixels in pg_plotimage (is this a "feature") [message #64843 is a reply to message #64812] Thu, 22 January 2009 21:12 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Giorgio writes:

> Since we are discussing different features to display images, one
> thing I would like is to be able to display an image with axis and at
> the same time specify the x and y-range. For example: tvimage, image,
> xaxis, yaxis, xrange =[], yrange =[]. Where the image is a mxn array,
> xaxis can be either an m-vector, yaxis and n-vector, and the x, y -
> ranges are 2 elements vector specifying the range to be shown.
> In this example, I use tvimage because I am used to it, but does any
> of the mentioned programs (plotimage or pg_plotimage) has this
> feature.
> I know that this can be seem as a waste of space for the xaxis or the
> yaxis, one option then is that the xaxis can be a 2 element vector
> with the total range of the image.
> I can modify the above mentioned programs to have this feature, but
> before doing that I think it is better to ask first.

Too weird for me. I think I'll pass. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Different sized pixels in pg_plotimage (is this a "feature") [message #64844 is a reply to message #64812] Thu, 22 January 2009 20:20 Go to previous message
Giorgio is currently offline  Giorgio
Messages: 31
Registered: March 2008
Member
Hi,
Since we are discussing different features to display images, one
thing I would like is to be able to display an image with axis and at
the same time specify the x and y-range. For example: tvimage, image,
xaxis, yaxis, xrange =[], yrange =[]. Where the image is a mxn array,
xaxis can be either an m-vector, yaxis and n-vector, and the x, y -
ranges are 2 elements vector specifying the range to be shown.
In this example, I use tvimage because I am used to it, but does any
of the mentioned programs (plotimage or pg_plotimage) has this
feature.
I know that this can be seem as a waste of space for the xaxis or the
yaxis, one option then is that the xaxis can be a 2 element vector
with the total range of the image.
I can modify the above mentioned programs to have this feature, but
before doing that I think it is better to ask first.

Cheers,

Giorgio
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Structure of arrays or arrays of structures?
Next Topic: Re: BAR_PLOT with pairs of bars

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

Current Time: Wed Oct 08 11:40:24 PDT 2025

Total time taken to generate the page: 0.00711 seconds