No progress made really...

This commit is contained in:
Connor
2021-08-25 10:10:22 -06:00
parent 966f954528
commit e25d6ff9f4
5 changed files with 95 additions and 35 deletions

View File

@@ -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