pyplot minmax fix; convertToAnyVector fix

This commit is contained in:
Thomas Breloff 2016-03-04 12:46:33 -05:00
parent 347820867d
commit 165c84c246
2 changed files with 9 additions and 1 deletions

View File

@ -472,6 +472,13 @@ function minmaxseries(ds, vec, axis)
hi = max(hi, vhi) hi = max(hi, vhi)
end end
end end
if lo == hi
hi = if lo == 0
1e-6
else
hi + min(abs(1e-2hi), 1e-6)
end
end
lo, hi lo, hi
end end

View File

@ -262,7 +262,8 @@ function convertToAnyVector(v::AVec; kw...)
Any[convert(Vector{Float64}, v)], nothing Any[convert(Vector{Float64}, v)], nothing
else else
# something else... treat each element as an item # something else... treat each element as an item
Any[vi for vi in v], nothing vcat(Any[convertToAnyVector(vi)[1] for vi in v]...), nothing
# Any[vi for vi in v], nothing
end end
end end