Skip to content

Commit 401aaa2

Browse files
authored
Merge pull request #549 from xpsi-group/495-fix-ylim-of-channel-spectrum-in-post-processing
Update _spectrum.py to fix ylim in Post-processing
2 parents d9c84b1 + f977916 commit 401aaa2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

xpsi/PostProcessing/_spectrum.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,7 @@ def _add_registered_spectrum(self, ax, spectrum, **kwargs):
814814
""" Add registered spectrum line as a function of channel number. """
815815
if not kwargs:
816816
kwargs.update(dict(color='k', linestyle='-', lw=0.05, alpha=1.0))
817+
ax.set_ylim(0.9*_np.min(spectrum),1.1*_np.max(spectrum))
817818
elif 'ls' in kwargs:
818819
kwargs['linestyle'] = kwargs.pop('ls')
819820

0 commit comments

Comments
 (0)