<div dir="ltr">Hi Geeta,<div>1 - Very minor, but you do not need to set gsnSpreadColors = True, as that is the default. </div><div>2 - You are not setting trXMinF/trXMaxF/trYMinF/trYMaxF, which sets the minimum/maximum x-axis values, and minimum/maximum y-axis values shown on the plot. You stated that the y-axis is elongated; if you mean it continues past a value of 18, try setting trYMaxF = 18.</div><div>3 - When you set tmXBMode = "Explicit", the range of x-axis values specified in the 2nd input to gsn_csm_contour (in your case, 1000*profile(:,Fix_NSCAN,153:193)) needs to overlap with your settings of tmXBValues. If those two settings do not overlap, the X-axis labels will not be visible. Verify that those two settings overlap.</div><div><br></div><div>Hope that helps! If you have further questions please respond to the ncl-talk email list.</div><div>Adam </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 25, 2021 at 9:03 AM Geeta Geeta 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><div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px"><div><div dir="ltr">Hi. <br></div><div dir="ltr">I am unable to put labels on the Xaxis inspite to specifying tm@XBValues and res@XBLabels. and the Ya xis is elongated<br></div><div dir="ltr"><br></div><div dir="ltr">request someone to help me. I am attaching the figure so obtained. <br></div><div dir="ltr">Following are the res in the code. <br></div><div dir="ltr"><div><div><br></div><div><br></div><div> res@tmXBMinorOn = False</div>150 res@tmYLMinorOn = False<br>151 res@tmYLMode = "Explicit"<br>152 res@tmYLValues = Ht_of_layers<br>153 res@tmYLLabels = Ht_of_layers<br>154 ; defining X axis for all the plts together<br>155 Fix_NSCAN = 1036<br>156 Fix_NP = 173<br>157 xaxismin = Fix_NP+20<br>158 xaxismax = Fix_NP-20<br>159 xaxisinterval = 1<br>160 int_for_plot = 4<br>161 <br>162 xaxis_fnl = ispan(xaxismin,xaxismax,xaxisinterval)<br>163 print(xaxis_fnl)<br>164 xaxis_for_plotting = ispan(xaxismin,xaxismax,int_for_plot)<br>165 printVarSummary(xaxis_for_plotting)<br>166 print(xaxis_for_plotting)<br>167 <br>168 res@tmXBMode = "Explicit" ; will change from case to case<br>169 ; res@tmXBValues = xaxis_for_plotting<br>170 res@tmXBValues = (/longr(Fix_NSCAN,Fix_NP+20),longr(Fix_NSCAN,Fix_NP+16),longr(Fix_NSCAN,Fix_NP+12),longr(Fix_NSCAN,Fix_NP +08),longr(Fix_NSCAN,Fix_NP+04),longr(Fix_NSCAN,Fix_NP),longr(Fix_NSCAN,Fix_NP-04), longr(Fix_NSCAN,Fix_NP-08),longr(Fix_NSCAN,Fix_NP-12), longr(Fix_NSCAN,Fix_NP-16),longr(Fix_NSCAN,Fix_NP-20)/)<br>171 res@tmXBLabels = (/longr(Fix_NSCAN,Fix_NP+20),longr(Fix_NSCAN,Fix_NP+16),longr(Fix_NSCAN,Fix_NP+12),longr(Fix_NSCAN,Fix_NP +08),longr(Fix_NSCAN,Fix_NP+04),longr(Fix_NSCAN,Fix_NP),longr(Fix_NSCAN,Fix_NP-04), longr(Fix_NSCAN,Fix_NP-08),longr(Fix_NSCAN,Fix_NP-12), longr(Fix_NSCAN,Fix_NP-16),longr(Fix_NSCAN,Fix_NP-20)/)<br>172 <br>173 <br>174 print(res@tmXBLabels)<br>175 print(res@tmXBValues)<br>176 ; res@tmXBLabels = decimalPlaces(restmXBLabels,2,True)<br>177 <br><br></div><div><br></div></div><div><br></div><div>Geeta.</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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>