heliosdrm / GRUtils.jl

Tools for using the GR framework in Julia
Other
31 stars 6 forks source link

Errorbars appearing behind barplot #111

Closed mkschleg closed 2 years ago

mkschleg commented 2 years ago

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

mkschleg commented 2 years ago

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