Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct filename for internal wave movie #2886

Merged
merged 3 commits into from
Jan 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ pushfirst!(LOAD_PATH, joinpath(@__DIR__, "..")) # add Oceananigans to environmen
using Documenter
using DocumenterCitations
using Literate
using CairoMakie # to avoid capturing precompilation output by Literate
using Glob

using CairoMakie # to avoid capturing precompilation output by Literate
CairoMakie.activate!(type = "svg")

using Oceananigans
using Oceananigans.Operators
using Oceananigans.Diagnostics
Expand Down
5 changes: 2 additions & 3 deletions examples/baroclinic_adjustment.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,8 @@ fig, ax, hm = heatmap(y, z, interior(b)[1, :, :],

Colorbar(fig[1, 2], hm, label = "[m s⁻²]")

save("initial_buoyancy.svg", fig); nothing # hide

# ![](initial_buoyancy.svg)
current_figure() # hide
fig

# Now let's built a `Simulation`.

Expand Down
2 changes: 1 addition & 1 deletion examples/internal_wave.jl
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ frames = 1:length(w_timeseries.times)

@info "Animating a propagating internal wave..."

record(fig, filename * ".mp4", frames, framerate=8) do i
record(fig, "internal_wave.mp4", frames, framerate=8) do i
msg = string("Plotting frame ", i, " of ", frames[end])
print(msg * " \r")
n[] = i
Expand Down
6 changes: 2 additions & 4 deletions examples/ocean_wind_mixing_and_convection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,8 @@ ax = Axis(fig[1, 1], ylabel = "Depth (m)", xlabel = "Vertical spacing (m)")
lines!(ax, grid.Δzᵃᵃᶜ[1:grid.Nz], grid.zᵃᵃᶜ[1:grid.Nz])
scatter!(ax, grid.Δzᵃᵃᶜ[1:Nz], grid.zᵃᵃᶜ[1:Nz])

save("ocean_wind_mixing_convection_grid_spacing.svg", fig)
nothing #hide

# ![](ocean_wind_mixing_convection_grid_spacing.svg)
current_figure() # hide
fig

# ## Buoyancy that depends on temperature and salinity
#
Expand Down