Skip to content

Commit

Permalink
Switch from show to display
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlevy committed May 13, 2024
1 parent 67336e2 commit 7885864
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/2d_laplace_solver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ for (i, x) in enumerate(x_vals)
end

println("Here is the heatmap of the 2D function")
show(heatmap(vals; xfact=0.01, yfact=0.01, xoffset=0, yoffset=0, colormap=:inferno))
display(heatmap(vals; xfact=0.01, yfact=0.01, xoffset=0, yoffset=0, colormap=:inferno))

n_grid = 100
x_vals = grid_points(s, n_grid, 1)
Expand All @@ -63,4 +63,4 @@ for (i, x) in enumerate(x_vals)
end

println("Here is a cut of the function at y = $y")
show(lineplot(x_vals, vals))
display(lineplot(x_vals, vals))

0 comments on commit 7885864

Please sign in to comment.