Can't get marginal plot to work

One could also replace the right-block in the OP’s recipe by:

    seriestype := :shape
    linecolor := :red
    # right
    @series begin
        subplot := 3
        [my; reverse(my)], [y; reverse(y)]
    end

and the output looks alright: