|
stata8.2画图出现异常,有谁遇到过同样问题么 安装了stata8.0,然后用8.2的exe覆盖 born jan 10 2005 画图出现异常,有些8.0支持的命令不支持了,设置version 8.0也无济于事。 . version 8 4 L8 G- F8 c2 x2 [) ?& q* x
. do "c:\data\test6" * I( ?0 T$ @+ D# [% X! R m' c5 {
. sysuse uslifeexp, clear (U.S. life expectancy, 1900-1999) / `* A, W4 j5 N) Q& O! k
. gen diff = le_wm - le_bm 2 w! r8 t [1 c* s" C R- c% }
. label var diff "Difference"
1 }; g4 i3 d6 s! F5 v' G# c* a. . #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);
. I0 l; ^0 S6 c9 x9 x. N* Kend of do-file r(198);
- P- C" ~+ r0 F1 d6 A. do "c:\data\test2"
2 {5 s: }+ g5 E* d% f" h, p$ N. sysuse lifeexp, clear (Life expectancy, 1998)
( p3 ]5 V( Z- P7 T. gen gnp000 = gnppc/1000 (5 missing values generated)
. \, J3 q2 q/ s& \- B5 y. label var gnp000 "人均GNP, 千元"
! _8 W3 i( k4 c3 t, y* o. label var lexp "出生期望寿命"
6 U+ h: A6 g4 T- Q# D) o. 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);
! Y( O- F' i2 {( b, r2 E* tend of do-file r(198); .
5 _% Z5 M! S/ M3 W另外原来图中的颜色1种是红色,1种是蓝色,现在全变成黑色和白色。 . do "c:\data\test4"
, f' ~! E1 ?5 y7 Y4 I7 ?& H. sysuse census, clear (1980 Census data by state) 3 |2 N5 P( O. k, \% p; Y" ~. f" l
. gen drate = divorce / pop18p 6 @: w+ T9 N+ `, |* [8 z' z% ~; R
. label var drate "离婚率"
( k! _% V/ I5 C; a8 T' {1 W. 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
* }6 o* ?( C* }" n& b8 ~3 R. end of do-file 5 F8 Q7 a& h8 ~3 r* O9 |
设置version 6也无济于事 . use "C:\DATA\ex1.dta", clear
0 c8 s5 c6 x, @* M3 [1 l; O3 v" g. version 6
7 i) }7 V" U% x4 g% h( j. graph x ( k% c3 s8 e+ L9 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 B3 b6 |& p; N, f/ `6 g! V3 i
另外,汉字在输出窗口能显示,但是选择的时候就变成乱码。
|