Hi
I am trying to make a graph similar to this one:
As you see if you run the code, there is a large gap between the labels of the x-axis and the legend. If I remove the legend, the large space below the xlabel remains. Does anyone know how to remove this extra-space?
Thanks and best wishes,
Thomas
I am trying to make a graph similar to this one:
Code:
sysuse auto, clear gen xvar = _n keep if xvar<7 la def myxlabel 1 "Not very long", replace la def myxlabel 2 "Also short", add la def myxlabel 3 `" "Quite a" "long label" "', add la def myxlabel 4 `" "This one is" "even longer" "', add la def myxlabel 5 `" "Again a very" "very long label" "', add la def myxlabel 6 "Short again", add la val xvar myxlabel twoway scatter trunk xvar || scatter rep78 xvar, xlabel(1(1)6, val angle(90) labsize(medsmall)) xtitle("") legend(order(1 "See space above" 2 "how to remove it?"))
Thanks and best wishes,
Thomas
Comment