|
stata8.2画图出现异常,有谁遇到过同样问题么 安装了stata8.0,然后用8.2的exe覆盖 born jan 10 2005 画图出现异常,有些8.0支持的命令不支持了,设置version 8.0也无济于事。 . version 8 1 R% H$ G) P( O, k3 F
. do "c:\data\test6" 7 @& U0 j, Q" k, ^* I( F' z" U
. sysuse uslifeexp, clear (U.S. life expectancy, 1900-1999) , ~' ?2 R: b7 l; `
. gen diff = le_wm - le_bm
9 |& Q' Z+ |; j' |- s& J e p' O. label var diff "Difference" |1 M( @0 P3 {% H7 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);
# E9 j2 H1 Y6 I; \' lend of do-file r(198); # v5 Y+ L9 c0 ^& Z
. do "c:\data\test2"
9 H0 ?& N1 } u" b/ c& Q% M. sysuse lifeexp, clear (Life expectancy, 1998)
6 L! V' `. T3 ]. gen gnp000 = gnppc/1000 (5 missing values generated) 5 G9 B$ S, F) `# y
. label var gnp000 "人均GNP, 千元"
5 z- i6 T6 B0 Y4 }& Z) ^. label var lexp "出生期望寿命" 6 V- t0 T' F) w" a
. 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);
$ i3 G( e1 r! j) Tend of do-file r(198); .
% N. q3 p+ C1 W另外原来图中的颜色1种是红色,1种是蓝色,现在全变成黑色和白色。 . do "c:\data\test4" 8 | `( H* e; r2 g7 V! H/ O' }+ ^
. sysuse census, clear (1980 Census data by state)
% ^9 C' {9 a. D. gen drate = divorce / pop18p $ e; m2 ?2 [/ L% |# g+ B
. label var drate "离婚率"
5 H! F% t( `+ v( ?. 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 4 c ^. o5 J& _/ D; T
. end of do-file 3 _; \) Z5 _' V, n/ ^. H0 y
设置version 6也无济于事 . use "C:\DATA\ex1.dta", clear
" t3 q- L I7 y: H. version 6
8 b3 e; r8 j, w2 j- _' V. graph x
) f+ L5 f8 F. L1 E. 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
; d( L% p6 f# t另外,汉字在输出窗口能显示,但是选择的时候就变成乱码。
|