This code works fine.
groupedhist(rand(100),xlims=(-1,2),ylims=(-10,40))
but when x/y axis switched, ylims does not change anything.
groupedhist(rand(100),xlims=(-1,2),ylims=(-10,40),permute=(:y,:x))
i tested it on Julia v1.9 with "Plots" v"1.38.11" and "StatsPlots" v"0.15.5", using pyplot backend on win10. This also happens with groupedbar.