Re: two different axes

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri Feb 18 2011 - 06:55:49 MST

Use something like Example 2 at
http://www.ncl.ucar.edu/Applications/xy.shtml

  x1[*], y1[*]
  x2[*], y2[*]
  n1 = dimsizes(y1)
  n2 = dimsizes(y2)
  N = max( (/n1,n2/) )

  xx = new((/2,N/),typeof(y1))
  yy = new((/2,N/),typeof(y1))

  xx(0:n1-1) = (/ x1 /)
  yy(0:n1-1) = (/ y1 /)
  xx(0:n2-1) = (/ x2 /)
  xx(0:n2-1) = (/ y2 /)

;************************************************
  wks = gsn_open_wks ("ps","xy") ; open workstation

  res = True ; plot mods desired
  res@tiMainString = "Mulitple XY plot" ; add title
  res@xyLineThicknesses = (/1.0,2.0/) ; specify thickness
  res@xyLineColors = (/"blue","red"/) ; change line color
;res@tiMainString = "..."
;res@gsnLeftString = "..."
;res@gsnCenterString = "..."
;res@gsnRightString = "..."

  plot = gsn_csm_xy (wks,xx,yy,res) ; create plot

On 2/18/11 2:27 AM, ahmed lasheen wrote:
> can NCL plot the two drawing on the same x axis , the difference is that
> jacopi.error file has 583 number and gauss.error file has 300 number.
> i do it in gnuplot and i have attached it .
>
> On Fri, Feb 18, 2011 at 7:37 AM, ahmed lasheen <ahmed4kernel@gmail.com
> <mailto:ahmed4kernel@gmail.com>> wrote:
>
> thanks so much
>
>
> On Fri, Feb 18, 2011 at 12:13 AM, Mohamad Ibrahim OMAR
> <egy_mohamad@yahoo.com <mailto:egy_mohamad@yahoo.com>> wrote:
>
> Hi, Ahmed
> you have an error in writing the gsn_csmx2y2 order it must be
> plot =
> gsn_csm_x2y2(wks,x_jacopi,x_gauss,y_jacopi,y_gauss,res1,res2)
> instead of
> plot =
> gsn_csm_x2y2(wks,x_jacopi,y_jacopi,x_gauss,y_gauss,res1,res2)
> and some lines I changed for resources you can check them and I
> attached the script
> Regards
>
> Mohamed Ibrahim El-Sayed OMAR
>
> Egyptian Meteorological Authority
>
> Scientific Research Department
>
> Climate Studies Centre
> Kobry El-Quobba, P.O.Box. 11784
> Cairo, EGYPT
>
> Mobil phone : 002 0160802805
> Home Phone : 002 0482370261
>
>
>
>
>
>
> --
> ===============
> Ahmed Lasheen
> Junior researcher at Cairo Numerical Weather Prediction Center (CNWPC)
> Egyptian Meteorological Authority(EMA)
> Cairo,Egypt
> ===============
>
>
>
>
> --
> ===============
> Ahmed Lasheen
> Junior researcher at Cairo Numerical Weather Prediction Center (CNWPC)
> Egyptian Meteorological Authority(EMA)
> Cairo,Egypt
> ===============
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Feb 18 06:55:55 2011

This archive was generated by hypermail 2.1.8 : Wed Feb 23 2011 - 16:47:57 MST