|
stata8.2画图出现异常,有谁遇到过同样问题么 安装了stata8.0,然后用8.2的exe覆盖 born jan 10 2005 画图出现异常,有些8.0支持的命令不支持了,设置version 8.0也无济于事。 . version 8
. g( M; h7 N) H7 ]2 W) y. do "c:\data\test6"
4 a, n5 t ]4 G* O# J/ @. sysuse uslifeexp, clear (U.S. life expectancy, 1900-1999)
- {8 X/ i/ ^! J1 R. gen diff = le_wm - le_bm # g. x9 i' K( d5 g4 X# Y% f
. label var diff "Difference"
; d% h- A1 |9 P. . #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 j0 N, G: Y1 M/ D3 j; [
end of do-file r(198);
! L# F3 O# N% I4 [; R% c) G" b8 a" y. do "c:\data\test2" ' h% t- p* O5 [; n6 P/ B
. sysuse lifeexp, clear (Life expectancy, 1998) 9 L1 d" s$ N+ r; _/ l8 H
. gen gnp000 = gnppc/1000 (5 missing values generated)
& }5 Z; F1 C% R$ C# w! e# c. label var gnp000 "人均GNP, 千元"
3 @6 c3 {0 L9 L- `. label var lexp "出生期望寿命"
" {% E% r8 Z- j' P. V& K. 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); 7 ~0 Q! l/ \6 e( Q4 j
end of do-file r(198); . ; o4 d( @0 ~, M" m) f u
另外原来图中的颜色1种是红色,1种是蓝色,现在全变成黑色和白色。 . do "c:\data\test4"
1 A+ ]! Z/ u9 z( S$ o. c7 p' v$ P. sysuse census, clear (1980 Census data by state)
& c/ K- g0 r9 d. gen drate = divorce / pop18p / w1 ^5 i& B* A
. label var drate "离婚率"
t3 h& E L0 R. Y8 Q3 E. 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 , l) G" j( a: \+ m
. end of do-file
) T2 {$ N3 y. a& H5 P% @! f设置version 6也无济于事 . use "C:\DATA\ex1.dta", clear 3 x% t' K% ^ B2 n; U# p0 Y
. version 6
5 O6 E* I7 b0 M5 U: h3 I6 q. graph x 0 X% `9 E9 L# \, I' E- m( \
. 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
Q+ n9 @( K2 ?: r) T另外,汉字在输出窗口能显示,但是选择的时候就变成乱码。
|