@@ -735,17 +735,17 @@ def trellis_plot(self,fsize=(6,4)):
735
735
plt .axis ([- 0.01 , 1.01 , - (self .Nstates - 1 )- 0.05 , 0.05 ])
736
736
for m in range (self .Nstates ):
737
737
if branches_from .input1 [m ] == 0 :
738
- plt .plot ([0 , 1 ],[- branches_from .states1 [m ], - m ],'b' )
739
- plt .plot ([0 , 1 ],[- branches_from .states1 [m ], - m ],'r.' )
738
+ plt .plot ([0 , 1 ],[- branches_from .states1 [m ], [ - m ] ],'b' )
739
+ plt .plot ([0 , 1 ],[- branches_from .states1 [m ], [ - m ] ],'r.' )
740
740
if branches_from .input2 [m ] == 0 :
741
- plt .plot ([0 , 1 ],[- branches_from .states2 [m ], - m ],'b' )
742
- plt .plot ([0 , 1 ],[- branches_from .states2 [m ], - m ],'r.' )
741
+ plt .plot ([0 , 1 ],[- branches_from .states2 [m ], [ - m ] ],'b' )
742
+ plt .plot ([0 , 1 ],[- branches_from .states2 [m ], [ - m ] ],'r.' )
743
743
if branches_from .input1 [m ] == 1 :
744
- plt .plot ([0 , 1 ],[- branches_from .states1 [m ], - m ],'g' )
745
- plt .plot ([0 , 1 ],[- branches_from .states1 [m ], - m ],'r.' )
744
+ plt .plot ([0 , 1 ],[- branches_from .states1 [m ], [ - m ] ],'g' )
745
+ plt .plot ([0 , 1 ],[- branches_from .states1 [m ], [ - m ] ],'r.' )
746
746
if branches_from .input2 [m ] == 1 :
747
- plt .plot ([0 , 1 ],[- branches_from .states2 [m ], - m ],'g' )
748
- plt .plot ([0 , 1 ],[- branches_from .states2 [m ], - m ],'r.' )
747
+ plt .plot ([0 , 1 ],[- branches_from .states2 [m ], [ - m ] ],'g' )
748
+ plt .plot ([0 , 1 ],[- branches_from .states2 [m ], [ - m ] ],'r.' )
749
749
#plt.grid()
750
750
plt .xlabel ('One Symbol Transition' )
751
751
plt .ylabel ('-State Index' )
0 commit comments