Re: how to make filled curves on xy ploys?

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Fri Feb 21 2014 - 13:41:12 MST

Hi Cheryl,
Take a look at the bar chart examples here:
http://www.ncl.ucar.edu/Applications/bar.shtml

Specifically #14 and #16.. #14 shows you how to overlay a XY plot on a
bar chart plot. Example #16 shows how to create a stacked bar chart.

Combining those two examples is one way to go.

Another way would be to draw the red bars, then overlay the yellow bars,
then overlay the green, then lighter blue, then dark blue, then add the
timeseries. You could do all this by creating numerous plots and then
using the overlay procedure.
(http://www.ncl.ucar.edu/Document/Functions/Built-in/overlay.shtml) Note
that in this case the red bars would need to be technically the sum of
all the bars, the yellow bars would be the sum of (dark blue+light blue
+ green+yellow), and so on.

See xy_32.ncl at the bottom of the overlay examples page here:
http://www.ncl.ucar.edu/Applications/overlay.shtml#xy_32
to see overlay being used in a similar way to how you would need to use it.

Hope all of that helps.
Good luck,
Adam

On 02/21/2014 12:30 PM, cheryl Ma wrote:
> Hi all,
>
> I want to make a plot like the attached one, It is easy to make the
> black curve using XY plot, the question is how to add the filled
> curves? Can anybody direct me where to find an example?
> Thanks in advance.
>
>
> Inline image 2
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
______________________________________________________________
Adam Phillips                                asphilli@ucar.edu
NCAR/Climate and Global Dynamics Division       (303) 497-1726
P.O. Box 3000				
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/staff/asphilli

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Feb 21 13:41:33 2014

This archive was generated by hypermail 2.1.8 : Mon Mar 03 2014 - 14:26:18 MST