|
stata8.2画图出现异常,有谁遇到过同样问题么 安装了stata8.0,然后用8.2的exe覆盖 born jan 10 2005 画图出现异常,有些8.0支持的命令不支持了,设置version 8.0也无济于事。 . version 8 ( I. ?$ ` u' E/ W# Y5 P: O) I
. do "c:\data\test6"
4 R0 |( J. F* o5 D. V" ] Y+ _ P' M. sysuse uslifeexp, clear (U.S. life expectancy, 1900-1999)
( Z9 _% ^& a( B! K& {. gen diff = le_wm - le_bm
+ O- Y7 A+ C& d" k. G( B0 }. label var diff "Difference" ! o$ @' a. E, ]6 ?% y
. . #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); 7 ]$ r0 o$ m- v& U% u
end of do-file r(198);
' T# r( p4 u7 d3 z. do "c:\data\test2"
. H( h7 M7 @$ T# g! \8 J. sysuse lifeexp, clear (Life expectancy, 1998)
: p: o+ |. |2 B; l. gen gnp000 = gnppc/1000 (5 missing values generated)
9 ]8 c+ N+ h. }- Q. label var gnp000 "人均GNP, 千元"
+ [% N$ R# M6 O7 |: }. label var lexp "出生期望寿命" : a7 F( { {4 t4 R- H4 [& E
. 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);
% F4 k! {' O% f9 y: A- iend of do-file r(198); . % C4 I7 }; Q3 M$ f7 P1 }5 E2 x6 L
另外原来图中的颜色1种是红色,1种是蓝色,现在全变成黑色和白色。 . do "c:\data\test4"
9 x0 j$ _3 F9 w$ k8 q# U. sysuse census, clear (1980 Census data by state) 9 r5 ]/ }. M* } K
. gen drate = divorce / pop18p / b% N2 s% l* K/ S/ N4 G/ h5 d' \7 {
. label var drate "离婚率"
5 `; |, o& K5 `1 q7 I. 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
& N( r% ^/ ^: Q- L8 m# E3 _" k- E. end of do-file
7 n' {% g+ ~2 ~% C' p7 x设置version 6也无济于事 . use "C:\DATA\ex1.dta", clear ) c j! d& Q3 p P4 Z
. version 6 7 x/ I( L7 {" `7 Y* U, q
. graph x
3 q0 E& E! J' r# S' t" M( C. 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 & B3 h o( L; g9 U7 T- n) c7 `
另外,汉字在输出窗口能显示,但是选择的时候就变成乱码。
|