I have a twoway graph with simple lines (my original graph looks a bit more "complicated" than the one attached) and I would like to have a "border" around the plot region. Basically I just would like to have the black line of the x-axis also on top of the graph and the black line of the y-axis also on the right side.
There is a thread on that question (https://www.statalist.org/forums/for...-to-avoid-that), but the solution proposed there doesn't solve the problem and leads to an ugly graph (see blue circles in the attached graph).
Command for the original graph:
Command based on the proposed solution (changes are bold):
Is there a way to achieve what I want?
There is a thread on that question (https://www.statalist.org/forums/for...-to-avoid-that), but the solution proposed there doesn't solve the problem and leads to an ugly graph (see blue circles in the attached graph).
Command for the original graph:
Code:
twoway /// tsline series1 series2 series3 series4, /// lcolor(cranberry lavender orange black) xlabel(56 215, format(%tq)) ylabel(0.5 1 1.5) xsize(5) ysize(4) graphregion(color(white) margin(5 5 5 5)) /// legend(off) tlabel(1975q1(20)2011q2,grid nolabel) scheme(s2color)
Code:
twoway /// tsline series1 series2 series3 series4, /// lcolor(cranberry lavender orange black) xlabel(56 215, format(%tq)) ylabel(0.5 1 1.5, nogextend) xsize(5) ysize(4) graphregion(color(white) margin(5 5 5 5)) plotregion(lcolor(black)) /// legend(off) tlabel(1975q1(20)2011q2,grid nolabel) scheme(s2color)
Comment