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

Home » Public Forums » archive » cgImage abscissa values in axis 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: cgImage abscissa values in axis feature [message #88215 is a reply to message #88214] Fri, 28 March 2014 13:28 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Petros Syntelis writes:

> Sorry for the confusion. The trick with the cgcontour solved my problem.

Really!?

> When i told you about
> cgImage, data, /axis, xabscissa=x, yabscissa=y
> meaning that the result would work for both uniform and non uniform x and y, without getting into more trouble, as the
> cgcontour, data, x,y
> does already

Can you give me an example of x and Y vectors that "solve" this problem
for you with cgContour? Apparently I don't understand what you mean,
because I don't see how this can apply to cgImage in both the uniform
and non-uniform cases.

> Of course
> cgImage, data, /axis, xr=[min(x),max(x)], yr=[min(y),max(y)]
> and
> cgImage, data, /axis, xabscissa=x, yabscissa=y
> would be equivalent only for uniform grid!

I get this.

> Now in terms of the keystrokes, the in uniform grid, i think
> cgImage, data, /axis, xa=x, ya=y
> is better than
> cgImage, data, /axis, xr=[min(x),max(x)], yr=[min(y),max(y)]

You are probably right, but most of the images I work with are map
projected images from satellites and it is extraordinarily easy to get X
and Y ranges from the coordinate objects associated with these images.

> And in the non uniform grid
> cgImage, data, /axis, xa=x, ya=y
> is better than
> cgContour, data, /nodata, /noerase, OPosition=opos
> cgImage, image, OPOSITION=opos, /noerase,/over
> cgContour, data, /nodata, /noerase, Position=opos

I really fail to see how this works with a non-uniform grid. You don't
want pixel values to be stretched, do you?

> Both are more simple and more intuitive. At least for me!

Yes, I can believe that, although I would be hard pressed to come up
with vectors for the images I work with.

> From your amazing work concerning usability and simplicity in idl graphics, I assume that a fan of simplicity such as yourself would like to get new ideas on how to improve the usability of his software!

Let me tell you a story.

There is a trail near my house on a creek. I've been walking it
regularly for the past month or so, and I've noticed it is totally
trashed out. So, when I want a break from work I go down there with a
trash bag and pick up the trash. In two weeks, I've carried about 50
pounds of trash home from a maybe a half mile stretch of trail.

This is a well used trail, so maybe 150 people have seen me picking up
trash. Three people have thanked me. The rest give me a wide berth,
assuming, probably, that I am doing community service for the Sheriff.

Yesterday, when I was walking on the trail (pretty clean now!) I noticed
something new. People have noticed that *someone* is cleaning up the
trail, so they are leaving their little bags of dog shit near a trail
marker so I can pick those up, too.

I tell you this story because there are days, sometimes weeks, when I
feel incredibly taken advantage of. I've lost my spiritual mojo, you
could say. This is one of those weeks.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ENVI/IDL vegetation identification
Next Topic: installation without a CD

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

Current Time: Wed Oct 08 18:21:03 PDT 2025

Total time taken to generate the page: 0.00442 seconds