|
stata8.2画图出现异常,有谁遇到过同样问题么 安装了stata8.0,然后用8.2的exe覆盖 born jan 10 2005 画图出现异常,有些8.0支持的命令不支持了,设置version 8.0也无济于事。 . version 8
! c0 H1 p/ I. ^! s8 A/ I/ W. do "c:\data\test6"
5 l. Y8 S N- H& o* i. sysuse uslifeexp, clear (U.S. life expectancy, 1900-1999)
i. v+ N) m7 Z( a2 W! d. gen diff = le_wm - le_bm 3 S$ K: r& w" T9 l1 i& t
. label var diff "Difference" 8 Z7 A* M3 v5 L
. . #delimit ; delimiter now ; . line le_wm year, yaxis(1 2) xaxis(1 2) > || line le_bm year > || line diff year > || lfit diff year > ||, > ylabel(0(5)20, axis(2) gmin angle(horizontal)) > ylabel(0 20(10)80, gmax angle(horizontal)) > ytitle("", axis(2)) > xlabel(1918,axis(2)) > xtitle("",axis(2)) > ytitle("Life expectancy at birth (years)") > title("White and black life expectancy") > subtitle("USA, 1900-1999") > note("Source: National Vital Statistics, Vol 50, No. 6" > "(1918 dip caused by 1918 Influenza Pandemic)") > legend(label(1 "White males") label(2 "Black males")) > legend(col(1) pos(3)) > ; invalid label specifier, : 1918: invalid syntax invalid syntax r(198); ( Q$ W* G% v$ I+ O0 b6 c5 r9 W
end of do-file r(198);
! `* v# E y# \6 l" X" }. do "c:\data\test2" / J( n* J% U' T0 i* l' p, k h. l
. sysuse lifeexp, clear (Life expectancy, 1998) 7 y+ ^, q& Y! R" ?) K
. gen gnp000 = gnppc/1000 (5 missing values generated) 6 x0 k6 ? Y: ?
. label var gnp000 "人均GNP, 千元"
) |" A- u3 M+ ?4 h- u! @. label var lexp "出生期望寿命" 7 L8 o+ t0 w- [. b
. scatter lexp gnp000, xsca(log) xlabel(.5 2.5 10(10)40, grid) invalid label specifier, : .5 2.5 10(10)40: invalid syntax invalid syntax r(198); 7 m9 g+ J" ~' R4 S$ A
end of do-file r(198); . 7 l* l: ~$ `& |: d
另外原来图中的颜色1种是红色,1种是蓝色,现在全变成黑色和白色。 . do "c:\data\test4" 0 p; u+ j3 V, X
. sysuse census, clear (1980 Census data by state)
5 C y6 O: h5 [9 L$ K. gen drate = divorce / pop18p 0 [: s2 f. k/ I: t* w4 E5 _0 a
. label var drate "离婚率" 5 \- a! a5 P; b m3 R' K! I3 `8 e
. scatter drate medage [w=pop18p] if state!="Nevada", msymbol(Oh) note("Stat > e data excluding Nevada" "Area of symbol proportional to state's populatio > n aged 18+") (analytic weights assumed) (analytic weights assumed) (note: named style p1 not found in class seriesstyle, default attributes used (note: named style circle not found in class markerstyle, default attributes used (note: named style p1 not found in class markerstyle, default attributes used : Z+ w# r; v1 X: H
. end of do-file - s* x: _" h: Y2 d- P
设置version 6也无济于事 . use "C:\DATA\ex1.dta", clear # z F3 \3 B$ i* Y" T: H
. version 6
0 R$ P; a6 B0 u3 v( o5 [. graph x
5 V+ ?7 E6 O& E7 r$ h. line x y (note: named style p1 not found in class seriesstyle, default attributes used (note: named style circle not found in class markerstyle, default attributes used (note: named style p1 not found in class markerstyle, default attributes used 1 s- t4 |# r' s* N% t
另外,汉字在输出窗口能显示,但是选择的时候就变成乱码。
|