Newsgroups: comp.lang.idl-pvwave
From: robinson....@gmail.com
Date: Sat, 6 Oct 2012 17:08:03 -0700 (PDT)
Local: Sat, Oct 6 2012 8:08 pm
Subject: Re: PlotS, Color
On Saturday, October 6, 2012 10:07:56 AM UTC-4, (unknown) wrote:
Hi All, after Phillip's suggestion, I am doing this ( I am using David Fanning's IDL libraries, and IDL 6.3):
> 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
colors=['blue', 'green', 'yellow', 'gold', 'orange', 'brown', 'red', 'black']
FOR c=1,6 DO BEGIN
FOR c=0,s-2 DO cgPlotS, [lons[c], lons[c+1]], [lats[c], lats[c+1]],color=StrTrim(scaleddata[c],2), Thick=2
vals, lons and lats have 300 element each.
Can someone help me and tell me what I am doing wrong?
Regards,
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||