|
stata8.2画图出现异常,有谁遇到过同样问题么 安装了stata8.0,然后用8.2的exe覆盖 born jan 10 2005 画图出现异常,有些8.0支持的命令不支持了,设置version 8.0也无济于事。 . version 8
3 j b5 Y# c/ U6 t1 T. do "c:\data\test6" 8 @3 e+ S; c3 k1 R0 v, {9 S( q
. sysuse uslifeexp, clear (U.S. life expectancy, 1900-1999) . Q% g3 i+ d" m! x
. gen diff = le_wm - le_bm : k3 K4 P& h3 s9 L7 P4 c
. label var diff "Difference" - o+ o2 m( o4 U
. . #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);
1 x9 d9 D! V4 T8 M1 Q9 T: Xend of do-file r(198);
/ X O# [* L' K6 ^. do "c:\data\test2" ! z+ u; L! P0 p# a3 m
. sysuse lifeexp, clear (Life expectancy, 1998) ; E# B) s/ c3 L/ r7 R5 ^- x
. gen gnp000 = gnppc/1000 (5 missing values generated)
9 }, y; W( K& t+ h( c$ k. label var gnp000 "人均GNP, 千元" + L3 s) [, I& E
. label var lexp "出生期望寿命"
! h3 ~5 B0 u' \! t8 j) @. 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); % k( o& Z! h% }& D$ W& c! \. S0 g. q
end of do-file r(198); . 8 D, j% S' l& D5 t
另外原来图中的颜色1种是红色,1种是蓝色,现在全变成黑色和白色。 . do "c:\data\test4"
0 Q" l* [" m1 W2 Z: i% }. sysuse census, clear (1980 Census data by state)
. m2 J) F" h9 _) W# s5 [. gen drate = divorce / pop18p
% a/ s6 @8 C G$ h. b. label var drate "离婚率"
: L: \" j4 {8 ?5 {. 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
. r* [4 E6 T$ L. end of do-file
2 h- [: j9 L x% e. P4 `设置version 6也无济于事 . use "C:\DATA\ex1.dta", clear $ H/ B4 z" [ {$ c! P- g
. version 6
- Q4 Q( ?8 W. d+ B! |. graph x - P- g2 p: {/ z0 z+ M6 W/ S2 g
. 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 ! y- [5 {1 o- S: \5 y* Q1 f
另外,汉字在输出窗口能显示,但是选择的时候就变成乱码。
|