[ncl-talk] Unable to get right side Y-axis labels
Vennam, Lakshmi Pradeepa
lakshmi at live.unc.edu
Tue Mar 8 21:24:14 MST 2016
Hello,
I am trying to give explicit right side Y-axis labels but for some reason unable to get them on the plot. Can someone please let me know if I am missing anything?
Code :
resL = True ; plot mods desired
resL at gsnDraw = False ; don't draw
resL at gsnFrame = False ; don't advance frame
resL at tiYAxisString = ""
resL at tiXAxisString = ""
resL at xyLineColor = "Red"
resL at tmYROn = True ; turn on the YR tickmarks
resL at tmYUseLeft = False
resL at tmYRLabelsOn = True ; turn the YR labels on
resL at tmYRMode = "Explicit" ; explicitly set Y-axis labels
resL at tmYRValues = (/"640","2200","6700","10000","12500","14100"/)
resL at tmYRLabels = (/"640","2200","6700","10000","12500","14100"/)
plot1(0) = gsn_csm_xy(wks1,lat_avg,theta_P1(0,:,:),resL)
plot1(1) = gsn_csm_xy(wks1,lat_avg,theta_P2(0,:,:),resL)
plot1(2) = gsn_csm_xy(wks1,lat_avg,theta_P3(0,:,:),resL)
plot1(3) = gsn_csm_xy(wks1,lat_avg,theta_P4(0,:,:),resL)
resP = True ; modify the panel plot
resP at gsnFrame = False ; don't advance panel plot
resP at gsnPanelLabelBar = True
resP at gsnPanelFigureStrings= (/"JFM","AMJ","JAS","OND"/) ; add strings to panel
resP at amJust = "TopLeft"
gsn_panel(wks1,plot1,(/2,2/),resP) ;draw panel plot
txresP = True
txresP at txAngleF = 90. ; Rotate string clockwise
txresP at txFontHeightF = 0.02
gsn_text_ndc(wks1,"Potential Temperature(theta)",0.085,0.5,txresP) ; add the common left y-axis
gsn_text_ndc(wks1,"Latitude (degree)",0.5,0.095,txresP); add the common bottom x-axis label
frame(wks1)
Thanks in advance,
Pradeepa.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160309/ec7f0982/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: theta_latitude.pdf
Type: application/pdf
Size: 220743 bytes
Desc: theta_latitude.pdf
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160309/ec7f0982/attachment.pdf
More information about the ncl-talk
mailing list