|
stata8.2画图出现异常,有谁遇到过同样问题么 安装了stata8.0,然后用8.2的exe覆盖 born jan 10 2005 画图出现异常,有些8.0支持的命令不支持了,设置version 8.0也无济于事。 . version 8 ( p9 u% N' e9 m2 B- d1 r3 a
. do "c:\data\test6" 0 n: n' E# W* f! w1 D* k
. sysuse uslifeexp, clear (U.S. life expectancy, 1900-1999)
. \- S' _ ~0 `" a: [) C' n9 `) H* F. gen diff = le_wm - le_bm
% a1 L: F# h1 i, L1 h K. label var diff "Difference" 5 x" u1 K$ c/ G+ T! F1 n d
. . #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); 3 W& J, g) Q3 C3 k! V
end of do-file r(198); 7 A/ j/ \1 `$ I+ Y
. do "c:\data\test2" 7 T$ t# Y8 F- v" ?& I( `: E: z( U6 X
. sysuse lifeexp, clear (Life expectancy, 1998) 0 n6 _9 ~- ~# l+ G3 H# s" ?
. gen gnp000 = gnppc/1000 (5 missing values generated) + k, w: v6 q# _7 [
. label var gnp000 "人均GNP, 千元" ! P7 X' `2 @: @3 C/ a
. label var lexp "出生期望寿命" ; c7 r$ u9 O( o0 f+ R6 S
. 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); : s/ W! @ ]5 ^& U* D4 ~$ R7 \* G
end of do-file r(198); .
$ f4 z1 M2 p+ I) `; }5 S另外原来图中的颜色1种是红色,1种是蓝色,现在全变成黑色和白色。 . do "c:\data\test4"
% A3 f2 q5 a& m z. sysuse census, clear (1980 Census data by state)
( \1 y( e2 Z: g9 r5 ]1 Z' T* N. gen drate = divorce / pop18p
1 q2 h. D) J x, g& s. label var drate "离婚率"
( M" p" b. e O. 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 % k1 X$ R+ c6 S9 L( k
. end of do-file
2 C) _# U# G* @, ?设置version 6也无济于事 . use "C:\DATA\ex1.dta", clear
' h7 p9 y( D- s" m4 U. version 6
4 Q* R) T! a) r6 `! z4 H3 I9 h. graph x + A1 l+ U' A) v
. 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
' F# F: w1 I/ o1 ~/ G; h1 _另外,汉字在输出窗口能显示,但是选择的时候就变成乱码。
|