|
stata8.2画图出现异常,有谁遇到过同样问题么 安装了stata8.0,然后用8.2的exe覆盖 born jan 10 2005 画图出现异常,有些8.0支持的命令不支持了,设置version 8.0也无济于事。 . version 8
4 s5 J5 [# r+ {1 K6 {+ a$ f. do "c:\data\test6" 6 m) W' I' x: k/ z/ k" Y( _
. sysuse uslifeexp, clear (U.S. life expectancy, 1900-1999) 7 j/ A& @5 u1 e9 ?! u* [, a
. gen diff = le_wm - le_bm l8 u8 }1 j; [
. label var diff "Difference" ; z$ X7 t5 v; K: @) C( m
. . #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); " g/ b, g: w2 M9 T! x- \
end of do-file r(198);
. b9 \, F- |) ^+ p( F8 t. do "c:\data\test2"
x+ I2 d5 s* `1 r- V) Z* X3 y, q. sysuse lifeexp, clear (Life expectancy, 1998) ( F, y; U" U- F4 M3 t9 i
. gen gnp000 = gnppc/1000 (5 missing values generated)
6 ?! y5 [& g9 n8 k$ t' b% M7 b. label var gnp000 "人均GNP, 千元" % X6 G! E+ t) ]# R
. label var lexp "出生期望寿命" 4 Z1 U7 `. H6 {
. 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);
( X; |# ?8 y* P" \' T+ Hend of do-file r(198); . 6 ?5 M! V1 Y" ^& D7 d# n# }5 `) n
另外原来图中的颜色1种是红色,1种是蓝色,现在全变成黑色和白色。 . do "c:\data\test4"
% [. }& l1 x) d( z8 v$ L. sysuse census, clear (1980 Census data by state) ( n% v- z9 ^+ @; r5 ?0 y
. gen drate = divorce / pop18p / o9 ~* G1 k% x% s& `1 s6 \
. label var drate "离婚率"
% G! |" O5 k) c. w. 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
. M B+ I/ j2 E; {; f. end of do-file
+ m3 |* I& Q8 D9 O- Z! |) a设置version 6也无济于事 . use "C:\DATA\ex1.dta", clear " E* Z! |% I5 E. l9 p2 O [- [ I
. version 6
2 p6 w+ X) C9 |3 i% j. graph x 2 y1 d9 C* y5 `$ ?' n" Q: S1 W% l2 @0 l X
. 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
% ~3 X; J2 }' k3 k7 O9 _# u9 f另外,汉字在输出窗口能显示,但是选择的时候就变成乱码。
|