From a9c659aa21116809b8df77ace881932834efafd8 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Thu, 23 Apr 2020 20:35:32 +0200 Subject: [PATCH 1/2] fix errorbars with string axes --- src/recipes.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/recipes.jl b/src/recipes.jl index 110aa461..c9960e46 100644 --- a/src/recipes.jl +++ b/src/recipes.jl @@ -1019,7 +1019,8 @@ error_tuple(x::Tuple) = x function error_coords(errorbar, errordata, otherdata...) ed = Vector{float_extended_type(errordata)}(undef, 0) - od = [Float64[] for _ in otherdata] + od = [Vector{float_extended_type(odi)}(undef, 0) for odi in otherdata] + @show eltype(od) for (i, edi) in enumerate(errordata) for (j, odj) in enumerate(otherdata) odi = _cycle(odj, i) From d3629f3cfed2d8ef8e4b2105d171cadbd663bebd Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Thu, 23 Apr 2020 20:37:02 +0200 Subject: [PATCH 2/2] remove show --- src/recipes.jl | 1 - 1 file changed, 1 deletion(-) diff --git a/src/recipes.jl b/src/recipes.jl index c9960e46..246f80ae 100644 --- a/src/recipes.jl +++ b/src/recipes.jl @@ -1020,7 +1020,6 @@ error_tuple(x::Tuple) = x function error_coords(errorbar, errordata, otherdata...) ed = Vector{float_extended_type(errordata)}(undef, 0) od = [Vector{float_extended_type(odi)}(undef, 0) for odi in otherdata] - @show eltype(od) for (i, edi) in enumerate(errordata) for (j, odj) in enumerate(otherdata) odi = _cycle(odj, i)