[ncl-talk] Some issue with plot

Anahita Amiri Farahani aamir003 at ucr.edu
Tue Nov 13 12:40:59 MST 2018


I used *gsn_csm_xy2*
<https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_csm_xy2.shtml> to
draw two lines each with their own separate Y-axis, but it gives me two
identecal plots. Here is the code:


;************************************************
wks   = gsn_open_wks ("eps","time_vs_alt")               ; send graphics to
PNG file

resL                  = True                     ; plot mods desired
resL at tiMainString     = "Altitide vs. Time"          ; add title

resR                        = True
resR at xyLineColors      = "blue"                   ; line color

plot  = gsn_csm_xy2 (wks,aa,ams_alt,qcls_co2,resL,resR) ; create plot
plot  = gsn_csm_xy2 (wks,aa,ams_alt,qcls_co2,resL,resR)
delete(wks)



Thanks,
Ana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181113/617cb354/attachment.html>


More information about the ncl-talk mailing list