Hello everybody,
when trying to put a frame around the plot region of a twoway graph, I realized that the y-axis gridlines lie on top of the right side of the frame. So, I the grid lines have a different color (e.g. grey) than the frame (e.g. black), this does not look very nice - see blue circles in example picture below.
Is there any way to put the gridlines to the background, so they dont overlay the frame around the plotregion?
If there is a thread on statalist already, please redirect me there, because I couldnt find it.
Thanks and kind regards,
Boris
Output:
when trying to put a frame around the plot region of a twoway graph, I realized that the y-axis gridlines lie on top of the right side of the frame. So, I the grid lines have a different color (e.g. grey) than the frame (e.g. black), this does not look very nice - see blue circles in example picture below.
Is there any way to put the gridlines to the background, so they dont overlay the frame around the plotregion?
If there is a thread on statalist already, please redirect me there, because I couldnt find it.
Thanks and kind regards,
Boris
Code:
twoway (scatter freq z, msymbol(o) mcolor(gs10) mlwidth(thin) msize(medium) ) /// (line freq_hat_p1 z if z<0, lcolor(black)) /// p1 pre (line freq_hat_p1 z if z>=0, lcolor(black)) /// p1 post (line freq_hat_p2 z if z<0, lpat(dash) lcolor(black)) /// p2 pre (line freq_hat_p2 z if z>=0, lpat(dash) lcolor(black)) /// p2 post , /// xline(0, lcolor(black) lstyle(grid)) /// xlabel(-72(12)48) /// ylabel(0(10)50) /// legend(off) /// graphregion(color(white)) plotregion(lcolor(black) lwidth(medthin)) /// ytitle("Number of Observations") xtitle("Month of Arrival")
Comment