Skip to content

Commit

Permalink
Merge pull request #2886 from CliMA/ncc/fix-iw-movie
Browse files Browse the repository at this point in the history
Correct filename for internal wave movie
  • Loading branch information
navidcy committed Jan 30, 2023
2 parents c8a65a4 + 97cfee2 commit e0c8060
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
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

0 comments on commit e0c8060

Please sign in to comment.