Re: Why the contour does not show? [message #63939 is a reply to message #63877] |
Sun, 23 November 2008 16:18   |
xiao zhang
Messages: 81 Registered: June 2008
|
Member |
|
|
On Nov 22, 6:26 pm, David Fanning <n...@dfanning.com> wrote:
> xiao writes:
>> :) HERE IT IS
>
> OK, here is what I would do. I'd take about 3 or 4 really
> deep breaths. Then maybe I'd go get a beer. While I was walking
> to the cooler, I'd be thinking about what I was really
> trying to do here.
>
> When I got back, and finished the beer, I would re-read
> all those Contour articles on Fanning's web page again,
> this time with the goal of understanding why he is doing
> the things he is doing.
>
> Then, I would have a long, hard look at this code again.
> Here are the questions I would be trying to ask myself.
> (1) How many colors do I expect to see on the contour
> plot? How do I know what those colors are? How do I know
> if my data will be displayed with those colors? How can
> I make sure it will be displayed with those colors? What
> assumptions am I making currently that are just plain wrong?
>
> When I worked though all of that, I'd write this code over
> from scratch, making sure no line in it was longer than
> about 50 characters or so, in case I had to send it to
> somebody to help me with this. If I did need to send it,
> I'd think about making a simple data set that I could send
> them so they didn't have to spend a half hour themselves
> writing code to run my program.
>
> When I was finished with all of that, I probably wouldn't
> have to ask any more questions, but if I did, I would be
> in a MUCH better place to do so. :-)
>
> 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.")
Thanks for your advice. David, after two cans of moutaindew, I work it
out.
First I have to set the r, g, b, array right. Then, I have to use much
more levels in the contour command to make sure that all the colors
are shown.
Thanks :)
|
|
|