Drawing a median line in a histogram in Makie

The actual limits are in ax.finallimits. I usually prefer to do ylims!(low = 0) anyway with barplots if they show only positive values, in which case vlines would be ok. If you plot a line manually and don’t want it to change the limits itself, you should be able to set yautolimits = false as an attribute.

1 Like