This errors out when trying to ustrip() and uconvert():
using Plots, Unitful
x = 0:10
function foo(x)
if(x > 5)
return 1u"A"
else
return 1.0u"A"
end
end
y = foo.(x)
plot(y)
y is type Vector{Quantity{T, 𝐈, FreeUnits{(A,), 𝐈, nothing}} where T}
Is this the intended behavior? It seems like for the purposes of plotting we should try to be as flexible as possible and accept as many inputs as possible.
This errors out when trying to
ustrip()anduconvert():yis typeVector{Quantity{T, 𝐈, FreeUnits{(A,), 𝐈, nothing}} where T}Is this the intended behavior? It seems like for the purposes of plotting we should try to be as flexible as possible and accept as many inputs as possible.