Hi James,
may be you need to set the resource tmYROn to False for the second axis
of the xy2 plot to remove the axis labels. However, this will remove the
(major and minor) tick marks as well. If you want to remove only the
labels, you can use (with res_at_tmYROn = True, the default for xy2)
tmYRMode, tmYRValues, tmYRLabels and tmYRMinorValues together to set the
labels to null strings (" "). You may see the example below:
regards,
;==================================
...
...
begin
nt = 361;
x = fspan(0,nt,nt)
y1 = sin(x*3.1415/180)
y2 = cos(x*3.1415/180)
wks = gsn_open_wks("X11","xy2")
res1 = True
res1_at_gsnDraw = False
res1_at_gsnFrame = False
res2 = True
res2_at_gsnDraw = False
res2_at_gsnFrame = False
; res2_at_tmYROn = False
res2_at_tmYRMode = "Explicit"
res2_at_tmYRMinorValues = fspan(-1,1,21)
res2_at_tmYRValues = fspan(-1,1,5)
res2_at_tmYRLabels = (/" "," "," "," "," "/)
plot1 = gsn_csm_xy(wks,x,y1,res1)
plot2 = gsn_csm_xy2(wks,x,y1,y2,res1,res2)
respanel = True
gsn_panel(wks,(/plot1,plot2/),(/2,1/),respanel)
end
;===========================
jimmyc_at_iastate.edu wrote:
> Hi-
> I am plotting 2 panels using the gsn_csm_xy function and 2 panels
> using the gsn_csm_xy2. then they are plotted using the gsn_panel
> function. The problem is that the xy panels are bigger than the xy2
> primarily because the xy2 panel needs extra space for the 2nd axis
> labels. I am using the same values for both axes, so is there a
> resource to remove the labeling for the 2nd axis?
>
> Thanks for any help.
>
>
-- ---------------------------- ARINDAM CHAKRABORTY Department of Meteorology Florida State University Tallahassee, FL-32306, USA Tel: 850-644-3524 (O) 850-524-0717 (C) Fax: 850-644-9642 ____________________________ _______________________________________________ ncl-talk mailing list ncl-talk_at_ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Fri Feb 01 2008 - 14:47:35 MST
This archive was generated by hypermail 2.2.0 : Mon Feb 04 2008 - 10:52:23 MST