| stata8.2画图出现异常,有谁遇到过同样问题么" i" X: m8 U# G) W3 ^- m安装了stata8.0,然后用8.2的exe覆盖
 born jan 10 2005
 画图出现异常,有些8.0支持的命令不支持了,设置version 8.0也无济于事。
 . version 8
 . do "c:\data\test6"4 {: G$ a3 s7 h3 O  C . sysuse uslifeexp, clear% M- ~! F1 q/ p3 A(U.S. life expectancy, 1900-1999)
 . gen diff = le_wm - le_bm / U$ t. G5 G- T7 `) u+ M9 { . label var diff "Difference"0 \& Z( a8 s  Q6 @  D . ; d+ S& q& M: X) l: n0 _2 _+ h+ 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);
 end of do-file! u9 p. w" Y7 ]2 Dr(198);
 . do "c:\data\test2") }# x3 U) B* A' r5 l2 I . sysuse lifeexp, clear5 l) K; i  z: }0 o) E+ ?(Life expectancy, 1998)
 . gen gnp000 = gnppc/1000' z3 _. j, T) }5 y( x5 w(5 missing values generated)
 . label var gnp000 "人均GNP, 千元"* ]7 i  |! @5 o3 X$ i . label var lexp "出生期望寿命": B5 A  r8 y, w9 I! r0 ]! G% R6 a/ v9 d . scatter lexp gnp000, xsca(log) xlabel(.5 2.5 10(10)40, grid)* \" @. [- D) `* ~! ]0 z) h: Pinvalid label specifier, :  .5 2.5 10(10)40:
 invalid syntax
 invalid syntax
 r(198);
 end of do-file/ N) w/ l9 O7 {8 |r(198);
 .
 另外原来图中的颜色1种是红色,1种是蓝色,现在全变成黑色和白色。7 Y1 }- X" \- |$ o! |( H. do "c:\data\test4"
 . sysuse census, clear) h, c6 F) H) A% E% _1 o(1980 Census data by state)
 . gen drate = divorce / pop18p 6 h9 ?0 x# s; i3 m . label var drate "离婚率"" p% q! D+ o/ A* S/ k . scatter drate medage [w=pop18p] if state!="Nevada", msymbol(Oh)   note("Stat1 w" T4 @  G* v0 j, P/ W( R> 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
 . 7 e6 ]! A5 t. a0 h7 Dend of do-file
 设置version 6也无济于事$ K# Y4 g5 J* L, H5 A. use "C:\DATA\ex1.dta", clear
 . version 6# k0 h, _2 f0 ? . graph xp& J- `- H2 d . line x  y0 [; p! F" D0 w- A+ O+ e(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
 另外,汉字在输出窗口能显示,但是选择的时候就变成乱码。
 |