Think I'm gonna call it for now. May reassess, but almost completely done!

This commit is contained in:
Connor
2022-03-14 01:09:52 -06:00
parent e36b99b84c
commit fca9f32ea7
15 changed files with 173 additions and 183 deletions

View File

@@ -53,7 +53,6 @@ println(get_id.(sorted_missions1[1:5]))
println(get_id.(sorted_missions2[1:5]))
# long, short = improve.(sorted_missions2[1:2], n=7)#, use_cost=true)
display_mission = long
# Display Orbit Plot
# display(Thesis.plot(long,
@@ -66,22 +65,22 @@ display_mission = long
# Save Orbit Plot
savefig(Thesis.plot(short, title="EMS Mission Profile", mode="light", planet_colors=false,
phase_colors=["#F00","#F0F","#6AF"], markers=false,
phase_colors=["#F00","#F0F","#6AF"], markers=false, legend=false,
camera=((-0.2, 0.1, -0.3),(-2.,-2.,1.))),
"/home/connor/projects/thesis/LaTeX/fig/EMS_plot.png",
width=850, height=400)
savefig(Thesis.plot(short, title="EMS Mission Profile", mode="light", planet_colors=false,
phase_colors=["#F00","#F0F","#6AF"], markers=false, planets=false,
phase_colors=["#F00","#F0F","#6AF"], markers=false, planets=false, legend=false,
camera=((-0.2, 0.1, -0.3),(-2.,-2.,1.))),
"/home/connor/projects/thesis/LaTeX/fig/EMS_plot_noplanets.png",
width=850, height=400)
savefig(Thesis.plot(long, title="EMS Mission Profile", mode="light", planet_colors=false,
phase_colors=["#F00","#F0F","#6AF"], markers=false,
phase_colors=["#F00","#F0F","#6AF"], markers=false, legend=false,
camera=((-0.2, -0.3, -0.2),(1.75,-1.75,1.5))),
"/home/connor/projects/thesis/LaTeX/fig/EMJS_plot.png",
width=850, height=400)
savefig(Thesis.plot(long, title="EMS Mission Profile", mode="light", planet_colors=false,
phase_colors=["#F00","#F0F","#6AF"], markers=false, planets=false,
phase_colors=["#F00","#F0F","#6AF"], markers=false, planets=false, legend=false,
camera=((-0.2, -0.3, -0.2),(2.,-2.,1.5))),
"/home/connor/projects/thesis/LaTeX/fig/EMJS_plot_noplanets.png",
width=850, height=400)
@@ -90,16 +89,16 @@ savefig(Thesis.plot(long, title="EMS Mission Profile", mode="light", planet_colo
# display(plot_thrust_components(display_mission, title="Thrust Components vs Time", mode="light"))
# Save Thrust Plots
savefig(plot_thrust(short, title="Thrust Magnitude vs Time", mode="light"),
savefig(plot_thrust(short, title="Thrust Magnitude vs Time", mode="light", legend=false),
"/home/connor/projects/thesis/LaTeX/fig/EMS_thrust_mag.png",
width=850, height=400)
savefig(plot_thrust_components(short, title="Thrust Components vs Time", mode="light"),
savefig(plot_thrust_components(short, title="Thrust Components vs Time", mode="light", legend=false),
"/home/connor/projects/thesis/LaTeX/fig/EMS_thrust_components.png",
width=850, height=400)
savefig(plot_thrust(long, title="Thrust Magnitude vs Time", mode="light"),
savefig(plot_thrust(long, title="Thrust Magnitude vs Time", mode="light", legend=false),
"/home/connor/projects/thesis/LaTeX/fig/EMJS_thrust_mag.png",
width=850, height=400)
savefig(plot_thrust_components(long, title="Thrust Components vs Time", mode="light"),
savefig(plot_thrust_components(long, title="Thrust Components vs Time", mode="light", legend=false),
"/home/connor/projects/thesis/LaTeX/fig/EMJS_thrust_components.png",
width=850, height=400)

View File

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