Skip to content

Commit

Permalink
#50: Add zoom plot
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 committed Apr 4, 2024
1 parent 25cf058 commit df4f316
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions demos/monge_ampere1.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,20 @@ def ring_monitor(mesh):
# :figwidth: 60%
# :align: center
#
# Whilst it looks like the mesh might have tangled elements, closer inspection shows
# that this is not the case.

fig, axes = plt.subplots()
triplot(mover.mesh, axes=axes)
axes.set_xlim([0.15, 0.3])
axes.set_ylim([0.15, 0.3])
axes.set_aspect(1)
plt.savefig("monge_ampere1-adapted_mesh_zoom.jpg")

# .. figure:: monge_ampere1-adapted_mesh_zoom.jpg
# :figwidth: 60%
# :align: center
#
# This tutorial can be dowloaded as a `Python script <monge_ampere1.py>`__.
#
#
Expand Down

0 comments on commit df4f316

Please sign in to comment.