<div dir="ltr"><div>I did not see any problem with your xy plots. May be you are talking about top tick marks. You can set the top tick marks off by adding the following to your resources:</div><div>res2@tmXTOn = False</div><div><br></div><div>Does this solve the issue?<br></div><div><br></div><div>Cheers,</div><div>Rashed<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 17, 2019 at 10:20 PM Anahita Amiri Farahani via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@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">Hi all,<br><div><br></div><div>I have a problem with one f my panel in a plot the Y axis is out. Attached it the plot and you can see the code for plotting here:</div><div><br></div><div><br>;*********************************************************************************<br>res2 = True ; plot mods desired<br>res2@lbLabelFontHeightF =.022<br>res2@gsnStringFontHeightF = 0.025<br><br>res2@gsnDraw = False<br>res2@gsnFrame = False<br>;res2@tiMainString = "Vertical profile of atmospheric heating rate" ; add title<br>res2@tiYAxisString = "Pressure (hPa)" ; xaxis string<br>res2@tiXAxisString = "Atmospheric heating rate (K/day)";Pressure levels (hPa)"<br><br>res2@gsnXRefLine = 0. <br>res2@gsnXRefLineDashPatterns = 4<br><br>res2@trYMinF = 100 ; set minimum Y-axis value<br>res2@trYMaxF = 1000 ; set maximum Y-axis value<br>res2@trXMinF = -0.02 ; set minimum X-axis value<br>;res2@trXMaxF = 0.035 ; set maximum X-axis value<br> res2@trYReverse = True ; reverse Y-axis<br>res2@xyDashPattern = 0 ; Make curves all solid<br><br><br><br>res2@xyLineThicknesses = (/2.0, 2.0, 2.0/)<br>res2@xyLineColors = (/"blue","red","green"/) ; 3 different colors<br>; add a legend<br> res2@pmLegendDisplayMode = "Always" ; turn on legend<br> <br> res2@pmLegendSide = "Top" ; Change location of <br> res2@pmLegendParallelPosF = .90 ; move units right<br> res2@pmLegendOrthogonalPosF = -0.6 ; more neg = down<br> <br> res2@pmLegendWidthF = 0.06 ; Change width and<br> res2@pmLegendHeightF = 0.25 ; height of legend.<br> res2@lgLabelFontHeightF = .015 ; change font height<br> res2@lgPerimOn = False ; no box around<br>; labels for the legend<br>res2@xyExplicitLegendLabels = (/"Total","Sea","Land"/)<br>;plot = gsn_csm_xy (wks,Absp3D_fine_no_ds5,lev3,res) ; create plot<br><br><br><br>res2@gsnLeftString = " Global" <br>plot(2) = gsn_csm_xy (wks,data1,lev3,res2) ; create plot<br>;res2@tmYLLabelsOn = False ; no y left tm labels<br>;res2@tiYAxisOn = False ; no y-axis title<br>res2@gsnLeftString = " Africa Region" <br>plot(3) = gsn_csm_xy (wks,data2,lev3,res2)<br>;************************************************<br>; create panel<br>;************************************************<br>resP = True ; modify the panel plot<br>resP@gsnPanelLabelBar = False ; add common colorbar<br>resP@gsnPanelFigureStrings = (/"a)","b)","c)","d)"/) ; add strings to panel<br>gsn_panel(wks,plot,(/2,2/),resP) <br></div><div><br></div><div><br></div><div>Thanks,</div><div>Ana</div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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></blockquote></div>