Plotting Trellis Diagrams with CommPy in Python

Submitted by: veeresht, 28 March 2012
Update history: Revision 2 of 2: previous 
Updated by: veeresht, 28 March 2012
More information:

It is often required to visualize the trellis representation of a convolutional code. This is an attempt to provide the same as shown below http://scipy-central.org/media/scipy_central/images/201203/4_trellis_new.png