Skip to content

Commit

Permalink
refactor: remove buffer from delta l2 norm line in convergence plots
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Aug 2, 2024
1 parent b0b73d9 commit cd85659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/invert4geom/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def plot_convergence(

# add buffer to y axis limits
ax1.set_ylim(0.9 * l2_norm_tolerance, starting_l2_norm)
ax2.set_ylim(0.9 * delta_l2_norm_tolerance, np.nanmax(delta_l2_norms))
ax2.set_ylim(delta_l2_norm_tolerance, np.nanmax(delta_l2_norms))

# set x axis to integer values
ax1.xaxis.set_major_locator(mpl.ticker.MaxNLocator(integer=True))
Expand Down Expand Up @@ -497,7 +497,7 @@ def plot_dynamic_convergence(
# add buffer to y axis limits
ax1.set_ylim(0.9 * (l2_norm_tolerance), np.sqrt(starting_misfit))
if iters > 1:
ax2.set_ylim(0.9 * (delta_l2_norm_tolerance), np.nanmax(delta_l2_norms))
ax2.set_ylim(delta_l2_norm_tolerance, np.nanmax(delta_l2_norms))

# set x axis to integer values
ax1.xaxis.set_major_locator(mpl.ticker.MaxNLocator(integer=True))
Expand Down

0 comments on commit cd85659

Please sign in to comment.