Re: Creating different lines for CMIP5 models in an xy plot

From: Tingting Fan <tingting_at_nyahnyahspammersnyahnyah>
Date: Wed Jan 15 2014 - 13:45:58 MST

Hi Melissa,
I would suggest that you can make an array of these zave* before your plot
instead of using overlay function. Then you can use these two resources
"pmLegendDisplayMode" and "xyExplicitLegendLabels" to get each line with
itself legend. Next, to make a legend with different line patterns, you
could use "xyDashPatterns", but there are only 17 predefined dash patterns
available in NCL. For your case, you may try different colors as well.

For example,
....
res@xyLineColors = (/"","",.../) ; an array of color index
res@xyDashPatterns = (/"","",.../) ; an array of pattern index

res@pmLegendDisplayMode = "Always" ; Display a legend.
res@xyExplicitLegendLabels = (/"","",.../) ; an array of legend

Hope these help!
Tingting

-- 
Tingting Fan
grad student visitor
NCAR/CGD/CAS
tel:303-497-1745
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Jan 15 13:46:06 2014

This archive was generated by hypermail 2.1.8 : Sun Jan 19 2014 - 21:56:35 MST