<div dir="ltr"><div class="gmail_default" style="font-size:small">I think the problem is that you set gsnMaximize to True for the map plot, so NCL maximized the size of the map plot. Then, when the contour plot with the labelbar on the bottom got added to this, there was no room left for the labelbar.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">My suggestion is to try setting gsnMaxmize to True for the plot that takes up the most space on your page, which will be your filled contour plot.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Another suggestion is to try maximize_output:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style=""><a href="http://www.ncl.ucar.edu/Document/Graphics/Interfaces/maximize_output.shtml">http://www.ncl.ucar.edu/Document/Graphics/Interfaces/maximize_output.shtml</a><br></div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">--Mary</div><div class="gmail_default" style=""><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 11, 2016 at 1:03 PM, Kunal Bali <span dir="ltr"><<a href="mailto:kunal.bali9@gmail.com" target="_blank">kunal.bali9@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Dear NCL users,<br><br></div>I plotted the overlay map, in that the colorbar is coming properly and title is also missing.<br><br></div>Could you please let me know the missing point<br><div><div>The script is written below<br></div><div><br> BR = a->BRFLUXV(26,:,:)<br> GPH = a1->H(26,0,:,:)<br> u = a2->uwnd(114,4,:,:)<br> v = a2->vwnd(114,4,:,:)<br> ;---Open workstation and change color map<br> <br> wks_type = "pdf" <br> ;wks_type@wkPaperSize = "A4"<br> wks = gsn_open_wks(wks_type,"figure")<br><br>;;create plots;;<br> <br>; gsn_define_colormap(wks,"BkBlAqGrYeOrReViWh200")<br> res = True<br> res@gsnDraw = False<br> res@gsnFrame = False <br> res@gsnMaximize = True <br> res@tmXTOn = False<br> res@tmYROn = False<br> res@gsnLeftString = ""<br> res@gsnRightString = ""<br> <br><br>;;set map;;<br> mpres = res<br> mpres@mpDataSetName = "Earth..4"<br> mpres@mpDataBaseVersion = "MediumRes"<br> mpres@mpOutlineOn = True<br> mpres@mpOutlineSpecifiers = (/"india","nepal","china"/)<br> mpres@mpGeophysicalLineThicknessF = 2<br> mpres@mpNationalLineThicknessF = 2<br> mpres@mpFillDrawOrder = "PostDraw"<br> mpres@mpFillOn = True<br> mpres@mpMaskAreaSpecifiers = (/"india","india","nepal","china"/)<br><br><br>;;set area;;<br> mpres@mpMinLonF = 65.0<br> mpres@mpMaxLonF = 98.0<br> mpres@mpMinLatF = 5.0<br> mpres@mpMaxLatF = 38.0<br><br>;;set contour;;<br> cnres = res<br> cnres@cnFillDrawOrder = "PreDraw"<br> cnres@cnFillOn = True<br> cnres@cnLinesOn = False<br> cnres@pmLabelBarWidthF = 0.4<br> cnres@pmLabelBarHeightF = 0.09<br> cnres@pmLabelBarOrthogonalPosF = 0.1<br> cnres@lbLabelFontHeightF = 0.009<br> cnres@lbLabelAngleF = 45<br> cnres@tiMainString = "26 April 2016 @700hpa"<br> cnres@cnLevelSelectionMode = "ExplicitLevels" ; set explicit contour levels<br> cnres@cnLevels = (/0, 1e-06, 2e-06, 3e-06, 4e-06, 5e-06, 7e-06, 8e-06, 9e-06/) <br> cnres@cnFillPalette = "WhBlGrYeRe"<br><br><br> resL = res <br> resL@cnFillOn = False ; turn on contour fill<br> resL@cnLinesOn = True ; turn off contour lines<br> resL@cnLineLabelsOn = True ; turn off line labels<br> resL@cnLineThicknessF = 3. <br> resL@cnLineColor = "red" <br> <br><br> <br>;;set vector;;<br> res_vc = res<br> res_vc@vcGlyphStyle = "LineArrow"<br> res_vc@vcLineArrowThicknessF = 0.01<br> res_vc@vcMinDistanceF = 0.001<br> res_vc@vcRefLengthF = 0.085<br><br> res_vc@vcRefAnnoOn = True<br> res_vc@vcRefAnnoString2On = False<br> res_vc@vcRefAnnoPerimOn = False<br> res_vc@vcRefAnnoOrthogonalPosF = -0.12<br> res_vc@vcRefAnnoParallelPosF = 0.999<br> res_vc@vcRefAnnoBackgroundColor = "Purple"<br> res_vc@vcVectorDrawOrder = "PostDraw"<br> res_vc@gsnRightString = "Wind"<br> <br>;;plot;;<br> map = gsn_csm_map(wks,mpres)<br> bc = gsn_csm_contour(wks,BR,cnres)<br> geopot = gsn_csm_contour(wks,GPH,resL)<br> vector = gsn_csm_vector(wks,v,u,res_vc)<br> <br><br>;;overlay filled contours and vectors on the map;;<br> overlay(map,bc)<br> overlay(map,vector)<br> overlay(map,geopot)<br><br><br>;;drawing "map" will draw everything: map, contours, vectors, and text;;<br> draw(map)<br> frame(wks)<br>end<br><br> <br><br><br></div><div>Regards<span class="HOEnZb"><font color="#888888"><br clear="all"></font></span></div><span class="HOEnZb"><font color="#888888"><div><div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Kunal Bali<br></div><div>Research Scholar <br></div><br><div><br></div><div><br></div><div><p style="margin:0px;border-collapse:collapse;font-family:Tahoma,Verdana;font-size:12px"><font color="#1F497D"><br></font></p></div></div></div></div></div></div>
</div></font></span></div></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>