ExplicitLegendLabels

From: Ben Foster (foster AT XXXXXX)
Date: Fri Jul 26 2002 - 11:54:21 MDT


Hi ncl group:

I am making multi-line plots of groups of fields, e.g., one frame
might have 4 curves of different temperature fields, another frame
might have 3 species densities, etc.

I am plotting in a loop of field groups, with a different legend for
each group using res@xyExplicitLegendLabels = groups(0:nflds-1,ng)
where groups is a list of field names for each group, nflds is the number
of fields (curves) in group index ng.

The first group (ng==0) plots fine, but the second group has a different
number of fields to plot, and this confuses the legendlables resource:

fatal:Dimension size of attribute and right-hand side of assignment do not match
fatal:Execute: Error occurred at or near line 263

I think this error is referring to the legendlabels resource setting above,
the second time through the loop, where the number of fields has changed.
How should I reset this resource? Thanks,

--Ben

-----------------------------------------------------------------------
Ben Foster High Altitude Observatory (HAO)
foster AT .ucar.edu phone: 303-497-1595 fax: 303-497-1589
Nat. Center for Atmos. Res. P.O. Box 3000 Boulder CO 80307 USA
-----------------------------------------------------------------------

_______________________________________________
ncl-talk mailing list
ncl-talk AT ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk



This archive was generated by hypermail 2b29 : Fri Jul 26 2002 - 16:00:33 MDT