def create_quiver(x, y, u, v, scale=0.1, arrow_scale=0.3, angle=(math.pi / 9), **kwargs):
 utils.validate_equal_length(x, y, u, v)
 utils.validate_positive_scalars(arrow_scale=arrow_scale, scale=scale)
 (barb_x, barb_y) = _Quiver(x, y, u, v, scale, arrow_scale, angle).get_barbs()
 (arrow_x, arrow_y) = _Quiver(x, y, u, v, scale, arrow_scale, angle).get_quiver_arrows()
 quiver = graph_objs.Scatter(x=(barb_x + arrow_x), y=(barb_y + arrow_y), mode='lines', **kwargs)
 data = [quiver]
 layout = graph_objs.Layout(hovermode='closest')
 return graph_objs.Figure(data=data, layout=layout)

def create_quiver ( x , y , u , v , scale = 0.1 , arrow_scale = 0.3 , angle = ( math . pi / 9 ) , ** kwargs ) : utils . validate_equal_length ( x , y , u , v ) utils . validate_positive_scalars ( arrow_scale = arrow_scale , scale = scale ) ( barb_x , barb_y ) = _Quiver ( x , y , u , v , scale , arrow_scale , angle ) . get_barbs ( ) ( arrow_x , arrow_y ) = _Quiver ( x , y , u , v , scale , arrow_scale , angle ) . get_quiver_arrows ( ) quiver = graph_objs . Scatter ( x = ( barb_x + arrow_x ) , y = ( barb_y + arrow_y ) , mode = 'lines' , ** kwargs ) data = [ quiver ] layout = graph_objs . Layout ( hovermode = 'closest' ) return graph_objs . Figure ( data = data , layout = layout )
returns data for a quiver plot .