|
stata8.2画图出现异常,有谁遇到过同样问题么 安装了stata8.0,然后用8.2的exe覆盖 born jan 10 2005 画图出现异常,有些8.0支持的命令不支持了,设置version 8.0也无济于事。 . version 8
. N: f, j* @( ^* R! S% M4 D. do "c:\data\test6"
% G1 x. \4 P( g4 z- N) }- P5 J. sysuse uslifeexp, clear (U.S. life expectancy, 1900-1999) [' z/ E0 B5 E4 E
. gen diff = le_wm - le_bm
% R+ r) ]5 ]) I; Q) d. label var diff "Difference" ; D# ^1 V1 N- M$ w& f) m) m) S
. . #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);
# F+ x5 ?0 X ]# fend of do-file r(198); " P& E5 K) {0 e$ i! a. C
. do "c:\data\test2" , A* G2 J0 @/ r" b; |$ [
. sysuse lifeexp, clear (Life expectancy, 1998) + _; Y5 q$ \& G9 X
. gen gnp000 = gnppc/1000 (5 missing values generated) " J; I. K0 U0 x8 R: o
. label var gnp000 "人均GNP, 千元"
8 P) F* o% y* V) s) I. label var lexp "出生期望寿命"
: P' c2 \7 Y, P3 e: Q% H. 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); 4 K+ Z' l1 h* b
end of do-file r(198); . ' \& s4 j! ]9 k; ]
另外原来图中的颜色1种是红色,1种是蓝色,现在全变成黑色和白色。 . do "c:\data\test4" 2 J; w. Y% H: P
. sysuse census, clear (1980 Census data by state)
$ r$ E C0 `7 Z) m8 _. gen drate = divorce / pop18p
G. c+ F; G+ Q Q" N) E2 i. label var drate "离婚率" ( k2 E9 q/ @ I+ w( T- D: ]+ 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
0 D) a0 s9 B5 Q) o. end of do-file
( c- C0 Z# W. r% H0 C; K1 S设置version 6也无济于事 . use "C:\DATA\ex1.dta", clear
4 S" E6 \) ~" |% x$ C9 V/ x. version 6
- m$ H' _9 i+ `8 h" U4 P: W. graph x
+ i" C1 u$ X9 f. 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 & M% T9 ^5 Q/ ]; i% H- a9 E) I
另外,汉字在输出窗口能显示,但是选择的时候就变成乱码。
|