[ncl-talk] Label positions panel plot

Adam Phillips asphilli at ucar.edu
Thu Mar 3 11:22:00 MST 2022


Hi Jonathan,
See example number 3
<https://www.ncl.ucar.edu/Applications/labelbar.shtml#ex3> on the labelbar
applications page.
I'd try setting pmLabelBarOrthogonalPosF = -0.05 as a start.
Hope that helps!
Adam

On Thu, Mar 3, 2022 at 9:55 AM Buzan, Jonathan via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:

> Hi NCL-Talk,
>
> Update:
> I managed to move the label text to the bottom using
>   res_R at lbTitlePosition = "bottom"
>
> However, now the whole label bar is shifted upward into the plot. I do not
> know how to fix that. Any suggestions?
>
> Cheers,
> -Jonathan
>
>
>
>
>
>
> On Mar 3, 2022, at 17:46, Buzan, Jonathan via ncl-talk <
> ncl-talk at mailman.ucar.edu> wrote:
>
> Hi NCL-Talk,
>
> I am having difficulty trying to position my panel label bars. The picture
> below shows the title of the label bar above. I am trying to make the text
> below the label bar. I have a code snippet below related to the panels. I
> tried   res_L at lbLabelPosition = “bottom”, but it doesn’t seem to be
> working.
>
> Cheers,
> -Jonathan
>
>
>
> Here is the snippet of code resources for the panels.
>   res_L                    = True
>   res_L at gsnFrame           = False
>   res_L at gsnPanelLeft       = 0.1
>   res_L at gsnPanelRight      = 0.45
>   res_L at gsnPanelLabelBar   = True
>   res_L at lbTitleOn        =  True                ; turn on title
>   res_L at txFuncCode    = "~"
>   res_L at lbTitleString = "~S~o~N~C"
>   res_L at lbLabelPosition = "bottom"
> ;  res_L at txString = "Temperature"
>
>   res_R                    = True
>   res_R at gsnFrame           = False
>   res_R at gsnPanelLeft       = 0.45
>   res_R at gsnPanelRight      = 0.9
>   res_R at gsnPanelLabelBar   = True
>   res_R at lbTitleOn        =  True                ; turn on title
>   res_R at txFuncCode    = "~"
>   res_R at lbTitleString = "mm/day"
> ;  res_R at txString = "Precipitation"
>
>   txres               = True
>   txres at txFontHeightF = 0.03
> ;  gsn_text_ndc(wks,"Temperature",0.1,0.45,txres)
> ;  gsn_text_ndc(wks,"Precipitation",0.45,0.9,txres)
>
>   gsn_panel(wks,plotTemp(0:2),(/3,1/),res_L)
>   gsn_panel(wks,plotTemp(3:5),(/3,1/),res_R)
>
>
> <Screen Shot 2022-03-03 at 17.45.53.png>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at mailman.ucar.edu
> List instructions, subscriber options, unsubscribe:
> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at mailman.ucar.edu
> List instructions, subscriber options, unsubscribe:
> https://mailman.ucar.edu/mailman/listinfo/ncl-talk



-- 
Adam Phillips
Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/   303-497-1726

<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220303/dd2a197e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2022-03-03 at 17.53.36.png
Type: image/png
Size: 1047026 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220303/dd2a197e/attachment-0001.png>


More information about the ncl-talk mailing list