Re: [Matplotlib-users] How to create a square wave plot

2011-08-02 Thread Freedom Fighter
2 Aug 2011 08:43:47 +0000, Freedom Fighter wrote: > Hi, > > what's the easiest method of creating a square wave plot? > Let's say I have a data stream of bits that have values of "1" or > "-1". > The plot function wants to draw a diagonal line betwee

[Matplotlib-users] How to create a square wave plot

2011-08-02 Thread Freedom Fighter
Hi, what's the easiest method of creating a square wave plot? Let's say I have a data stream of bits that have values of "1" or "-1". The plot function wants to draw a diagonal line between those points but I need to have a horizontal line. So to get a "square wave" I must insert additional p