Skip to content

Commit

Permalink
Removed outdated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rmodrak committed Oct 5, 2023
1 parent 3df2e56 commit d7c303e
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions mtuq/graphics/waveforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,22 +418,7 @@ def _plot_ZR(axes, ic, dat, syn, component,

_plot(axis, dat, syn)

# THIS PART WAS COMMENTED OUT BEFORE THE WORKSHOP FOR A QUICK WORKAROUND
# WE NEED A PROPER WAY OF DEALING WITH CUSTOM AMPLITUDE BY ADDING AN OPTION
# # normalize amplitudes
# if normalize=='trace_amplitude':
# max_trace = _max(dat, syn)
# ylim = [-3*max_trace, +3*max_trace]
# axis.set_ylim(*ylim)
# elif normalize=='station_amplitude':
# max_stream = _max(stream_dat, stream_syn)
# ylim = [-3*max_stream, +3*max_stream]
# axis.set_ylim(*ylim)
# elif normalize=='maximum_amplitude':
# ylim = [-2*max_amplitude, +2*max_amplitude]
# axis.set_ylim(*ylim)

# normalize amplitude - using same scaling parameters as surface waves
# normalize amplitude
if normalize=='trace_amplitude':
max_trace = _max(dat, syn)
ylim = [-1.5*max_trace, +1.5*max_trace]
Expand All @@ -446,6 +431,7 @@ def _plot_ZR(axes, ic, dat, syn, component,
ylim = [-0.75*max_amplitude, +0.75*max_amplitude]
axis.set_ylim(*ylim)


if trace_label_writer is not None:
trace_label_writer(axis, dat, syn, total_misfit)

Expand Down

0 comments on commit d7c303e

Please sign in to comment.