-----------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/yangyanjun/Desktop/exchangerate/提交版本/logs/graphs_log.txt
  log type:  text
 opened on:  26 Jul 2025, 16:20:36

.   do "$dofiles/graphs.do"

. * ================================================
. *-  graphs
. * ================================================
. 
.   display "开始绘制图形..."
开始绘制图形...

. 
. **#B.附录图A1 不同年份下 HHI 核密度图               
. /*------------------------------------------------------------------------------
>  * 附录图A1.不同年份下 HHI 核密度图         
>  *------------------------------------------------------------------------------*/      
. 
.   use "$W/赫芬达尔指数_hs4.dta", clear 

.   replace hhi_hs4 = hhi_hs4/10000       
(15,798 real changes made)

.   rename hhi_hs4 hhi

.   kdensity hhi if year==2000, ///
>     lpattern(dash) lcolor(blue) lwidth(medium) ///
>     addplot(kdensity hhi if year==2013, lpattern(solid) lcolor(red) lwidth(medium)) ///
>     xlabel(0(0.2)1, format(%3.1f)) ///
>     ylabel(0(2)8, format(%2.0f)) ///
>     ytitle("Density") ///
>     xtitle("HHI") ///
>     title("Kernel density estimate") ///
>     legend(order(1 "Kernel Density HHI 2000" 2 "Kernel Density HHI 2013") ///
>            position(6) cols(2) size(medium) ///
>            region(lcolor(white) fcolor(white)) ///
>            bmargin(zero)) ///
>     graphregion(color(white)) ///
>     plotregion(color(white)) ///
>     scheme(s1mono) ///
>     note("")

. 
.   graph save "$G/graph_A1.gph", replace
file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_A1.gph saved

.   graph use "$G/graph_A1.gph"

.   graph export "$G/graph_A1.png", replace       
file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_A1.png saved as PNG format

. 
. **#C.附录图A2 箱体图      
. /*------------------------------------------------------------------------------
>  * 附录图A2.箱体图        
>  *------------------------------------------------------------------------------*/      
. 
.   use "$W/赫芬达尔指数_hs4.dta",clear 

.   replace hhi_hs4= hhi_hs4/10000
(15,798 real changes made)

.   graph box hhi_hs4, over(year) nooutsides ///
>     ylabel(, format(%3.1f) nogrid) ///
>     ytitle("HHI (基于HS4计算)", size(medium)) ///
>     box(1, fcolor(gs10) lcolor(black)) ///
>     medline(lcolor(black)) ///
>     graphregion(color(white)) ///
>     plotregion(color(white)) ///
>     scheme(s1mono) ///
>     note("") ///
>     name(g1, replace)

. 
.   use "$W/赫芬达尔指数_hs6.dta",clear

.   replace hhi_hs6= hhi_hs6/10000
(61,651 real changes made)

.   graph box hhi_hs6, over(year) nooutsides ///
>     ylabel(, format(%3.1f) nogrid) ///
>     ytitle("HHI (基于HS6计算)", size(medium)) ///
>     box(1, fcolor(gs10) lcolor(black)) ///
>     medline(lcolor(black)) ///
>     graphregion(color(white)) ///
>     plotregion(color(white)) ///
>     scheme(s1mono) ///
>     note("") ///
>     name(g2, replace)

. 
.   graph combine g1 g2, rows(2) ///
>     graphregion(color(white)) ///
>     plotregion(color(white)) ///
>     imargin(small) ///
>     scheme(s1mono)

. 
.   graph save "$G/graph_A2.gph", replace
file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_A2.gph saved

.   graph use "$G/graph_A2.gph"

.   graph export "$G/graph_A2.png", replace
file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_A2.png saved as PNG format

.   
.   
. **#D.图1 不同 HHI 分位点下的汇率传递                
. /*------------------------------------------------------------------------------
>  * 图1.不同 HHI 分位点下的汇率传递          
>  *------------------------------------------------------------------------------*/      
. 
.   use "$W/赫芬达尔指数_hs4.dta",clear 

