Skip to content

Commit

Permalink
added axis labels to docs/src/Examples.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mncrowe committed Nov 12, 2024
1 parent 502bf92 commit f8b300f
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions docs/src/Examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ heatmap(grid.x, grid.y, transpose(ψ[:,:,1]);
colormap = :balance,
aspect_ratio=1,
xlims = (-Lx/2, Lx/2),
ylims = (-Ly/2, Ly/2))
ylims = (-Ly/2, Ly/2),
xlabel = "x",
ylabel = "y")
```

Expand Down Expand Up @@ -312,7 +314,9 @@ heatmap(grid.x, grid.y, transpose(ψ);
colormap = :balance,
aspect_ratio=1,
xlims = (-Lx/2, Lx/2),
ylims = (-Ly/2, Ly/2))
ylims = (-Ly/2, Ly/2),
xlabel = "x",
ylabel = "y")
```

If we look at ``K``, we find that ``K \approx 7.34205`` which is not the value we'd expect for the usual dipole solution.
Expand Down Expand Up @@ -399,16 +403,20 @@ We can plot our initial condition and solution at ``t = 10.0`` using:
using Plots

heatmap(prob.grid.x, prob.grid.y, device_array(CPU())(transpose(q₀));
colormap = :balance,
aspect_ratio=1,
xlims = (-Lx/2, Lx/2),
ylims = (-Ly/2, Ly/2))
colormap = :balance,
aspect_ratio=1,
xlims = (-Lx/2, Lx/2),
ylims = (-Ly/2, Ly/2),
xlabel = "x",
ylabel = "y")

heatmap(prob.grid.x, prob.grid.y, device_array(CPU())(transpose(prob.vars.q));
colormap = :balance,
aspect_ratio=1,
xlims = (-Lx/2, Lx/2),
ylims = (-Ly/2, Ly/2))
colormap = :balance,
aspect_ratio=1,
xlims = (-Lx/2, Lx/2),
ylims = (-Ly/2, Ly/2),
xlabel = "x",
ylabel = "y")

```

Expand Down

0 comments on commit f8b300f

Please sign in to comment.