def create_streamline(x, y, u, v, density=1, angle=(math.pi / 9), arrow_scale=0.09, **kwargs):
 utils.validate_equal_length(x, y)
 utils.validate_equal_length(u, v)
 validate_streamline(x, y)
 utils.validate_positive_scalars(density=density, arrow_scale=arrow_scale)
 (streamline_x, streamline_y) = _Streamline(x, y, u, v, density, angle, arrow_scale).sum_streamlines()
 (arrow_x, arrow_y) = _Streamline(x, y, u, v, density, angle, arrow_scale).get_streamline_arrows()
 streamline = graph_objs.Scatter(x=(streamline_x + arrow_x), y=(streamline_y + arrow_y), mode='lines', **kwargs)
 data = [streamline]
 layout = graph_objs.Layout(hovermode='closest')
 return graph_objs.Figure(data=data, layout=layout)

def create_streamline ( x , y , u , v , density = 1 , angle = ( math . pi / 9 ) , arrow_scale = 0.09 , ** kwargs ) : utils . validate_equal_length ( x , y ) utils . validate_equal_length ( u , v ) validate_streamline ( x , y ) utils . validate_positive_scalars ( density = density , arrow_scale = arrow_scale ) ( streamline_x , streamline_y ) = _Streamline ( x , y , u , v , density , angle , arrow_scale ) . sum_streamlines ( ) ( arrow_x , arrow_y ) = _Streamline ( x , y , u , v , density , angle , arrow_scale ) . get_streamline_arrows ( ) streamline = graph_objs . Scatter ( x = ( streamline_x + arrow_x ) , y = ( streamline_y + arrow_y ) , mode = 'lines' , ** kwargs ) data = [ streamline ] layout = graph_objs . Layout ( hovermode = 'closest' ) return graph_objs . Figure ( data = data , layout = layout )
returns data for a streamline plot .