Re: generate lines plot more than 100 lines

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Fri May 16 2014 - 15:39:07 MDT

Hi,

Have you seen example #3 at:

http://www.ncl.ucar.edu/Applications/gsn_xy.shtml

It seems like it should be fairly easy to restructure your data into a 2D array, as used in that example; something like:

newData = new( (/100, 365 /), float)
do i=0,100
   newData(i,:) = data(i*365 : i*365+364)
end do

plot = ….

Specifying 100 different colors would be the not-so-fun part, unless you have some programmatic means of doing so. And coming up with 100 visually distinct colors is a whole other problem.

Hope that helps…
Rick

On May 16, 2014, at 1:19 PM, Xi Chang <xi.chang01@gmail.com> wrote:

> Dear NCL,
>
> I have daily noleap data (365 x 100 = 36500 timesteps)
> I would like to have xy line plots for each year is one line and one color,
> therefore in the end I'd have 100 lines+colors,
> Is ther any easy or trciky way to do that in NCL?
>
> do i=0 dimsizes(data)-1
> plot(i)=...
> if i%365=0
> break
> end do
>
> I still got some errors
>
> Thanks for any help.
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri May 16 15:39:18 2014

This archive was generated by hypermail 2.1.8 : Tue May 20 2014 - 10:18:04 MDT