obspy/obspy — pull request #689 by mbyt (2013-12-02 22:39:24+00:00)
Title: Plotting segy-File

Hi guys and thanks in advance for your help.

I'm having issues with trying to plot segy-files. I can read them properly but as soon as I'm trying to plot, I get several errors:

```
>>> print st
8 Trace(s) in Stream:
Seq. No. in line: 0 | 2013-07-16T17:10:24.000000Z - 2013-07-16T17:10:26.999500Z | 2000.0 Hz, 6000 samples
Seq. No. in line: 0 | 2013-07-16T17:10:24.000000Z - 2013-07-16T17:10:26.999500Z | 2000.0 Hz, 6000 samples
Seq. No. in line: 0 | 2013-07-16T17:10:24.000000Z - 2013-07-16T17:10:26.999500Z | 2000.0 Hz, 6000 samples
Seq. No. in line: 0 | 2013-07-16T17:10:24.000000Z - 2013-07-16T17:10:26.999500Z | 2000.0 Hz, 6000 samples
Seq. No. in line: 0 | 2013-07-16T17:10:38.000000Z - 2013-07-16T17:10:40.999500Z | 2000.0 Hz, 6000 samples
Seq. No. in line: 0 | 2013-07-16T17:10:38.000000Z - 2013-07-16T17:10:40.999500Z | 2000.0 Hz, 6000 samples
Seq. No. in line: 0 | 2013-07-16T17:10:38.000000Z - 2013-07-16T17:10:40.999500Z | 2000.0 Hz, 6000 samples
Seq. No. in line: 0 | 2013-07-16T17:10:38.000000Z - 2013-07-16T17:10:40.999500Z | 2000.0 Hz, 6000 samples

>>> st.plot()
Traceback (most recent call last):
File "", line 1, in
st.plot()
File "C:\Python27\lib\site-packages\obspy-0.8.4-py2.7-win-amd64.egg\obspy\core\stream.py", line 999, in plot
return waveform.plotWaveform(*args, **kwargs)
File "C:\Python27\lib\site-packages\obspy-0.8.4-py2.7-win-amd64.egg\obspy\imaging\waveform.py", line 199, in plotWaveform
self.plot(*args, **kwargs)
File "C:\Python27\lib\site-packages\obspy-0.8.4-py2.7-win-amd64.egg\obspy\imaging\waveform.py", line 303, in plot
self.__plotStraight(stream_new[_i], ax, *args, **kwargs)
File "C:\Python27\lib\site-packages\obspy-0.8.4-py2.7-win-amd64.egg\obspy\imaging\waveform.py", line 546, in __plotStraight
trace = [tr.copy() for tr in trace]
File "C:\Python27\lib\site-packages\obspy-0.8.4-py2.7-win-amd64.egg\obspy\core\trace.py", line 1801, in copy
return deepcopy(self)
File "C:\Python27\lib\copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "C:\Python27\lib\copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
File "C:\Python27\lib\copy.py", line 163, in deepcopy
y = copier(x, memo)
File "C:\Python27\lib\copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "C:\Python27\lib\copy.py", line 174, in deepcopy
y = copier(memo)
File "C:\Python27\lib\site-packages\obspy-0.8.4-py2.7-win-amd64.egg\obspy\core\util\attribdict.py", line 103, in __deepcopy__
ad.update(copy.deepcopy(self.__dict__))
File "C:\Python27\lib\copy.py", line 163, in deepcopy
y = copier(x, memo)
File "C:\Python27\lib\copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "C:\Python27\lib\copy.py", line 174, in deepcopy
y = copier(memo)
File "C:\Python27\lib\site-packages\obspy-0.8.4-py2.7-win-amd64.egg\obspy\core\util\attribdict.py", line 103, in __deepcopy__
ad.update(copy.deepcopy(self.__dict__))
File "C:\Python27\lib\copy.py", line 163, in deepcopy
y = copier(x, memo)
File "C:\Python27\lib\copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "C:\Python27\lib\copy.py", line 174, in deepcopy
y = copier(memo)
File "C:\Python27\lib\site-packages\obspy-0.8.4-py2.7-win-amd64.egg\obspy\core\util\attribdict.py", line 102, in __deepcopy__
ad = self.__class__()
TypeError: __init__() takes at least 3 arguments (1 given)
```

I guess there are some input arguments missing but I really can't figure out which ones. So any help would be great.