.   replace hhi_hs4= hhi_hs4/10000
(15,798 real changes made)

.   centile hhi_hs4, centile(5(5)95)

                                                          Binom. interp.   
    Variable |       Obs  Percentile    Centile        [95% conf. interval]
-------------+-------------------------------------------------------------
     hhi_hs4 |    15,798          5    .0075983        .0072657    .0080158
             |                   10    .0151595        .0144607    .0159303
             |                   15    .0234904        .0225559    .0246206
             |                   20    .0322226        .0309992    .0334398
             |                   25    .0414143        .0400081    .0424943
             |                   30     .051631        .0500002    .0531969
             |                   35    .0625993        .0609196    .0642407
             |                   40    .0740794        .0722364     .075963
             |                   45    .0879506         .085486    .0902761
             |                   50    .1043649         .101556    .1072131
             |                   55     .124146        .1210565    .1278504
             |                   60    .1456615        .1422855    .1495999
             |                   65    .1718095        .1678003    .1762045
             |                   70     .203345        .1985616    .2077115
             |                   75    .2420841        .2354813    .2481242
             |                   80    .2901274        .2845479    .2974092
             |                   85    .3549717        .3464064    .3633668
             |                   90    .4707452        .4589309    .4852619
             |                   95    .7059213        .6773561    .7291414

.   
.   clear

.   set obs 19
Number of observations (_N) was 0, now 19.

.   gen percentile = .
(19 missing values generated)

.   gen hhi_value = .
(19 missing values generated)

.   gen passthrough = .
(19 missing values generated)

. 
.   local j = 1

