Re: Why one more legend appears in my figure

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu, 21 Jun 2007 17:18:57 -0600 (MDT)

Hi Guangshan,

I don't see four legends, but I do see two. The first legend is made
up of two lines (I think) of "SST gradient" and "wavelet
variance". The second legend, which appears just under the "wavelet
variance" one is "precession". Then, I see the third one out on the
far right that also says "precession".

Since you turned on "pmLegendDisplayMode" for all three resource
lists, this is why you are seeing 3 legends. However, gsn_csm_xy3 is
not set up to automatically place them for you. You will probably need
to set res13_at_pmLegendOrthogonalPosF (and res1e_at_pmLegendParallelPosF)
to some negative number (maybe start with -0.1) to have it moved to
the left (and up or down).

--Mary

On Thu, 21 Jun 2007, Guangshan chen wrote:

> Dear all,
>
> When I used gsn_csm_xy3 command to plot a figure and put legends on the
> figure, I found there are four legends on my figure.
> Please see the figure.
>
> Here is the script I used:
>
> res11_at_pmLegendDisplayMode = "Always" ; turn on legend
> res11_at_pmLegendZone = 0
> res11_at_pmLegendSide = "Top" ; Change location of
> res11_at_lgJustification = "BottomRight"
> res11_at_pmLegendOrthogonalPosF = 0.35 ; more neg = down
> res11_at_pmLegendParallelPosF = 0.15
> res11_at_pmLegendWidthF = 0.08 ; Change width and
> res11_at_pmLegendHeightF = 0.04 ; height of legend.
> res11_at_lgLabelFontHeightF = .008 ; change font height
> res11_at_lgPerimOn = False ; no box around
> res11_at_xyExplicitLegendLabels = (/" SST gradient"/)
>
>
> res12_at_pmLegendDisplayMode = "Always" ; turn on legend
> res12_at_pmLegendZone = 0
> res12_at_pmLegendSide = "Top" ; Change location of
> res12_at_lgJustification = "BottomRight"
> res12_at_pmLegendOrthogonalPosF = 0.35 ; more neg = down
> res12_at_pmLegendParallelPosF = 0.35
> res12_at_pmLegendWidthF = 0.08 ; Change width and
> res12_at_pmLegendHeightF = 0.04 ; height of legend.
> res12_at_lgLabelFontHeightF = .008 ; change font height
> res12_at_lgPerimOn = False ; no box around
> res12_at_xyExplicitLegendLabels = (/" wavelet variance"/)
>
>
> res13_at_pmLegendDisplayMode = "Always" ; turn on legend
> res13_at_pmLegendZone = 0
> res13_at_pmLegendSide = "Top" ; Change location of
> res13_at_lgJustification = "BottomRight"
> res13_at_pmLegendOrthogonalPosF = 0.25 ; more neg = down
> res13_at_pmLegendParallelPosF = 0.35
> res13_at_pmLegendWidthF = 0.08 ; Change width and
> res13_at_pmLegendHeightF = 0.04 ; height of legend.
> res13_at_lgLabelFontHeightF = .008 ; change font height
> res13_at_lgPerimOn = False ; no box around
> res13_at_xyExplicitLegendLabels = (/" precession"/)
>
>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jun 21 2007 - 17:18:57 MDT

This archive was generated by hypermail 2.2.0 : Fri Jun 22 2007 - 07:01:57 MDT