|
stata8.2画图出现异常,有谁遇到过同样问题么 安装了stata8.0,然后用8.2的exe覆盖 born jan 10 2005 画图出现异常,有些8.0支持的命令不支持了,设置version 8.0也无济于事。 . version 8 \- O8 E5 _4 t9 O1 ]
. do "c:\data\test6"
' ?( B" Y Y/ O' z$ O. sysuse uslifeexp, clear (U.S. life expectancy, 1900-1999) `. D) W+ p0 [; q% `
. gen diff = le_wm - le_bm
# m, h* r/ @/ V. label var diff "Difference"
/ p$ p5 u+ p/ E2 s. . #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); . A& |! a9 m# j) F, z$ j! R" N
end of do-file r(198); ( W7 @/ L% t$ I
. do "c:\data\test2"
. M; E8 g0 k) O" U* r+ r. sysuse lifeexp, clear (Life expectancy, 1998)
$ b' B, A, l0 ^9 |- p# L. gen gnp000 = gnppc/1000 (5 missing values generated)
* n! |3 W8 @8 d, Z( d. label var gnp000 "人均GNP, 千元"
4 A$ J: f9 q0 T3 a3 t, K* N+ C+ f% z. label var lexp "出生期望寿命"
P7 B2 y! w4 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); 5 s7 E6 q" S! t1 N" l" j$ E G( K
end of do-file r(198); . ; j, ~. K: T; l( j* e0 z0 Z% z
另外原来图中的颜色1种是红色,1种是蓝色,现在全变成黑色和白色。 . do "c:\data\test4"
, Q2 u* o4 u5 L: ] z M9 R( v. sysuse census, clear (1980 Census data by state) 4 b' P/ P }5 F$ R
. gen drate = divorce / pop18p
) D! V9 o. ~ a! O. label var drate "离婚率" $ P8 d, v6 K2 Z7 m) F$ 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
3 T& O3 ?7 g& A1 J) \7 z7 d, |. end of do-file
" V% G' c/ T. _6 @7 S3 F2 h设置version 6也无济于事 . use "C:\DATA\ex1.dta", clear
7 H: @! {8 P1 w! H$ X. version 6 # O( v _! A* E, E" h6 K8 G' U1 x' {% X
. graph x
6 t0 Z4 U/ `4 P% r. 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 * h. n& Y- N" \1 i: n
另外,汉字在输出窗口能显示,但是选择的时候就变成乱码。
|