<div dir="ltr"><div>Hi,</div><div><br></div><div>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.</div><div><br></div><div>I hope that helps...</div><div>Rick</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 16, 2021 at 10:47 PM ali mughal via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Dear NCl Team<div><br></div><div>For some reason the main title is not appearing in the plot. Even If I move "res@tiMainString" just after res=True I still dont see the main title. I will be grateful for help and suggestions.</div><div><br></div><div><div> type = "x11"</div><div> wks = gsn_open_wks(type,"abc"+hour)</div><div> cmap_data=read_colormap_file("ncl_default")</div><div> res = True</div><div> res@gsnDraw = False</div><div> res@gsnFrame = False</div><div> res@cnFillPalette = cmap_data(::-1,:)</div><div> res@cnLinesOn = False</div><div> res@cnFillOn = True</div><div> res@cnLevelSelectionMode = "ExplicitLevels"</div><div> res@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/)</div><div><br></div><div> res@lbOrientation = "Vertical"</div><div> res@pmLabelBarOrthogonalPosF = -0.005</div><div> res@lbTitleOn = True</div><div> res@lbTitleString = "UHI Difference(~S~o~N~C)"</div><div> res@lbTitleFontHeightF = 0.013</div><div> res@lbLabelFontHeightF = 0.010</div><div> res@lbTitlePosition = "Right" ; title location</div><div> res@lbTitleDirection = "Across" ; letter angle</div><div> res@lbTitleAngleF = 90.</div><div> pltres = True</div><div> pltres@NoTitles = True</div><div> pltres@gsnMaximize = True</div><div> pltres@FramePlot = False</div><div> pltres@PanelPlot = True</div><div><br></div><div><br></div><div><br></div><div><br></div><div> mpres = True</div><div> mpres@mpOutlineBoundarySets ="NoBoundaries"</div><div><br></div><div> res@tiMainString ="UHI Difference between Feb(NE) and April(EI)"</div><div> res@tiMainFontHeightF = 0.025</div><div> res@gsnLeftString = "" ; left title, remove default</div><div> res@gsnRightString = ""</div><div><br></div><div><br></div><div> plot = wrf_map_overlays(a,wks,(/contour_lh/),pltres,mpres)</div><div><br></div><div> shape_files = (/"/Shapefiles/SGP_adm_shp/SGP_adm0.shp"/)</div><div> plot = add_coastline_sgmyid(shape_files,wks,plot,"black")</div><div> draw(plot)</div><div> frame(wks)</div></div><div><br></div></div></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>