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

Rick Brownrigg brownrig at ucar.edu
Fri Sep 17 08:30:15 MDT 2021


Hi,

I don't know for certain, but two things stand out.  One is that the script
sets many resources on the variable "res", but never uses it; insteads
variables "pltres" and "mpres" get passed to the call to
wrf_map_overlays(). Additionally, while the variable "plot" is assigned the
return value of wrf_map_overlays(), it is then overwritten two lines later
in the call to add_coastline_sgmyid(). I am unfamiliar with that function,
and uncertain as to what the result should be.

I hope that helps...
Rick


On Thu, Sep 16, 2021 at 10:47 PM ali mughal via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:

> 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)
>
> _______________________________________________
> ncl-talk mailing list
> 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/20210917/ab101490/attachment.html>


More information about the ncl-talk mailing list