diff --git a/src/recipes.jl b/src/recipes.jl index 7e12a7b1..3637cc6a 100644 --- a/src/recipes.jl +++ b/src/recipes.jl @@ -537,14 +537,19 @@ end @recipe function f(::Type{Val{:scatterbins}}, x, y, z) edge, weights, xscale, yscale, baseline = _preprocess_binlike(plotattributes, x, y) - xerror := diff(edge) / 2 + @series begin + x := _bin_centers(edge) + xerror := diff(edge) / 2 + primary := false + seriestype := :xerror + () + end x := _bin_centers(edge) y := weights seriestype := :scatter () end -@deps scatterbins scatter - +@deps scatterbins xerror scatter function _stepbins_path( edge,