PlotS, Color [message #81609] |
Sat, 06 October 2012 07:07  |
robinson.inj
Messages: 32 Registered: August 2007
|
Member |
|
|
Hi all,
I would like some help. I have this data
3 50 5
4 60 10
5 70 15
8 80 20
4 90 20
3 100 15
1 110 10
The 2nd and 3rd cols are lon and lat. I need to plot a line conecting the values with especific colors. For instance from 3 to 4 in yellow, from 4 to 8 (and 8 to 4) in red, from 4 to 3 in yellow, and 3 to 1 in blue.
Suggestions?
Rob
|
|
|
Re: PlotS, Color [message #81692 is a reply to message #81609] |
Sun, 07 October 2012 08:46  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
robinson.inj@gmail.com writes:
> .....It worked after converting scaleddata into integer...or because I updated my Coyote Library.. I will never know :-/
Well, no matter what else you do, updating your
Coyote Library is *always* a good idea! :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
|
|
|
Re: PlotS, Color [message #81693 is a reply to message #81609] |
Sun, 07 October 2012 08:24  |
robinson.inj
Messages: 32 Registered: August 2007
|
Member |
|
|
On Sunday, October 7, 2012 1:14:42 AM UTC-4, David Fanning wrote:
>
>
>> Yes, that was the problem. Thank you very much.
>
>> Would you be willing to guess why all lines are white (no color lines)?.
>
>
>
> The most common reason is an out-of-date Coyote Library. :-)
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
>
> Sepore ma de ni thue. ("Perhaps thos speakest truth.")
.....It worked after converting scaleddata into integer...or because I updated my Coyote Library.. I will never know :-/
|
|
|
Re: PlotS, Color [message #81694 is a reply to message #81609] |
Sat, 06 October 2012 22:14  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
robinson.inj@gmail.com writes:
> Yes, that was the problem. Thank you very much.
> Would you be willing to guess why all lines are white (no color lines)?.
The most common reason is an out-of-date Coyote Library. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
|
|
|
Re: PlotS, Color [message #81696 is a reply to message #81609] |
Sat, 06 October 2012 22:07  |
robinson.inj
Messages: 32 Registered: August 2007
|
Member |
|
|
On Saturday, October 6, 2012 9:09:24 PM UTC-4, David Fanning wrote:
>
>> Can someone help me and tell me what I am doing wrong?
>
>
>
> I'm going to guess that s is a two-element array. I
>
> suspect vals is a 1x300 array.
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
>
> Sepore ma de ni thue. ("Perhaps thos speakest truth.")
Hi David,
Yes, that was the problem. Thank you very much.
Would you be willing to guess why all lines are white (no color lines)?.
Rob
|
|
|