fix error recipes (#2665)

* fix scatterbins

* fix zerror
This commit is contained in:
Simon Christ 2020-05-04 18:16:29 +02:00 committed by GitHub
parent fe4cc4d58c
commit 40848e7432
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
@ -1094,7 +1099,7 @@ end
end
()
end
@deps xerror path
@deps zerror path
# TODO: move quiver to PlotRecipes