<html><head></head><body><div class="ydp793c937yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div dir="ltr" data-setdir="false">Thanks for your mail Sir. <br></div><div dir="ltr" data-setdir="false">I rectified/ added  the following  for Y axis. <br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div>             res@trXAxisType    =  "IrregularAxis"<br>;             res@trXMinF       =   0<br>;             res@trXMaxF       =   40<br>             res@trYMinF       = 0.5<br>             res@trYMaxF       = 18.0<br><br></div><div dir="ltr" data-setdir="false">For X axis ----</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"> <br></div><div dir="ltr" data-setdir="false"><div>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>             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><br></div><div dir="ltr" data-setdir="false">Y axis is plotted and also shows 0.5, 1.5, 2.5 etc. How can I make it uniform say 1, 2, 3..... and so on. <br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Reg X axis, I specified both res@tmXBValues and res@tmXBlabels (same) but it is not shown in the plot. <br></div><div dir="ltr" data-setdir="false">Plot attatched</div><div dir="ltr" data-setdir="false">thanks again<br></div><div dir="ltr" data-setdir="false"><br></div></div></div><div dir="ltr" data-setdir="false"><br></div><div><br></div><div class="ydp793c937signature">Geeta.</div></div>
        <div><br></div><div><br></div>
        
        </div><div id="yahoo_quoted_0358602325" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Monday, 26 April, 2021, 9:13:56 pm IST, Adam Phillips <asphilli@ucar.edu> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="yiv9670604782"><div><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 clear="none"></div><div>Hope that helps! If you have further questions please respond to the ncl-talk email list.</div><div>Adam  </div></div><br clear="none"><div class="yiv9670604782gmail_quote"><div class="yiv9670604782yqt6297456332" id="yiv9670604782yqt86265"><div class="yiv9670604782gmail_attr" dir="ltr">On Sun, Apr 25, 2021 at 9:03 AM Geeta Geeta via ncl-talk <<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:ncl-talk@mailman.ucar.edu" target="_blank" href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br clear="none"></div><blockquote class="yiv9670604782gmail_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, Arial, sans-serif;font-size:13px;"><div><div dir="ltr">Hi. <br clear="none"></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 clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr">request someone to help me. I am attaching the figure so obtained. <br clear="none"></div><div dir="ltr">Following are the res in the code. <br clear="none"></div><div dir="ltr"><div><div><br clear="none"></div><div><br clear="none"></div><div>                   res@tmXBMinorOn   =  False</div>150              res@tmYLMinorOn   =  False<br clear="none">151              res@tmYLMode      =  "Explicit"<br clear="none">152              res@tmYLValues    =  Ht_of_layers<br clear="none">153              res@tmYLLabels    =  Ht_of_layers<br clear="none">154 ;                                            defining X axis for all the plts together<br clear="none">155              Fix_NSCAN      =  1036<br clear="none">156              Fix_NP         =  173<br clear="none">157              xaxismin       =  Fix_NP+20<br clear="none">158              xaxismax       =  Fix_NP-20<br clear="none">159              xaxisinterval  =  1<br clear="none">160              int_for_plot   =  4<br clear="none">161 <br clear="none">162     xaxis_fnl           =  ispan(xaxismin,xaxismax,xaxisinterval)<br clear="none">163                            print(xaxis_fnl)<br clear="none">164     xaxis_for_plotting  =  ispan(xaxismin,xaxismax,int_for_plot)<br clear="none">165                             printVarSummary(xaxis_for_plotting)<br clear="none">166                             print(xaxis_for_plotting)<br clear="none">167 <br clear="none">168              res@tmXBMode      =  "Explicit"             ; will change from case to case<br clear="none">169 ;             res@tmXBValues   =  xaxis_for_plotting<br clear="none">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 clear="none">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 clear="none">172 <br clear="none">173 <br clear="none">174                                   print(res@tmXBLabels)<br clear="none">175                                   print(res@tmXBValues)<br clear="none">176 ;             res@tmXBLabels    =  decimalPlaces(restmXBLabels,2,True)<br clear="none">177 <br clear="none"><br clear="none"></div><div><br clear="none"></div></div><div><br clear="none"></div><div>Geeta.</div></div></div></div>_______________________________________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:ncl-talk@mailman.ucar.edu" target="_blank" href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div></div><br clear="all"><div><br clear="none"></div>-- <br clear="none"><div class="yiv9670604782gmail_signature" dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font style="background-color: inherit;" color="#888888">Adam Phillips <br clear="none"></font></span></div><span><font style="background-color: inherit;" color="#888888">Associate Scientist,  </font></span><span><font style="background-color: inherit;" color="#888888">Climate and Global Dynamics Laboratory, NCAR<br clear="none"></font></span></div></div><div><span><font style="background-color: inherit;" color="#888888"><a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="http://www.cgd.ucar.edu/staff/asphilli/">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span><font style="background-color: inherit;" color="#888888">303-497-1726 </font></span></div><span><font style="background-color: inherit;" color="#888888"></font></span><div><div><span><font style="background-color: inherit;" color="#888888"><br clear="none"></font></span><div><span><font style="background-color: inherit;" color="#888888"><a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="http://www.cgd.ucar.edu/staff/asphilli"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div></div></div>
            </div>
        </div></body></html>