GRUtils: error bars always behind fill in bar plot

I’m trying to combine the errorbar and barplot plots using hold. No matter what order I do this in the error bars always appear under the bar plot fill. Is there any fix for this?

MWE:

using GRUtils
let
	y = rand(10)
	barplot(string.(1:10).*"a", y)
	GRUtils.hold(true)
	f = errorbar(1:10, y, rand(10), "-o")
	GRUtils.hold(false)
	title("ExamplePlot")
end

With a graph that looks like:

I’m trying to get the error bars ontop of the fill, any ideas?

Is it underneath or is it the same color?

Try using different colors:

using GRUtils
y = rand(10)
h = UInt(1)
barplot(string.(1:10).*"a", y, color=0x0000FF)
GRUtils.hold(true)
errorbar(1:10, y, rand(10), "-o", linecolor=0xFF0000)
GRUtils.hold(false)
title("ExamplePlot")

1 Like

:man_facepalming: My brain must have seen them as black for some reason. Thanks!