Irregular X-axis in xy plot

From: Hilde Fagerli (h.fagerli AT XXXXXX)
Date: Fri Mar 07 2003 - 03:41:34 MST


I am trying to plot a xy plot with the gsn_csm_xy function, with an
irregular X-axis:

My "original" x-axis values are
    time= (/
473385600,476064000,478483200,481161600,483753600,486432000,489024000,491702400,494380800,496972800,499651200,502243200,

631152000,633830400,636249600,638928000,641520000,644198400,646790400,649468800,652147200,654739200,657417600,660009600

/)

and I want to have equal spacing beteen these in my plot.

I have used:

   res@xyXStyle = "Irregular"
   res@xyXIrregularPoints =
(/1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24 /)

But this only gives me the error message:
warning:XyPlotSetValues:trXMaxF is not defined by xyXIrregularPoints:
Setting to 24.000000
warning:TransInitialize: min X coordinate exceeds max: exchanging
warning:IrTransInitialize: X maximum greater than maximum value of
coordinate points array, defaulting
warning:TickMarkSetValues: Zero span between tmXBDataLeftF and
tmXBDataRightF, turning bottom tickmarks off:[errno=1104]
warning:TickMarkSetValues: Zero span between tmXTDataLeftF and
tmXTDataRightF, turning top tickmarks off:[errno=1104]
fatal:TickMark:CheckIrregular: Both tmXBDataLeftF and tmXBDataRightF are

outside of the range of the values in tmXBCoordPoints, can not continue

Do anyone have an example on how to make an xy plot with an irregular
X-axis?

:) Hilde

_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk



This archive was generated by hypermail 2b29 : Fri Mar 07 2003 - 17:38:05 MST