.   forvalues p = 5(5)95 {
  2.     replace percentile = `p' in `j'
  3.     replace hhi_value = r(c_`j') in `j'
  4.     replace passthrough = 0.238 - 0.414 * r(c_`j') in `j'
  5.     local j = `j' + 1
  6.   }
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)

. 
.   twoway (line passthrough percentile, lcolor(black) lwidth(medium)) ///
>        (scatter passthrough percentile, mcolor(black) msize(small) msymbol(circle)), ///
>     xlabel(0(20)100, format(%2.0f)) ///
>     ylabel(0(0.1)0.3, format(%3.1f)) ///
>     xtitle("分位点") ///
>     ytitle("汇""率""传""递", orientation(horizontal)) ///
>     graphregion(color(white)) ///
>     plotregion(color(white)) ///
>     scheme(s1mono) ///
>     legend(off)

.   
.   graph save "$G/graph_1.gph", replace
file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_1.gph saved

.   graph use "$G/graph_1.gph"

.   graph export "$G/graph_1.png", replace
file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_1.png saved as PNG format

. 
. 
. **#D.图2 不同年份下的汇率传递                
. /*------------------------------------------------------------------------------
>  * 图2.不同年份下的汇率传递          
>  *------------------------------------------------------------------------------*/              
. 
.   use "$W/赫芬达尔指数_hs4.dta", clear

.   replace hhi_hs4 = hhi_hs4/10000  // 如果需要标准化
(15,798 real changes made)

.   collapse (mean) mean_hhi_hs4=hhi_hs4, by(year) fast

.   tempfile hs4_mean

.   save `hs4_mean'
file /var/folders/4g/62xllx0n0zs7k0pzyh0t_gf80000gn/T//S_08040.000001 saved as .dta format

.   use "$W/赫芬达尔指数_hs6.dta", clear

.   replace hhi_hs6 = hhi_hs6/10000  // 如果需要标准化
(61,651 real changes made)

.   collapse (mean) mean_hhi_hs6=hhi_hs6, by(year) fast

.   merge 1:1 year using `hs4_mean'

    Result                      Number of obs
    -----------------------------------------
    Not matched                             0
    Matched                                14  (_merge==3)
    -----------------------------------------

.   drop _merge

.   gen pt4 = 0.238 - 0.414 * mean_hhi_hs4  // HS4的汇率传递

.   gen pt6 = 0.243 - 0.237 * mean_hhi_hs6  // HS6的汇率传递

. 
.   #delimit ;
delimiter now ;
.    twoway (connected pt4 year, mcolor(black) lcolor(black) lpattern(solid) msymbol(O) mfcolor(black
> ) mlcolor(black) yaxis(1)) 
>           (connected pt6 year, mcolor(red) lcolor(red) lpattern(solid) msymbol(O) mfcolor(red) mlco
> lor(red) yaxis(1)) 
>           (connected mean_hhi_hs4 year, mcolor(black) lcolor(black) lpattern(dash) msymbol(T) mfcol
> or(white) mlcolor(black) yaxis(2))
>           (connected mean_hhi_hs6 year, mcolor(red) lcolor(red) lpattern(dash) msymbol(T) mfcolor(w
> hite) mlcolor(red) yaxis(2)), 
>           graphregion(color(white)) plotregion(color(white))
>           xtitle("年份") 
>           xlabel(2000(2)2012, format(%4.0f)) 
>           ylabel(0.14(0.02)0.2, axis(1) format(%4.2f)) 
>           ylabel(0.15(0.05)0.35, axis(2) format(%4.2f))
>           ytitle("汇""率""传""递", orientation(horizontal) axis(1)) 
>           ytitle("HHI", orientation(horizontal) axis(2))  
>           legend(label(1 "汇率传递(基于4位HS码)") 
>                  label(2 "汇率传递(基于6位HS码)")
>                  label(3 "4位HS码下平均HHI")
>                  label(4 "6位HS码下平均HHI")
>           position(6) cols(2)
>           region(lstyle(none)))
>           scheme(s1mono);

.   #delimit cr
delimiter now cr
.   graph save "$G/graph_2.gph", replace
file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_2.gph saved

.   graph use "$G/graph_2.gph"

.   graph export "$G/graph_2.png", replace
file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_2.png saved as PNG format

. 
. 
. **#D.图3 不同行业下的汇率传递
. /*------------------------------------------------------------------------------
>  * 图3.不同行业下的汇率传递  
>  *------------------------------------------------------------------------------*/                 
>      
.   /*8802 航空器
>     8542 电子集成电路和微组件
>     7102 钻石
>     9013 时钟
>     5101 羊毛
>     8406 涡轮机
>     4906 平面图和图纸
>     4016 硫化橡胶制品
>     3104 钾肥*/
. 
.   use "$W/赫芬达尔指数_hs4.dta", clear 

.   replace hhi_hs4=hhi_hs4/10000
(15,798 real changes made)

.   gen erpt = 0.238 - 0.414 * hhi_hs4

.   keep if inlist(hs4, "8802", "8542", "7102", "9013", "5101", "8406", "4906", "4016", "3104")  
(15,672 observations deleted)

.   encode hs4, gen (id)

.   xtset id year

Panel variable: id (strongly balanced)
 Time variable: year, 2000 to 2013
         Delta: 1 unit

. 
.   *1.航空器
.   #delimit ;
delimiter now ;
.     twoway (connected erpt year, mcolor(black) lcolor(black) msymbol(O) msize(*0.2) lwidth(thin) ya
> xis(1)) 
>            (connected hhi_hs4 year, mcolor(gs12) lcolor(gs12) lp(dash) msymbol(T) msize(vsmall) lwi
> dth(vthin) yaxis(2)) if hs4 == "8802",
>       graphregion(color(white)) plotregion(color(white))
>       xtitle("年份", size(vsmall)) 
>       xlabel(2000(4)2012, labsize(vsmall) nogrid) 
>       ylabel(, axis(1) labsize(vsmall) nogrid) 
>       ylabel(, axis(2) labsize(vsmall) nogrid)
>       title("航空器", size(small))
>       ytitle("汇""率""传""递" ,orientation(horizontal) axis(1) size(vsmall)) 
>       ytitle("HHI", orientation(horizontal) axis(2) size(vsmall))  
>       legend(off)
>       scheme(s1color);

.   #delimit cr   
delimiter now cr
.   graph save "$G/graph_行业1.gph", replace
(file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_行业1.gph not found)
file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_行业1.gph saved

. 
.   *2.集成电路
.   #delimit ;
delimiter now ;
.   twoway (connected erpt year, mcolor(black) lcolor(black) msymbol(O) msize(*0.2) lwidth(thin) yaxi
> s(1)) 
>          (connected hhi_hs4 year, mcolor(gs12) lcolor(gs12) lp(dash) msymbol(T) msize(vsmall) lwidt
> h(vthin) yaxis(2)) if hs4 == "8542",
>       graphregion(color(white)) plotregion(color(white))
>       xtitle("年份", size(vsmall)) 
>       xlabel(2000(4)2012, labsize(vsmall) nogrid) 
>       ylabel(, axis(1) labsize(vsmall) nogrid) 
>       ylabel(0.003(0.001)0.006, axis(2) labsize(vsmall) nogrid format(%5.3f))
>       title("集成电路", size(small))
>       ytitle("汇""率""传""递" ,orientation(horizontal) axis(1) size(vsmall)) 
>       ytitle("HHI", orientation(horizontal) axis(2) size(vsmall))  
>       legend(off)
>       scheme(s1color);

.   #delimit cr   
delimiter now cr
.   graph save "$G/graph_行业2.gph", replace
(file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_行业2.gph not found)
file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_行业2.gph saved

. 
.   *3.钻石
.   #delimit ;
delimiter now ;
.     twoway (connected erpt year, mcolor(black) lcolor(black) msymbol(O) msize(*0.2) lwidth(thin) ya
> xis(1)) 
>            (connected hhi_hs4 year, mcolor(gs12) lcolor(gs12) lp(dash) msymbol(T) msize(vsmall) lwi
> dth(vthin) yaxis(2)) if hs4 == "7102",
>       graphregion(color(white)) plotregion(color(white))
>       xtitle("年份", size(vsmall)) 
>       xlabel(2000(4)2012, labsize(vsmall) nogrid) 
>       ylabel(, axis(1) labsize(vsmall) nogrid) 
>       ylabel(, axis(2) labsize(vsmall) nogrid)
>       title("钻石", size(small))
>       ytitle("汇""率""传""递" ,orientation(horizontal) axis(1) size(vsmall)) 
>       ytitle("HHI", orientation(horizontal) axis(2) size(vsmall))  
>       legend(off)
>       scheme(s1color);

.   #delimit cr   
delimiter now cr
.   graph save "$G/graph_行业3.gph", replace
(file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_行业3.gph not found)
file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_行业3.gph saved

. 
.   *4.时钟
.   #delimit ;
delimiter now ;
.   twoway (connected erpt year, mcolor(black) lcolor(black) msymbol(O) msize(*0.2) lwidth(thin) yaxi
> s(1)) 
>          (connected hhi_hs4 year, mcolor(gs12) lcolor(gs12) lp(dash) msymbol(T) msize(vsmall) lwidt
> h(vthin) yaxis(2)) if hs4 == "9013",
>       graphregion(color(white)) plotregion(color(white))
>       xtitle("年份", size(vsmall)) 
>       xlabel(2000(4)2012, labsize(vsmall) nogrid) 
>       ylabel(, axis(1) labsize(vsmall) nogrid) 
>       ylabel(, axis(2) labsize(vsmall) nogrid)
>       title("时钟", size(small))
>       ytitle("汇""率""传""递" ,orientation(horizontal) axis(1) size(vsmall)) 
>       ytitle("HHI", orientation(horizontal) axis(2) size(vsmall))  
>       legend(off)
>       scheme(s1color);

.   #delimit cr   
delimiter now cr
.   graph save "$G/graph_行业4.gph", replace
(file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_行业4.gph not found)
file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_行业4.gph saved

. 
.   *5.羊毛
.   #delimit ;
delimiter now ;
.     twoway (connected erpt year, mcolor(black) lcolor(black) msymbol(O) msize(*0.2) lwidth(thin) ya
> xis(1)) 
>            (connected hhi_hs4 year, mcolor(gs12) lcolor(gs12) lp(dash) msymbol(T) msize(vsmall) lwi
> dth(vthin) yaxis(2)) if hs4 == "5101",
>       graphregion(color(white)) plotregion(color(white))
>       xtitle("年份", size(vsmall)) 
>       xlabel(2000(4)2012, labsize(vsmall) nogrid) 
>       ylabel(, axis(1) labsize(vsmall) nogrid) 
>       ylabel(, axis(2) labsize(vsmall) nogrid)
>       title("羊毛", size(small))
>       ytitle("汇""率""传""递" ,orientation(horizontal) axis(1) size(vsmall)) 
>       ytitle("HHI", orientation(horizontal) axis(2) size(vsmall))  
>       legend(off)
>       scheme(s1color);

.   #delimit cr   
delimiter now cr
.   graph save "$G/graph_行业5.gph", replace
(file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_行业5.gph not found)
file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_行业5.gph saved

. 
.   *6.涡轮机
.   #delimit ;
delimiter now ;
.     twoway (connected erpt year, mcolor(black) lcolor(black) msymbol(O) msize(*0.2) lwidth(thin) ya
> xis(1)) 
>            (connected hhi_hs4 year, mcolor(gs12) lcolor(gs12) lp(dash) msymbol(T) msize(vsmall) lwi
> dth(vthin) yaxis(2)) if hs4 == "8406",
>       graphregion(color(white)) plotregion(color(white))
>       xtitle("年份", size(vsmall)) 
>       xlabel(2000(4)2012, labsize(vsmall) nogrid) 
>       ylabel(, axis(1) labsize(vsmall) nogrid) 
>       ylabel(, axis(2) labsize(vsmall) nogrid)
>       title("涡轮机", size(small))
>       ytitle("汇""率""传""递",orientation(horizontal) axis(1) size(vsmall)) 
>       ytitle("HHI", orientation(horizontal) axis(2) size(vsmall))  
>       legend(off)
>       scheme(s1color);

.   #delimit cr   
delimiter now cr
.   graph save "$G/graph_行业6.gph", replace
(file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_行业6.gph not found)
file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_行业6.gph saved

. 
.   *7.图纸
.   #delimit ;
delimiter now ;
.     twoway (connected erpt year, mcolor(black) lcolor(black) msymbol(O) msize(*0.2) lwidth(thin) ya
> xis(1)) 
>            (connected hhi_hs4 year, mcolor(gs12) lcolor(gs12) lp(dash) msymbol(T) msize(vsmall) lwi
> dth(vthin) yaxis(2)) if hs4 == "4906",
>       graphregion(color(white)) plotregion(color(white))
>       xtitle("年份", size(vsmall)) 
>       xlabel(2000(4)2012, labsize(vsmall) nogrid) 
>       ylabel(, axis(1) labsize(vsmall) nogrid) 
>       ylabel(, axis(2) labsize(vsmall) nogrid)
>       title("图纸", size(small))
>       ytitle("汇""率""传""递" ,orientation(horizontal) axis(1) size(vsmall)) 
>       ytitle("HHI", orientation(horizontal) axis(2) size(vsmall))  
>       legend(off)
>       scheme(s1color);

.   #delimit cr   
delimiter now cr
.   graph save "$G/graph_行业7.gph", replace
(file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_行业7.gph not found)
file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_行业7.gph saved

. 
.   *8.硫化橡胶制品
.   #delimit ;
delimiter now ;
.     twoway (connected erpt year, mcolor(black) lcolor(black) msymbol(O) msize(*0.2) lwidth(thin) ya
> xis(1)) 
>            (connected hhi_hs4 year, mcolor(gs12) lcolor(gs12) lp(dash) msymbol(T) msize(vsmall) lwi
> dth(vthin) yaxis(2)) if hs4 == "4016",
>       graphregion(color(white)) plotregion(color(white))
>       xtitle("年份", size(vsmall)) 
>       xlabel(2000(4)2012, labsize(vsmall) nogrid) 
>       ylabel(, axis(1) labsize(vsmall) nogrid) 
>       ylabel(, axis(2) labsize(vsmall) nogrid)
>       title("硫化橡胶制品", size(small))
>       ytitle("汇""率""传""递" ,orientation(horizontal) axis(1) size(vsmall)) 
>       ytitle("HHI", orientation(horizontal) axis(2) size(vsmall))  
>       legend(off)
>       scheme(s1color);

.   #delimit cr   
delimiter now cr
.   graph save "$G/graph_行业8.gph", replace
(file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_行业8.gph not found)
file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_行业8.gph saved

. 
.   *9.钾肥（保留图例用于整体图例）
.   #delimit ;
delimiter now ;
.     twoway (connected erpt year, mcolor(black) lcolor(black) msymbol(O) msize(*0.2) lwidth(thin) ya
> xis(1)) 
>            (connected hhi_hs4 year, mcolor(gs12) lcolor(gs12) lp(dash) msymbol(T) msize(vsmall) lwi
> dth(vthin) yaxis(2)) if hs4 == "3104",
>       graphregion(color(white)) plotregion(color(white))
>       xtitle("年份", size(vsmall)) 
>       xlabel(2000(4)2012, labsize(vsmall) nogrid) 
>       ylabel(, axis(1) labsize(vsmall) nogrid) 
>       ylabel(, axis(2) labsize(vsmall) nogrid)
>       title("钾肥", size(small))
>       ytitle("汇""率""传""递" ,orientation(horizontal) axis(1) size(vsmall)) 
>       ytitle("HHI", orientation(horizontal) axis(2) size(vsmall))  
>       legend(label(1 "汇率传递") label(2 "HHI") 
>              size(vsmall) position(6) cols(2) 
>              region(lstyle(none)))
>       scheme(s1color);

.   #delimit cr   
delimiter now cr
.   graph save "$G/graph_行业9.gph", replace
(file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_行业9.gph not found)
file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_行业9.gph saved

. 
.   grc1leg "$G/graph_行业1.gph" "$G/graph_行业2.gph" "$G/graph_行业3.gph" ///
>           "$G/graph_行业4.gph" "$G/graph_行业5.gph" "$G/graph_行业6.gph" ///
>           "$G/graph_行业7.gph" "$G/graph_行业8.gph" "$G/graph_行业9.gph", ///
>         row(3) legendfrom("$G/graph_行业9.gph") ///
>         graphregion(color(white)) imargin(tiny)

. 
.   graph save "$G/graph_3.gph", replace
file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_3.gph saved

.   graph use "$G/graph_3.gph"

.   graph export "$G/graph_3.png", replace
file /Users/yangyanjun/Desktop/exchangerate/提交版本/graphs/graph_3.png saved as PNG format

.   forvalues i = 1/9 {
  2.     erase "$G/graph_行业`i'.gph"
  3.   }

.   
.   display "图形绘制模块完成"
图形绘制模块完成

.   
. 
end of do-file

.   log close
      name:  <unnamed>
       log:  /Users/yangyanjun/Desktop/exchangerate/提交版本/logs/graphs_log.txt
  log type:  text
 closed on:  26 Jul 2025, 16:21:01
-----------------------------------------------------------------------------------------------------
