Skip to content

Commit

Permalink
try fixing tutorial compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
juddmehr committed Oct 16, 2024
1 parent 3175386 commit 5da2e4a
Showing 1 changed file with 31 additions and 16 deletions.
47 changes: 31 additions & 16 deletions docs/src/DuctAPE/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ nothing #hide
And then we can plot the data to compare DFDC and DuctAPE.

```@example tutorial
include(normpath(joinpath(splitdir(pathof(DuctAPE))[1], "..", "docs", "src", "assets", "plots_default.jl")))
using Plots
# set up efficiency plot
pe = plot(; xlabel="Advance Ratio", ylabel="Efficiency")
Expand All @@ -526,13 +526,20 @@ plot!(
dfdc_eta;
seriestype=:scatter,
markersize=5,
markercolor=plotsgray,
markerstrokecolor=plotsgray,
label="DFDC"
markercolor=plotsgray, # hide
markerstrokecolor=plotsgray, # hide
label="DFDC",
)
# Plot DuctAPE outputs
plot!(pe, Js, eta; linewidth=2, color=primary, label = "DuctAPE")
plot!(
pe,
Js,
eta;
linewidth=2,
color=primary, # hide
label="DuctAPE",
)
# setup cp/ct plot
ppt = plot(; xlabel="Advance Ratio")
Expand All @@ -544,21 +551,22 @@ plot!(
dfdc_cp;
seriestype=:scatter,
markersize=5,
markercolor=plotsgray,
markerstrokecolor=primary,
markercolor=plotsgray, # hide
markerstrokecolor=primary, # hide
markerstrokewidth=2,
label="DFDC Cp"
label="DFDC Cp",
)
plot!(
ppt,
dfdc_J,
dfdc_ct;
seriestype=:scatter,
markersize=5,
markercolor=plotsgray,
markerstrokecolor=secondary,
markercolor=plotsgray, # hide
markerstrokecolor=secondary, # hide
markerstrokewidth=2,
label="DFDC Ct"
label="DFDC Ct",
)
# plot DuctAPE outputs
Expand All @@ -567,17 +575,24 @@ plot!(
Js,
cp;
linewidth=1.5,
color=primary,
label="DuctAPE Cp"
color=primary, # hide
label="DuctAPE Cp",
)
plot!(
ppt,
Js,
ct;
linewidth=1.5,
color=secondary,
label="DuctAPE Ct"
color=secondary, # hide
label="DuctAPE Ct",
)
plot(pe, ppt; size=(700,350), layout=(1,2), margin=2mm)
plot(
pe,
ppt;
size=(700, 350),
layout=(1, 2),
margin=2mm, # hide
)
```

0 comments on commit 5da2e4a

Please sign in to comment.