No progress made really...
This commit is contained in:
@@ -18,7 +18,8 @@ function plot_orbits(paths::Vector{Array{Float64,2}};
|
||||
primary::String="Earth",
|
||||
plot_theme::Symbol=:juno,
|
||||
labels::Vector{String}=Vector{String}(),
|
||||
title::String="Spacecraft Position")
|
||||
title::String="Spacecraft Position",
|
||||
colors::Vector{String}=Vector{String}())
|
||||
|
||||
N = 32
|
||||
θ = collect(range(0,length=N,stop=2π))
|
||||
@@ -33,7 +34,7 @@ function plot_orbits(paths::Vector{Array{Float64,2}};
|
||||
for i = 1:length(paths)
|
||||
path = [ x for x in paths[i] ]
|
||||
label = labels != [] ? labels[i] : "orbit"
|
||||
color = random_color()
|
||||
color = colors != [] ? colors[i] : random_color()
|
||||
push!(t1, scatter3d(;x=(path[:,1]),y=(path[:,2]),z=(path[:,3]),
|
||||
mode="lines", name=label, line_color=color, line_width=3))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user