[ncl-talk] Label positions panel plot

Buzan, Jonathan jbuzan at purdue.edu
Thu Mar 3 09:54:55 MST 2022


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




[cid:0D033F1A-012A-4A2F-A9E8-171EDA27FC4D]

On Mar 3, 2022, at 17:46, Buzan, Jonathan via ncl-talk <ncl-talk at mailman.ucar.edu<mailto: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<mailto:ncl-talk at mailman.ucar.edu>
List instructions, subscriber options, unsubscribe:
https://mailman.ucar.edu/mailman/listinfo/ncl-talk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220303/2dfe7d32/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: Screen Shot 2022-03-03 at 17.53.36.png
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220303/2dfe7d32/attachment-0001.png>


More information about the ncl-talk mailing list