heliosdrm / GRUtils.jl

Tools for using the GR framework in Julia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Errorbars appearing behind barplot

mkschleg opened this issue · comments

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:

Screen Shot 2022-01-28 at 1 06 07 PM

Nvm. I'm dumb, the error bars are the same color as the fill but they looked black to me for some reason.