I'm using the following code to graph a box plot.
The generated legend has very narrow margin next to the label on the left hand side:

I tried to address this by providing margin(medium) but it messed up the legend as it made top and bottom margins massive. Is there a neat way to control left and right margin in the legend region? I'm using the Burd10 scheme when generating the box plot.
Code:
// Generate the chart graph box varlist, /// over(SomeGroup, sort(1) descending label(labsize(vsmall))) /// nooutsides alsize(40) /// lines(lwidth(thin) lpattern(solid)) /// box(1, lwidth(medthin)) /// box(2, lwidth(medthin)) /// box(3, lwidth(medthin)) /// box(4, lwidth(medthin)) /// ytitle("YTitle", size(small)) /// ylabel(, labsize(vsmall)) /// b1title("XaxisNote", size(small)) /// plotregion(lstyle(none)) /// title("Title", size(medium)) /// subtitle("{it: subtitle}", size(small)) /// note("Outliers are excluded.",size(vsmall)) /// caption("{it: Data Source: Source}", size(vsmall)) /// legend(rows(2) ring(1) size(vsmall) position(6) rowgap(.5) /// region(fcolor(gs14) lcolor(black) margin(medsmall)) symxsize(5)) /// lines(lwidth(vthin)) /// name(name, replace)
I tried to address this by providing margin(medium) but it messed up the legend as it made top and bottom margins massive. Is there a neat way to control left and right margin in the legend region? I'm using the Burd10 scheme when generating the box plot.