|
stata8.2画图出现异常,有谁遇到过同样问题么 安装了stata8.0,然后用8.2的exe覆盖 born jan 10 2005 画图出现异常,有些8.0支持的命令不支持了,设置version 8.0也无济于事。 . version 8 7 x2 w' ~5 \1 ~% u7 o- Y
. do "c:\data\test6" , ]: }* T( }9 O' u) k O- i
. sysuse uslifeexp, clear (U.S. life expectancy, 1900-1999) , L: u. j+ z& }+ R/ R4 m- i
. gen diff = le_wm - le_bm
' ~$ e# J6 I/ t2 d, t' K5 ~7 k. label var diff "Difference"
+ i/ A3 a2 n, W. . #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);
, ^8 I$ _/ q# p! rend of do-file r(198); " `; q1 n% _- q1 d& }+ O
. do "c:\data\test2" ' ]& v8 M6 w5 F; I4 l; a+ v* o3 |
. sysuse lifeexp, clear (Life expectancy, 1998)
3 i' o1 B A4 W# j. gen gnp000 = gnppc/1000 (5 missing values generated) : _& b" A) T: m& Z* C) {
. label var gnp000 "人均GNP, 千元"
3 W! s! b- j# }' k. label var lexp "出生期望寿命" : p7 R9 o X& p: Y D
. 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); 3 P) O S' o2 r- |* p
end of do-file r(198); . ; ~$ k! R( ^! G
另外原来图中的颜色1种是红色,1种是蓝色,现在全变成黑色和白色。 . do "c:\data\test4"
6 v* F& i$ O" g5 h3 w2 h- b& e. sysuse census, clear (1980 Census data by state) - j8 w, O J$ f) Y8 C0 `' a
. gen drate = divorce / pop18p
2 {9 U. J9 b2 H7 M/ G1 D. label var drate "离婚率"
3 h: N6 ]) B+ v4 K7 a. 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
v. Z" ]1 u7 ] v, G8 d& n. end of do-file ' A; p" G; K: \' I
设置version 6也无济于事 . use "C:\DATA\ex1.dta", clear
1 v1 @( H" U$ q. e2 D. version 6
O$ F; r5 X/ @$ o/ y- Y$ e. graph x 5 U0 Y1 s* s y5 e! a# ]
. 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
( P1 t* o- f c! X8 J" K6 o另外,汉字在输出窗口能显示,但是选择的时候就变成乱码。
|