# empty stream

**URL:** <https://discourse.obspy.org/t/empty-stream/586>\
**Category:** Users Mailing List Archive\
**Tags:** archive\
**Created:** [December 30, 2016, 7:37pm UTC](https://discourse.obspy.org/t/empty-stream/586 "2016-12-30T19:37:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![A11](https://discourse.obspy.org/letter_avatar_proxy/v4/letter/a/b77776/32.png) [@A11](https://discourse.obspy.org/u/A11)\
**Post date:** [December 30, 2016, 7:37pm UTC](https://discourse.obspy.org/t/empty-stream/586/1 "2016-12-30T19:37:14Z")

</div>

I'm trying to plot a single trace as a section using (plotting a  
background of many traces, and then one trace as a different color).

However it looks like scaling does not work properly if you only pass  
a single trace (or stream with one trace) to plot(type='section').

As a work around I'll pass it two traces in a stream, but I want to  
start from an empty stream.

Anyone know how to create an empty stream? Or similarly, copy a single  
trace from a stream, but make sure the returned object is a stream  
with one trace and not a trace? (you cant append a trace to a trace,  
but you can append a trace to a stream...)

thanks!

ashton

---

<div class="post-metadata">

**Author:** ![A11](https://discourse.obspy.org/letter_avatar_proxy/v4/letter/a/b77776/32.png) [@A11](https://discourse.obspy.org/u/A11)\
**Post date:** [December 30, 2016, 8:04pm UTC](https://discourse.obspy.org/t/empty-stream/586/2 "2016-12-30T20:04:23Z")

</div>

nevermind about the blank stream, for some reason calling the class  
without an argument wasnt working, but fixed it!
