Skip to content

Commit 40e43ff

Browse files
committed
Makie Float32 range step zero problem [skip ci]
1 parent 38c7d5b commit 40e43ff

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/analyse/momentum.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ function plot_momentum!(ax, df::DataFrame, axis::Symbol; absolute = false, kw...
66
end
77
end
88

9+
# If having `range step cannot be zero` error from Makie, try Plots.jl instead
10+
# Ref:
11+
# - https://github.com/JuliaPlots/Makie.jl/issues/1579
12+
# - https://github.com/JuliaPlots/Makie.jl/issues/1040
13+
# - https://github.com/JuliaPlots/Makie.jl/issues/931
914
function plot_momentum!(ax, df::DataFrame; axis = [:x, :y, :z], colors = nothing, kw...)
1015
if isnothing(colors)
1116
scenes = [plot_momentum!(ax, df, axis[i]; color = RGB(rand(3)...), kw...) for i in 1:length(axis)]

0 commit comments

Comments
 (0)