Dear Users,
I am trying to define my graph box (line colour, maker size, etc), also change the colour and size of the subtitle box, which should match with the height of plot region's height. I am using the following code:

Does anybody have a suggestion?
Thanking in advance,
Milen
I am trying to define my graph box (line colour, maker size, etc), also change the colour and size of the subtitle box, which should match with the height of plot region's height. I am using the following code:
I have not found why the "configuration" is not picked by the code (see: the picture attached)
import delimited anomalias_ejemplo_div3.csv, clear
generate period = "20s" if anyo <= 2040 & anyo >= 2010
replace period = "50s" if anyo <= 2070 & anyo >= 2041
replace period = "80s" if anyo <= 2100 & anyo >= 2071
graph box sta1_45, over(period, label(labsize(vsmall))) box(1, fcolor(purple) fintensity(inten20) lcolor(purple)) marker(1, mcolor(black) msize(tiny)) box(2, fcolor(green) fintensity(inten20) lcolor(green)) box(3, fcolor(blue) fintensity(inten20) lcolor(blue)) ylabel(,ang(hor) labsize(small) glcolor(white)) ytitle("{stMono: }", size(vsmall)) legend(symxsize(4) size(vsmall) row(1) ) plotr(c(gs12%15)) graphr(c(white)) asyvars title("{stMono:sta1 }", box bexpand) name(sta1_45, replace) saving(sta1_45, replace)
graph box sta2_45, over(period, label(labsize(vsmall))) box(1, fcolor(purple) fintensity(inten20) lcolor(purple)) marker(1, mcolor(black) msize(tiny)) box(2, fcolor(green) fintensity(inten20) lcolor(green)) box(3, fcolor(blue) fintensity(inten20) lcolor(blue)) ylabel(,ang(hor) labsize(small) glcolor(white)) ytitle("{stMono: }", size(vsmall)) legend(symxsize(4) size(vsmall) row(1) ) plotr(c(gs12%15)) graphr(c(white)) asyvars title("{stMono:sta2 }", box bexpand) name(sta2_45, replace) saving(sta2_45, replace)
graph box sta3_45, over(period, label(labsize(vsmall))) box(1, fcolor(purple) fintensity(inten20) lcolor(purple)) marker(1, mcolor(black) msize(tiny)) box(2, fcolor(green) fintensity(inten20) lcolor(green)) box(3, fcolor(blue) fintensity(inten20) lcolor(blue)) ylabel(,ang(hor) labsize(small) glcolor(white)) ytitle("{stMono: }", size(vsmall)) legend(symxsize(4) size(vsmall) row(1) ) plotr(c(gs12%15)) graphr(c(white)) asyvars title("{stMono:sta3 }", box bexpand) name(sta3_45, replace) saving(sta3_45, replace)
graph box sta4_45, over(period, label(labsize(vsmall))) box(1, fcolor(purple) fintensity(inten20) lcolor(purple)) marker(1, mcolor(black) msize(tiny)) box(2, fcolor(green) fintensity(inten20) lcolor(green)) box(3, fcolor(blue) fintensity(inten20) lcolor(blue)) ylabel(,ang(hor) labsize(small) glcolor(white)) ytitle("{stMono: }", size(vsmall)) legend(symxsize(4) size(vsmall) row(1) ) plotr(c(gs12%15)) graphr(c(white)) asyvars title("{stMono:sta4}", box bexpand) subtitle({stMono:Expe 1}, box bexpand size(small) ring(3) position(3) orientation(vertical) bmargin(8) span margin(left) alignment(middle) justification(center)) name(sta4_45, replace) saving(sta4_45, replace)
grc1leg sta1_45.gph sta2_45.gph sta3_45.gph sta4_45.gph , row(1) ycommon name(s45_total, replace) saving(s45_total, replace) ///
imargin(0 0 0 0) ysize(2) xsize(3) graphregion(c(white)) legendfrom(sta1_45.gph) pos(6)
graph box sta1_85, over(period, label(labsize(vsmall))) box(1, fcolor(purple) fintensity(inten20) lcolor(purple)) marker(1, mcolor(black) msize(tiny)) box(2, fcolor(green) fintensity(inten20) lcolor(green)) box(3, fcolor(blue) fintensity(inten20) lcolor(blue)) ylabel(,ang(hor) labsize(small) glcolor(white)) ytitle("{stMono: }", size(vsmall)) legend(symxsize(4) size(vsmall) row(1) ) plotr(c(gs12%15)) graphr(c(white)) name(sta1_85, replace) saving(sta1_85, replace)
graph box sta2_85, over(period, label(labsize(vsmall))) box(1, fcolor(purple) fintensity(inten20) lcolor(purple)) marker(1, mcolor(black) msize(tiny)) box(2, fcolor(green) fintensity(inten20) lcolor(green)) box(3, fcolor(blue) fintensity(inten20) lcolor(blue)) ylabel(,ang(hor) labsize(small) glcolor(white)) ytitle("{stMono: }", size(vsmall)) legend(symxsize(4) size(vsmall) row(1) ) plotr(c(gs12%15)) graphr(c(white)) name(sta2_85, replace) saving(sta2_85, replace)
graph box sta3_85, over(period, label(labsize(vsmall))) box(1, fcolor(purple) fintensity(inten20) lcolor(purple)) marker(1, mcolor(black) msize(tiny)) box(2, fcolor(green) fintensity(inten20) lcolor(green)) box(3, fcolor(blue) fintensity(inten20) lcolor(blue)) ylabel(,ang(hor) labsize(small) glcolor(white)) ytitle("{stMono: }", size(vsmall)) legend(symxsize(4) size(vsmall) row(1) ) plotr(c(gs12%15)) graphr(c(white)) name(sta3_85, replace) saving(sta3_85, replace)
graph box sta4_85, over(period, label(labsize(vsmall))) box(1, fcolor(purple) fintensity(inten20) lcolor(purple)) marker(1, mcolor(black) msize(tiny)) box(2, fcolor(green) fintensity(inten20) lcolor(green)) box(3, fcolor(blue) fintensity(inten20) lcolor(blue)) ylabel(,ang(hor) labsize(small) glcolor(white)) ytitle("{stMono: }", size(vsmall)) legend(symxsize(4) size(vsmall) row(1) ) plotr(c(gs12%15)) graphr(c(white)) subtitle({stMono:Expe 2}, box bexpand size(small) ring(3) position(3) orientation(vertical) span margin(left) justification(center)) name(sta4_85, replace) saving(sta4_85, replace)
grc1leg sta1_85.gph sta2_85.gph sta3_85.gph sta4_85.gph , row(1) subtitle("{stMono:}") ycommon name(s85_total, replace) saving(s85_total, replace) ///
imargin(0 0 0 0) ysize(2) xsize(3) graphregion(c(white)) legendfrom(sta1_85.gph) pos(6)
grc1leg s45_total.gph s85_total.gph, row(2) subtitle({stMono:Change in temperature}, size(small) position(9) orientation(vertical) span margin(left) justification(center)) ycommon ///
imargin(0 0 0 0) ysize(2) xsize(3) graphregion(c(white))
Does anybody have a suggestion?
Thanking in advance,
Milen
Comment