Think I'm gonna call it for now. May reassess, but almost completely done!
This commit is contained in:
@@ -320,6 +320,7 @@ function plot(m::Union{Mission, Mission_Guess};
|
||||
markers=true,
|
||||
planets=true,
|
||||
camera=nothing,
|
||||
legend=true,
|
||||
)
|
||||
# First plot the earth
|
||||
# Then plot phase plus planet phase
|
||||
@@ -402,6 +403,8 @@ function plot(m::Union{Mission, Mission_Guess};
|
||||
layout["scene_camera_eye_z"] = camera[2][3]
|
||||
end
|
||||
|
||||
layout["showlegend"] = legend
|
||||
|
||||
# Plot
|
||||
PlotlyJS.plot( PlotlyJS.Plot( traces, layout ) )
|
||||
|
||||
@@ -434,6 +437,7 @@ end
|
||||
function plot_thrust(m::Union{Mission, Mission_Guess};
|
||||
title::String="Mission Plot",
|
||||
mode::String="dark",
|
||||
legend=true,
|
||||
)
|
||||
times = Vector{String}()
|
||||
vals = Vector{Float64}()
|
||||
@@ -467,6 +471,8 @@ function plot_thrust(m::Union{Mission, Mission_Guess};
|
||||
yaxis_range=[0.0,maximum(vals)*1.02],
|
||||
)
|
||||
|
||||
layout["showlegend"] = legend
|
||||
|
||||
# Plot
|
||||
PlotlyJS.plot( PlotlyJS.Plot( traces, layout ) )
|
||||
|
||||
@@ -475,6 +481,7 @@ end
|
||||
function plot_thrust_components(m::Union{Mission, Mission_Guess};
|
||||
title::String="Mission Plot",
|
||||
mode::String="dark",
|
||||
legend=true,
|
||||
)
|
||||
traces = Vector{PlotlyJS.AbstractTrace}()
|
||||
times = Vector{String}()
|
||||
@@ -519,6 +526,8 @@ function plot_thrust_components(m::Union{Mission, Mission_Guess};
|
||||
yaxis_range=[min(minimum(αs),minimum(βs))*1.02,max(maximum(αs),maximum(βs))*1.02],
|
||||
)
|
||||
|
||||
layout["showlegend"] = legend
|
||||
|
||||
# Plot
|
||||
PlotlyJS.plot( PlotlyJS.Plot( traces, layout ) )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user