如何消除Stata-by()-graph中的模糊边界

如何消除Stata-by()-graph中的模糊边界,graph,stata,Graph,Stata,当我绘制图形时,我通常需要白色背景。 有时问题是要消除“模糊”的边界,通过使用绘图选项来消除它们并不困难 然而,当我用图形绘制一个时,我真的无法摆脱这样的边界。 例如,见: sysuse auto, clear hist mpg, by(foreign, plotregion(fcolor(white)) graphregion(fcolor(white) ifcolor(white) color(white) icolor(white)) bgcolor(white)) 如何消除这两个图周围

当我绘制图形时,我通常需要白色背景。 有时问题是要消除“模糊”的边界,通过使用绘图选项来消除它们并不困难

然而,当我用图形绘制一个
时,我真的无法摆脱这样的边界。
例如,见:

sysuse auto, clear
hist mpg, by(foreign, plotregion(fcolor(white)) graphregion(fcolor(white) ifcolor(white) color(white) icolor(white)) bgcolor(white))
如何消除这两个图周围的线条? 非常感谢您的任何建议

请尝试以下任何一种:

hist mpg, by(foreign, graphregion(color(white) lwidth(large)))
hist mpg, by(foreign, bgcolor(white) graphregion(color(white)))
解释了这背后的逻辑