Hello,
I have a little problem which I could not solve yet: when creating a graph with the twoway command, Stata (version 11.2) adds a random line at the bottom of my graph when I copy the graph into Word 2010 (as Windows Enhanced Metafile). The line appears about 5cm below the legend. The line is not displayed in the Stata output window; only when I copy and paste the graph into Word. This is what I got:
When I use a pretty similar code, without a legend, I do not encounter a problem. This would be the other code (without a random line).
Maybe you have an idea...
Thank you!
Best
I have a little problem which I could not solve yet: when creating a graph with the twoway command, Stata (version 11.2) adds a random line at the bottom of my graph when I copy the graph into Word 2010 (as Windows Enhanced Metafile). The line appears about 5cm below the legend. The line is not displayed in the Stata output window; only when I copy and paste the graph into Word. This is what I got:
Code:
twoway scatter average_x year, msymbol(smdiamond) mlcolor(black) mfcolor(white) /// msize(medium) connect(l) clcolor(black) clwidth(medthick) || /// scatter average_y year, msymbol(smdiamond) mlcolor(gs10) mfcolor(white) /// msize(medium) connect(l) clcolor(gs10) clwidth(medthick) /// xline(1997, lcolor(gs10) lpattern(dash) lwidth(thin)) /// yline(0, lcolor(black) lwidth(thin)) /// xlabel(#8) graphregion(color(white)) bgcolor(white) /// xscale(titlegap(2)) /// ytitle("Comparison Averages") /// legend(label(1 "Average X") label(2 "Average Y")) /// ylabel(4[1]9,format(%9.1fc) glcolor(gs15)) /// yscale(titlegap(2) range(4 9))
Code:
twoway scatter difference year, msymbol(smdiamond) mlcolor(black) mfcolor(white) /// msize(medium) connect(l) clcolor(black) clwidth(medthick) || /// line limit year, lcolor(gs10) lwidth(medthick) /// xline(1997, lcolor(gs10) lpattern(dash) lwidth(thin)) /// yline(0, lcolor(black) lwidth(thin)) /// xlabel(#8) graphregion(color(white)) bgcolor(white) /// xscale(titlegap(2)) /// ytitle("Yearly Difference") legend(off) /// ylabel(-1[1]3,format(%9.1fc) glcolor(gs15)) /// yscale(titlegap(2) range(-1 3))
Thank you!
Best
Comment