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.")
|