Skip to content

Commit

Permalink
Fix headline and plot labels
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFibonacciEffect authored Jan 23, 2025
1 parent ebfdf47 commit d047362
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/topics/export.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ vtk_save(pvd);
```
See [Transient heat equation](@ref tutorial-transient-heat-equation) for an example

# Plotting using Plots.jl
# Evaluating the Solution at a list of Points for Plotting using Plots.jl
The solution can also be evaluated at a list of points and plotted using `Plots.jl`. For the heat equation example it can be done like this:
```
using Plots
Expand All @@ -72,5 +72,5 @@ ph = PointEvalHandler(grid, points)
u_points = evaluate_at_points(ph, dh, u, :u)
# reorganize the data for plotting
u_points = reshape(u_points, length(xrange), length(yrange))
heatmap(xrange, yrange, u_points, xlabel="space", ylabel="energy", title="u(x, E)", aspect_ratio=:equal)
heatmap(xrange, yrange, u_points, xlabel="x", ylabel="y", title="u(x, y)", aspect_ratio=:equal)
```

0 comments on commit d047362

Please sign in to comment.