Skip to content

Commit 9587c51

Browse files
committed
Update inversion_1d.py
1 parent a23c196 commit 9587c51

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mtpy/modeling/simpeg/recipes/inversion_1d.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
from matplotlib import pyplot as plt
3434
import matplotlib.gridspec as gridspec
35+
from matplotlib.ticker import LogLocator
3536

3637
# =============================================================================
3738

@@ -457,6 +458,10 @@ def plot_response(self, iteration=None, fig_num=2):
457458
ax_model.set_ylabel("Depth (km)")
458459
ax_model.set_xscale("log")
459460
ax_model.set_yscale("symlog")
461+
ax_model.yaxis.set_major_locator(LogLocator(base=10.0, numticks=10))
462+
ax_model.yaxis.set_minor_locator(
463+
LogLocator(base=10.0, numticks=10, subs="auto")
464+
)
460465

461466
nf = len(self.frequencies)
462467

0 commit comments

Comments
 (0)