|
stata8.2画图出现异常,有谁遇到过同样问题么 安装了stata8.0,然后用8.2的exe覆盖 born jan 10 2005 画图出现异常,有些8.0支持的命令不支持了,设置version 8.0也无济于事。 . version 8
1 E2 X( l3 K# ^: w/ W9 N1 a) \. do "c:\data\test6" + M" i5 c9 x+ z y2 m3 v# H, E
. sysuse uslifeexp, clear (U.S. life expectancy, 1900-1999)
' h- K" I; {, f6 a/ z. gen diff = le_wm - le_bm 6 w" t: ~* `5 H
. label var diff "Difference"
$ R& q; r" r3 |5 o" _9 E. . #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);
7 |# M* j# w6 z7 o# q) D0 Bend of do-file r(198);
2 ?& F8 R1 p8 ]: Y, N9 |$ o; n) U. do "c:\data\test2"
' h+ f8 W) [; G; T5 [- F0 Y. sysuse lifeexp, clear (Life expectancy, 1998)
* R9 }1 d) E6 J+ J! x A. gen gnp000 = gnppc/1000 (5 missing values generated)
2 `! R6 k3 I+ ~( h$ X8 T. label var gnp000 "人均GNP, 千元"
/ h- e% L4 \+ S& x0 [" q+ q* f. label var lexp "出生期望寿命" * r! n# h6 A2 ~4 j, w2 J8 @
. 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); ! Z4 d- y) o3 `7 t) l
end of do-file r(198); . ; ?: x$ x7 A7 x+ H, V
另外原来图中的颜色1种是红色,1种是蓝色,现在全变成黑色和白色。 . do "c:\data\test4" ) o4 l1 E, D7 C1 ^, h- l6 L+ e" x
. sysuse census, clear (1980 Census data by state)
7 `" D& b; F7 s% F) y X' T& A. gen drate = divorce / pop18p ! b! a' g6 k6 z
. label var drate "离婚率"
" d. a, e( \! T; q5 Z. 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
* s2 U5 H+ _7 N. end of do-file G8 z7 a8 f4 S, y+ A
设置version 6也无济于事 . use "C:\DATA\ex1.dta", clear 7 w/ z& Y# u9 C. B! Z
. version 6 - h3 T/ x1 {* V6 @1 i8 U0 a
. graph x : ^8 z4 [4 X9 {" `
. 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
$ u7 o* t. `8 i" i" `; f另外,汉字在输出窗口能显示,但是选择的时候就变成乱码。
|