#NEWLINE# def plot_hyperplane( c , color ) : #NEWLINE# #INDENT# def line( x0 ) : #NEWLINE# #INDENT# return ( ( ( - ( x0 * coef [ ( c , 0 ) ] ) ) - intercept [ c ] ) / coef [ ( c , 1 ) ] ) #NEWLINE# #UNINDENT# plt . plot ( [ xmin , xmax ] , [ line ( xmin ) , line ( xmax ) ] , ls = '--' , color = color )