[ncl-talk] color of labels for legend
Laura Fowler
laura at ucar.edu
Tue Feb 12 16:21:48 MST 2019
Hello:
I have been fussing trying to get the labels of my legend be the same
colors as in plot (see legend in the "a. panel" of the attached figure, i.e
read and blue instead of black. I am sure that it should be rather
straightforward but I cannot figure it out.
Here are the lines I used to create my legend.
resL at pmLegendDisplayMode = "Always" ; turn on legend
resL at pmLegendSide = "Bottom" ; Change location of
resL at pmLegendParallelPosF = .85 ; move units right
resL at pmLegendOrthogonalPosF = -0.7 ; move units down
resL at pmLegendWidthF = 0.10 ; Change width and
resL at pmLegendHeightF = 0.08 ; height of legend.
resL at lgPerimOn = False ; turn off box around
resL at lgLabelFontHeightF = .016 ; label font height
resL at lgLabelFont = 5 ; label font
resL at xyMonoLineLabelFontColor = False
resL at xyLineLabelFontColors = (/"red","blue"/)
resL at xyExplicitLegendLabels = (/" s"," (1-s)~S~2~N~"/) ; create explicit
labels
I get the error messages that xyMonoLineLabelFontColor and
LineLabelFontColors are not available resources. Can you help, please.
Many thanks,
Laura
--
!-------------------------------------------------------------------------------------------------------------
Laura D. Fowler
Mesoscale and Microscale Meteorology Division (MMM)
National Center for Atmospheric Research
P.O. Box 3000, Boulder CO 80307-3000
e-mail: laura at ucar.edu
phone: 303-497-1628
!-------------------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190212/7efd6e2a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: convFraction.png
Type: image/png
Size: 10066 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190212/7efd6e2a/attachment.png>
More information about the ncl-talk
mailing list