You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fails (presumably because Plots cannot handle the units?)
MethodError: no method matching isless(::Float64, ::Unitful.Quantity{Float64,Unitful.Dimensions{(Unitful.Dimension{:Time}(1//1),)},Unitful.Units{(Unitful.Unit{:Second}(0,1//1),),Unitful.Dimensions{(Unitful.Dimension{:Time}(1//1),)}}})
Closest candidates are:isless(::Float64, !Matched::Float64) at float.jl:415isless(::AbstractFloat, !Matched::AbstractFloat) at operators.jl:75isless(::Real, !Matched::AbstractFloat) at operators.jl:76...inexpand_extrema!(::Plots.Extrema, ::Unitful.Quantity{Float64,Unitful.Dimensions{(Unitful.Dimension{:Time}(1//1),)},Unitful.Units{(Unitful.Unit{:Second}(0,1//1),),Unitful.Dimensions{(Unitful.Dimension{:Time}(1//1),)}}}) at C:\Users\Chris\.julia\v0.6\Plots\src\axes.jl:239inexpand_extrema!(::Plots.Axis, ::Array{Quantity{Float64, Dimensions:{𝐓}, Units:{s}},1}) at C:\Users\Chris\.julia\v0.6\Plots\src\axes.jl:262inexpand_extrema!(::Plots.Subplot{Plots.PlotlyBackend}, ::Dict{Symbol,Any}) at C:\Users\Chris\.julia\v0.6\Plots\src\axes.jl:289...
Plotting the two parts works:
plot(sol.t,sol[:])
but the moment I put the y axis part into any kind of a vector, it fails with that same error:
plot(sol.t,[sol[:]])
plot(sol.t,Any[sol[:]])
The text was updated successfully, but these errors were encountered:
Might want to get @tbreloff in on this one. The recipe found here https://github.com/JuliaDiffEq/DifferentialEquations.jl/blob/master/src/general/plotrecipes.jl#L39 can be simplified in this case to the following:
This fails (presumably because Plots cannot handle the units?)
Plotting the two parts works:
but the moment I put the
y
axis part into any kind of a vector, it fails with that same error:The text was updated successfully, but these errors were encountered: