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
Errors on trying to plot Vector of Vectors, wherein data are Unitful, but some are missing.
The error message mentions NaNs, however there were no NaNs in the data.
MWE
using DataFrames, Plots, Unitful
gr() # or other backend
y1 = fill(32.0u"°C", 5)
y2 = vcat(fill(missing, 2), fill(22.0u"°C", 3))
df = DataFrame((; y1, y2))
tcl = eachcol(df) |> collect
m2 = Matrix(df)
p0 = plot([y1, y2]); display(p0); # OK
p1 = plot(m2); display(p1); # OK. As my data coming from a DataFrame, this is a usable alternative for me.
p2 = plot([tcl[1], tcl[2]]); display(p2); # OK, but similar code errored in my actual use case
p2a = plot(tcl[1]); plot!(tcl[2]); display(p2a); # OK, but similar code errored in my actual use case
p3 = plot(tcl); # errors
could be related to #4750
Details
Errors on trying to plot
Vector
ofVector
s, wherein data areUnitful
, but some aremissing
.The error message mentions
NaN
s, however there were noNaN
s in the data.MWE
Error stack
Backends
This bug occurs on ( insert
x
below )Versions
Plots.jl version: v1.40.9
Backend version (
]st -m <backend(s)>
): GR v0.73.8, PGFPlotsX v1.6.2, PlotlyJS v0.18.15Unitful v1.21.0
DataFrames v1.7.0
Output of
versioninfo()
:The text was updated successfully, but these errors were encountered: