Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Blue background on dashed bar graph

    I am trying to produce a graph bar with 2 types of bars - solid and dashed. The dashed comes out with a blue background color which I have not been able to suppress.
    Attached is a magnification of the dashed bar, and the original code.

    Code:
    graph bar (mean) schooling age, /// 
    over(country, label(labsize(*0.8) angle(45)) sort(1) descending) nofill bargap(+10) ///
    ylabel(,labsize(vsmall)) ylab(0(0.1)1, nogrid) ///
    bar(1, fcolor(white) lcolor(black) lpattern(vshortdash)) /// 
    bar(2, fcolor(white) lcolor(black) lpattern(solid))  ///
    blabel(bar, position(inside) format(%9.1f) size(vsmall) color (black) ) ///
    legend( label(1 "Schooling") label(2 "Age") size(vsmall) symysize(0.7) pos(5)) ///
    ytitle("Average Age and Years of Schooling ", size(small) color(black)) ///
    title("Averages of Schooling Years and Age", size(medsmall)) ///
    subtitle("of 12 PIAAC and B&R coutries", size(small) color(black)) ///
    note("", size(vsmall) pos(7)) ///
    graphregion(fcolor(white) lcolor(white) ifcolor(white) ilcolor(white)) ///
    plotregion(fcolor(white) lcolor(white) ifcolor(white) ilcolor(white))
    Click image for larger version

Name:	Screen Shot 2019-02-09 at 17.52.49.png
Views:	1
Size:	28.6 KB
ID:	1482855
    Stata/MP 15.1
Working...
X