[ncl-talk] Main title not appearing in the plot

ali mughal mughalali655 at gmail.com
Thu Sep 16 22:46:42 MDT 2021


Dear NCl Team

For some reason the main title is not appearing in the plot. Even If I move
"res at tiMainString" just after res=True I still dont see the main title.  I
will be grateful for help and suggestions.

   type = "x11"
      wks = gsn_open_wks(type,"abc"+hour)
      cmap_data=read_colormap_file("ncl_default")
      res                          = True
      res at gsnDraw                  = False
      res at gsnFrame                 = False
      res at cnFillPalette            = cmap_data(::-1,:)
      res at cnLinesOn                = False
      res at cnFillOn                 = True
      res at cnLevelSelectionMode     = "ExplicitLevels"
      res at cnLevels
 =(/-0.1,-0.2,-0.4,-0.6,-0.8,-1,-1.2,-1.4,-1.6,-1.8,-2.0,0,0.2,0.4,0.6/)

      res at lbOrientation        = "Vertical"
      res at pmLabelBarOrthogonalPosF = -0.005
      res at lbTitleOn         = True
      res at lbTitleString     = "UHI Difference(~S~o~N~C)"
      res at lbTitleFontHeightF = 0.013
      res at lbLabelFontHeightF = 0.010
      res at lbTitlePosition      = "Right"                           ; title
location
      res at lbTitleDirection     = "Across"                          ; letter
angle
      res at lbTitleAngleF        = 90.
      pltres = True
      pltres at NoTitles = True
      pltres at gsnMaximize = True
      pltres at FramePlot = False
      pltres at PanelPlot = True




      mpres = True
      mpres at mpOutlineBoundarySets    ="NoBoundaries"

     res at tiMainString             ="UHI Difference between Feb(NE) and
April(EI)"
     res at tiMainFontHeightF        = 0.025
     res at gsnLeftString  = ""                      ; left title, remove
default
     res at gsnRightString  = ""


 plot = wrf_map_overlays(a,wks,(/contour_lh/),pltres,mpres)

  shape_files = (/"/Shapefiles/SGP_adm_shp/SGP_adm0.shp"/)
    plot = add_coastline_sgmyid(shape_files,wks,plot,"black")
    draw(plot)
    frame(wks)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210917/061cf320/attachment.html>


More information about the ncl-talk mailing list