<div dir="ltr"><div>Hi Ali,</div><div>You are defining the "cmap_data" after calling "contour_lh = gsn_csm_contour(wks,lh_avg,res) " so this would not work. You can move contour_lh* after your final res settings. Normally I prefer using something like: <br><pre>res@cnFillPalette = cmap_data(0:dimsizes(levels)-1,:)<br>contour_lh = gsn_csm_contour(wks,lh_avg,res)<br><br></pre><pre>There are some resources which are likely not needed for example (res@cnFillColors, res@lbLabelStrings).<br></pre><pre>I am not sure why triangle edges do not work but this can be easily tested by only plotting contour_lh (i.e. without calling overlays).<br></pre><pre>Cheers,<br></pre><pre>Rashed<br></pre><pre><br></pre></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 13, 2021 at 4:42 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">Dear NCL users <div><br></div><div>I am trying to using the following plotting sequence but some of the resources do not change no matter how hard I try. I mention the issues I am facing adjacent to the lines in the script. Secondly, I am also trying to obtain triangular edges in the label bar but I am not successful in that as well. I hope some one can help. Please see the plotting sequence below</div><div><br></div><div><div>lh_avg@description = "ABC"</div><div>lh_avg@units = "~S~o~N~C"</div><div>type = "png"</div><div>wks = gsn_open_wks(type,"LH_d05_diff_3_1_"+hour)</div><div><br></div><div>res = True</div><div>res@gsnMaximize = True</div><div>res@gsnDraw = False</div><div>res@gsnFrame = False</div><div>res@cnFillOn = True</div><div>res@cnLinesOn = False</div><div>res@tmYROn = False</div><div>res@lbOrientation = "Vertical"</div><div>res@lbLabelFontHeightF = 0.010</div><div>res@lbLabelFontThicknessF =1.5</div><div>res@lbBoxMajorExtentF = 0.75</div><div>res@lbBoxEndCapStyle = "TriangleBothEnds" (why is this not working ? Do I need to add other resources or turn off automatic settings)</div><div>contour_lh = gsn_csm_contour(wks,lh_avg,res)</div><div>getvalues contour_lh</div><div> "cnLevels" : levels</div><div>end getvalues</div><div>cmap_data=read_colormap_file("wgne15") (Whatever I set here is not shown in the final plot. I tried setting this to "BlWhRe" but it didn't worked nor does "ncl_default" work. I only see a default image </div><div>res@cnFillColors = cmap_data(0:dimsizes(levels)-1,:)</div><div>res@lbLabelStrings = sprintf("%3.1f",levels)</div><div><br></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>mpres = True</div><div>mpres@mpOutlineBoundarySets ="NoBoundaries"</div><div>plot = wrf_map_overlays(a,wks,(/contour_lh/),pltres,mpres)</div><div>shape_files = (/"/Shapefiles/SGP_adm_shp/SGP_adm0.shp","/Shapefiles/MYS_adm0.shp","/Shapefiles/IDN_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>
_______________________________________________<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>