@@ -417,7 +417,7 @@ def _plot_z(self):
417
417
z_grid = np .r_ [0.0 , np .cumsum (self .thicknesses [::- 1 ])]
418
418
return z_grid / 1000
419
419
420
- def plot_response (self , iteration = None , fig_num = 2 ):
420
+ def plot_response (self , iteration = None , fig_num = 1 , ** kwargs ):
421
421
"""Plot response.
422
422
:param fig_num:
423
423
Defaults to 2.
@@ -458,7 +458,8 @@ def plot_response(self, iteration=None, fig_num=2):
458
458
ax_model .set_ylim ((self ._plot_z .max (), 0.01 ))
459
459
ax_model .set_ylabel ("Depth (km)" )
460
460
ax_model .set_xscale ("log" )
461
- ax_model .set_yscale ("symlog" )
461
+ yscale = kwargs .get ("yscale" , "symlog" )
462
+ ax_model .set_yscale (yscale )
462
463
ax_model .yaxis .set_major_locator (LogLocator (base = 10.0 , numticks = 10 ))
463
464
ax_model .yaxis .set_minor_locator (
464
465
LogLocator (base = 10.0 , numticks = 10 , subs = "auto" )
@@ -467,6 +468,7 @@ def plot_response(self, iteration=None, fig_num=2):
467
468
ax_model .xaxis .set_minor_locator (
468
469
LogLocator (base = 10.0 , numticks = 10 , subs = "auto" )
469
470
)
471
+
470
472
ax_model .grid (which = "both" , alpha = 0.5 )
471
473
472
474
nf = len (self .frequencies )
0 commit comments