Skip to content

Commit

Permalink
fix bugs in visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
juddmehr committed Nov 8, 2024
1 parent 8d859c1 commit c296455
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/visualization/convenience_plots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ function generate_plots(
plotCP(),
body_vortex_panels,
out.bodies,
rotor_source_panels;
rotor_source_panels,
wake_vortex_panels;
subplot=2,
inset=(1, Plots.bbox(0, 0, 1, 1)),
(; kwargs..., background_color=:white)...,
Expand All @@ -279,7 +280,8 @@ function generate_plots(
body_vortex_panels,
out.bodies,
out.reference_values.Vref[],
rotor_source_panels;
rotor_source_panels,
wake_vortex_panels;
subplot=2,
inset=(1, Plots.bbox(0, 0, 1, 1)),
(; kwargs..., background_color=:white)...,
Expand Down
8 changes: 4 additions & 4 deletions src/visualization/plot_recipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ end
::plotCP,
bvp,
bout,
rsp=nothing;
rsp=nothing,
wvp=nothing;
cp_ylim=nothing,
default_colors=(;
primary=RGB(1 / 255, 149 / 255, 226 / 255), #blue
secondary=RGB(189 / 255, 10 / 255, 53 / 255), #red
Expand All @@ -244,7 +246,6 @@ end
quinary=RGB(155 / 255, 82 / 255, 162 / 255), #purple
plotsgray=RGB(128 / 255, 128 / 255, 128 / 255), #gray
),
cp_ylim=nothing,
)
color_palette --> [
default_colors.primary,
Expand Down Expand Up @@ -298,6 +299,7 @@ end
Vref,
rsp=nothing,
wvp=nothing;
vtan_ylim=nothing,
default_colors=(;
primary=RGB(1 / 255, 149 / 255, 226 / 255), #blue
secondary=RGB(189 / 255, 10 / 255, 53 / 255), #red
Expand All @@ -306,8 +308,6 @@ end
quinary=RGB(155 / 255, 82 / 255, 162 / 255), #purple
plotsgray=RGB(128 / 255, 128 / 255, 128 / 255), #gray
),
labels=["Duct"; "Center Body"],
vtan_ylim=nothing,
)
color_palette --> [
default_colors.primary,
Expand Down

0 comments on commit c296455

Please sign in to comment.