Skip to content
This repository has been archived by the owner on Feb 3, 2025. It is now read-only.

Commit

Permalink
Zoom on LAM plot
Browse files Browse the repository at this point in the history
  • Loading branch information
OpheliaMiralles committed Dec 13, 2024
1 parent 530cd9a commit 1b7c729
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/anemoi/training/diagnostics/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,8 +782,8 @@ def single_plot(

xmin, xmax = max(lon.min(), -np.pi), min(lon.max(), np.pi)
ymin, ymax = max(lat.min(), -np.pi / 2), min(lat.max(), np.pi / 2)
ax.set_xlim((xmin - 0.1, xmax + 0.1))
ax.set_ylim((ymin - 0.1, ymax + 0.1))
ax.set_xlim((xmin - 0.01, xmax + 0.01))
ax.set_ylim((ymin - 0.01, ymax + 0.01))

continents.plot_continents(ax)

Expand Down Expand Up @@ -861,8 +861,8 @@ def edge_plot(

xmin, xmax = edge_lines[:, 0, 0].min(), edge_lines[:, 0, 0].max()
ymin, ymax = edge_lines[:, 1, 1].min(), edge_lines[:, 1, 1].max()
ax.set_xlim((xmin - 0.1, xmax + 0.1))
ax.set_ylim((ymin - 0.1, ymax + 0.1))
ax.set_xlim((xmin - 0.01, xmax + 0.01))
ax.set_ylim((ymin - 0.01, ymax + 0.01))

continents.plot_continents(ax)

Expand Down

0 comments on commit 1b7c729

Please sign in to comment.