-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stream.plot(type='section')
does not respect method='full'
#3375
Comments
Sure, go ahead! |
Great. What branch should I base my feature branch off of? |
Yes. Qualifies as a "bug", so that's where I would base it off of. |
Closing this seeing as #3379 was merged. |
github does close stuff automatically, but when the PR goes into maintenance branch it will only close the related issue after maintenance is merged into master, which will happen eventually but sometimes not immediately 👍 |
Ah! Didn't know this. Thanks. |
Avoid duplicates
Bug Summary
When using the Stream plotting method with
type='section'
, no matter themethod
used the data are resampled if they exceed 10,000 samples, see here in the__init__()
method forWaveformPlotting
:obspy/obspy/imaging/waveform.py
Lines 125 to 129 in 00122ed
and in
__sect_init_traces()
:obspy/obspy/imaging/waveform.py
Lines 1235 to 1239 in 00122ed
It seems to me that the latter bit of code should be checking if
method='full'
and if so, settingtmp_data = tr.data
— rather than resampling. Currently that kwarg is not checked. Therefore, as it stands, users have no way of fully plotting the data without resampling if they're usingtype='section'
.I'm happy to make a PR to address this.
Code to Reproduce
No response
Error Traceback
No response
ObsPy Version?
1.4.0
Operating System?
macOS (M1)
Python Version?
3.11.5
Installation Method?
conda
The text was updated successfully, but these errors were encountered: