I would like to plot stacked bars with white outlines in Stata 18, but I have not been able to do it without having an extra outline showing up.
This outermost border is very thin yet noticeable (how clearly you see it depends on the colors used in the fill and the border, and the format used to export the plot).
Here's an example (run using Windows):

If my reading of this previous topic is correct, this is an unintended consequence of drawing outlines using inside stroke alignment, as adopted since Stata 15. The proposed workaround for histograms is to space out the bars conveniently. Unfortunately, that does not solve the problem with stacked bars.
Would there be an alternative approach to avoid the extra lines in stacked bars?
This outermost border is very thin yet noticeable (how clearly you see it depends on the colors used in the fill and the border, and the format used to export the plot).
Here's an example (run using Windows):
Code:
sysuse auto.dta graph bar, over(foreign) asyvar stack bar(1, lwidth(vthick) lcolor(white)) bar(2, lwidth(vthick) lcolor(white)) xsize(3)
If my reading of this previous topic is correct, this is an unintended consequence of drawing outlines using inside stroke alignment, as adopted since Stata 15. The proposed workaround for histograms is to space out the bars conveniently. Unfortunately, that does not solve the problem with stacked bars.
Would there be an alternative approach to avoid the extra lines in stacked bars?
Comment