on P248—Chapter 1. Object Reference
Code: Select all
graph1.datelabel format(yy:mm, q)
will display a two-digit year followed by a “q” separator and then a two-digit month (e.g. –“74q04”). This may not be the truth
Code: Select all
'datelabel in irregular dates: 2 row, tick and minor tick
pageload od.txt
graph gf1.spike y
gf1.addtext(t) ""
gf1.axis tickson
pagecopy(page=odm) y
pagestruct(freq=m) @date(dn)
graph gf2.spike y
gf2.addtext(t) ""
gf2.axis tickson
copy gf2 gf01
gf01.datelabel format(yyyy:mm,q)
copy gf2 gf02
gf02.datelabel format(yyyy:mm,yyyy)
copy gf2 gf03
gf03.datelabel format(yyyy:mm,mm)
copy gf2 gf04
gf04.datelabel format(yyyy:mm,M)
copy gf04 gf05
gf05.datelabel format(" ")
pageload odw.txt
graph gf3.spike y
gf3.addtext(t) ""
gf3.axis tickson
' gf3.datelabel format(yyyy[m]mm,q)
' gf3.datelabel interval(m,6)
gf3.axis duallevel
data
in page odm, for the date labels, gf01=gf02=gf03=gf04, and gf2=gf05
other problems:
in page od, the gf1 looks like (day on first row, and yyyymm on 2nd row)
in page odw, the gf3 allows "two row date labels", however, only one row
my suggestions: for axis, there is tick marks and minor tick, is it possible for users to control the first row and second row of the date label, such as
Code: Select all
gf1.axis duallevel
gf1.datelabel format(mm-dd, yyyy)
where for gf1, the first row label will be month and day, and the second row will be year in YYYY,