Using Stata/SE 16.1 I made two related Figures that should be easily comparable. This means that they should have the same scale. However, one has a y-scale that runs from -20 to 40, and the other from -20 to 100.
Array

Array

So I want to expand the yscale on the first. I added
Code:
ysc(r(-20(20)100))
, but this has no effect whatsoever.
Here is what I did:

Code:
margins, dydx(incumbent) at(share_rd=(0(10)50)) vsquish vce(unconditional)
marginsplot,                                                                                                   ///
        yline(0)                                                                                                  ///
        graphregion(color(white))                                                                          ///
        title("Effect van collegedeelname naar aandeel collegepartijen in raad")        ///
        subtitle("Marginaal effect van collegedeelname op procentuele verandering in aandeel raadszetels", size(small))  ///
        recast(line)                                                                                            ///
        recastci(rarea)                                                                                        ///
        ci1opt(fcolor(midblue%40) lcolor(midblue))                                                ///
        ytitle("Marginaal effect" "met 95% betrouwbaarheidsinterval", size(small))    ///
        ylabel(, labsize(small))                                                                            ///
        ysc(r(-20(20)100))                                                                                    ///
        legend(off)                                                                                              ///
        note("Gecontroleerd voor effect van kabinetsdeelname, aantal collegepartijen en verkiezingsjaar")      ///
        addplot(histogram share_rd if share_rd <=50,                                            ///
           frequency                                                                                           ///
           xtitle("Aandeel collegepartijen in raadszetels (%)", size(small))               ///
           xlabel(, labsize(small))                                                                         ///
           yaxis(2)                                                                                             ///
           ytitle("Aantal waarnemingen (staaf)", axis(2) size(small))                        ///
           ylabel(#6, axis(2) format(%8.0g) labsize(small))                                     ///
           ysc(axis(2) alt)                                                                                    ///
           fcolor(teal%30)                                                                                    ///
           lcolor(teal%30))
Interestingly, if I delete addplot and all code after it, this does work. But then my Figure is not what it should be.
Moving
Code:
ysc(r(-20(20)100))
to the very end of the code, after the last
Code:
)
, does not make a difference.
What do I do wrong? Any help would be greatly appreciated.