Re: How to use NCL to move label bar away from contour plot

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Sat, 24 Nov 2007 21:32:31 -0700

I assume you are using "gsn_csm_contour_map_ce"
This automatically handles the placement of the label bar.
See the examples at:
     http://www.ncl.ucar.edu/Applications/color.shtml

By specifying the "lb..." the "pmLabel..." resources,
you have altered the behavior of gsn_csm_contour_map_ce.
The following resources are all you should specify.

res1_at_cnFillOn = True
res1_at_mpFillOn = False
res1_at_cnLinesOn = False
res1_at_cnLineLabelsOn = False
res1_at_cnLevelSelectionMode = "ManualLevels" ; <=== Note
res1_at_cnMinLevelValF = -44
res1_at_cnMaxLevelValF = 44
res1_at_cnLevelSpacingF = 4

Dik Ng wrote:
>
> Date: 22 November 2007 17:03 +0000
> From: Dik Ng <Dik.Ng_at_bristol.ac.uk>
> To: ncl-talk_at_ucar.edu
> Subject: How to use NCL to move label bar away from contour plot
>
> Hi,
>
> I have a contour plot and a label bar. See attachment. My question is how
> to use NCL to move the label bar lower down, away from the bottom of my
> contour plot.
>
> The label bar shows a sequence of color filled boxes as a key to the colors
> used for given contour intervals. With my current NCL script, see extract
> below, the label bar abuts the bottom of the contour plot.
>
> res1_at_cnFillOn = True
> res1_at_mpFillOn = False
> res1_at_cnLinesOn = False
> res1_at_cnLevelSelectionMode = "ExplicitLevels"
> res1_at_cnMinLevelValF = -44
> res1_at_cnMaxLevelValF = 44
> res1_at_cnLevelSpacingF = 4
> res1_at_pmLabelBarDisplayMode = "Always"
> res1_at_cnMonoFillPattern = True
> res1_at_cnMonoFillColor = False
> res1_at_cnLineLabelsOn = False
> res1_at_cnInfoLabelOn = False
> res1_at_tmXBLabelFont="helvetica"
> res1_at_tmYLLabelFont="helvetica"
> res1_at_tmXBLabelFontHeightF=.01
> res1_at_tmYLLabelFontHeightF=.01
> res1_at_lbTitleFontHeightF=.1
> res1_at_pmLabelBarHeightF= .05
> res1_at_pmLabelBarWidthF= .8
> res1_at_lbLabelStride= 2
> res1_at_lbAutoManage= "False"
> res1_at_lbLabelFontHeightF= 0.01
> res1_at_lbLabelFont ="helvetica"
>
> I have tried searching past NCL-talk. But some of the interesting
> hyperlinks are broken.
>
> Thanks for your help.
>
> Regards,
>
> Dik
>
> dik.ng_at_bristol.ac.uk
>
> ---------- End Forwarded Message ----------
>
>
>
> ----------------------
> Dik NG
> ggdhn_at_bristol.ac.uk
> Mobile 07894080806
>
> ------------------------------------------------------------------------
>
> Subject:
> How to use NCL to move label bar away from contour plot
> From:
> Dik Ng <Dik.Ng_at_bristol.ac.uk>
> Date:
> Thu, 22 Nov 2007 17:03:50 +0000
> To:
> ncl-talk_at_ucar.edu
>
> To:
> ncl-talk_at_ucar.edu
>
>
> Hi,
>
> I have a contour plot and a label bar. See attachment. My question is
> how to use NCL to move the label bar lower down, away from the bottom of
> my contour plot.
>
> The label bar shows a sequence of color filled boxes as a key to the
> colors used for given contour intervals. With my current NCL script, see
> extract below, the label bar abuts the bottom of the contour plot.
>
> res1_at_cnFillOn = True
> res1_at_mpFillOn = False
> res1_at_cnLinesOn = False
> res1_at_cnLevelSelectionMode = "ExplicitLevels"
> res1_at_cnMinLevelValF = -44
> res1_at_cnMaxLevelValF = 44
> res1_at_cnLevelSpacingF = 4
> res1_at_pmLabelBarDisplayMode = "Always"
> res1_at_cnMonoFillPattern = True
> res1_at_cnMonoFillColor = False
> res1_at_cnLineLabelsOn = False
> res1_at_cnInfoLabelOn = False
> res1_at_tmXBLabelFont="helvetica"
> res1_at_tmYLLabelFont="helvetica"
> res1_at_tmXBLabelFontHeightF=.01
> res1_at_tmYLLabelFontHeightF=.01
> res1_at_lbTitleFontHeightF=.1
> res1_at_pmLabelBarHeightF= .05
> res1_at_pmLabelBarWidthF= .8
> res1_at_lbLabelStride= 2
> res1_at_lbAutoManage= "False"
> res1_at_lbLabelFontHeightF= 0.01
> res1_at_lbLabelFont ="helvetica"
>
> I have tried searching past NCL-talk. But some of the interesting
> hyperlinks are broken.
>
> Thanks for your help.
>
> Regards,
>
> Dik
>
> dik.ng_at_bristol.ac.uk
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Nov 24 2007 - 21:32:31 MST

This archive was generated by hypermail 2.2.0 : Sun Nov 25 2007 - 07:21:25 MST