Code:
clear
input int date float gnp96
28 3631.6
29 3644.5
30 3672
31 3703.1
32 3757.5
33 3818.3
34 3841.6
35 3861.8
36 3906.8
37 3915
38 3937.8
39 3922.9
40 3922
41 3922.3
42 3961.3
43 3931
44 4027.3
45 4042
46 4064.7
47 4072.9
end
format %tqq date
set scheme s1color
#delimit ;
tw connected gnp96 date
,
xmla(28/47, tlength(0))
xtick(27.5(4)47.5, tlength(*5))
xla(29.5(4)45.5, format(%tqCCYY) tlength(*2) tlcolor(none))
xtitle("")
;
#delimit cr
I tried following the logic used in this post: Is it possible to have labels in two or more colors in Stata? - Statalist, but it didn’t work.
My question is it possible to do the same thing they did in that post, por does this option simply not offer that level of control?
Best regards.

Comment