When I export the following graph to pdf, the legend section is getting distorted. I am using Stata 16. Does anyone have any solutions?
Code:
twoway (histogram speed_notraffic if check==1, by(cityname_corrected, note("")) yla(`labels') color(blue%40) subtitle(, fcolor(white) lstyle(none))) /// (histogram speed_notraffic if check==0, by(cityname_corrected, note("") ixaxes iyaxes imargin(b+5)) yla(`labels') color(yellow%60) subtitle(, fcolor(white) lstyle(none))), /// legend(order(1 "March to June 2020" 2 "March to June 2021" ) region(lstyle(none))) ysize(8) xsize(6) plotregion(lcolor(white)) graph export "${resultsdir}/uncongested/histogram_marchjune2020_marchjune2021_by_city.pdf", replace as(pdf)
Array
Graph display in Adobe as pdf:
Array
0 Response to Issues with legend when exporting graphs as pdf
Post a Comment