#NEWLINE# def plotSpline( self , ind = ( - 1 ) ) : #NEWLINE# #INDENT# s = self . s #NEWLINE# c = self . c #NEWLINE# e = self . e #NEWLINE# params = ( array ( range ( 101 ) ) / 100.0 ) #NEWLINE# sp_pts = [ ] #NEWLINE# for t in params : #NEWLINE# #INDENT# x_t = ( ( ( s [ 0 ] * pow ( ( 1 - t ) , 2 ) ) + ( ( c [ 0 ] * ( 2 * t ) ) * ( 1 - t ) ) ) + ( e [ 0 ] * pow ( t , 2 ) ) ) #NEWLINE# y_t = ( ( ( s [ 1 ] * pow ( ( 1 - t ) , 2 ) ) + ( ( c [ 1 ] * ( 2 * t ) ) * ( 1 - t ) ) ) + ( e [ 1 ] * pow ( t , 2 ) ) ) #NEWLINE# sp_pts . append ( [ x_t , e ] ) #NEWLINE# #UNINDENT# sp_pts = array ( sp_pts ) #NEWLINE# if ( ind == 0 ) : #NEWLINE# #INDENT# plt . plot ( sp_pts [ : , 0 ] , sp_pts [ : , 1 ] , 'm.' , linewidth = 3 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ind == 1 ) : #NEWLINE# #INDENT# plt . plot ( sp_pts [ : , 0 ] , sp_pts [ : , 1 ] , 'y.' , linewidth = 3 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# plt . plot ( sp_pts [ : , 0 ] , sp_pts [ : , 1 ] , 'b.' , linewidth = 3 )