@@ -89,21 +89,18 @@ def create_quiver(x, y, u, v, scale=.1, arrow_scale=.3,
89
89
utils .validate_positive_scalars (arrow_scale = arrow_scale , scale = scale )
90
90
91
91
if scaleratio is None :
92
- barb_x , barb_y = _Quiver (x , y , u , v , scale ,
93
- arrow_scale , angle ).get_barbs ()
94
- arrow_x , arrow_y = _Quiver (x , y , u , v , scale ,
95
- arrow_scale , angle ).get_quiver_arrows ()
92
+ quiver_obj = _Quiver (x , y , u , v , scale , arrow_scale , angle )
96
93
else :
97
- barb_x , barb_y = _Quiver (x , y , u , v , scale ,
98
- arrow_scale , angle , scaleratio ). get_barbs ()
99
- arrow_x , arrow_y = _Quiver ( x , y , u , v , scale ,
100
- arrow_scale , angle , scaleratio ) .get_quiver_arrows ()
94
+ quiver_obj = _Quiver (x , y , u , v , scale , arrow_scale , angle , scaleratio )
95
+
96
+ barb_x , barb_y = quiver_obj . get_barbs ()
97
+ arrow_x , arrow_y = quiver_obj .get_quiver_arrows ()
101
98
102
- quiver = graph_objs .Scatter (x = barb_x + arrow_x ,
99
+ quiver_plot = graph_objs .Scatter (x = barb_x + arrow_x ,
103
100
y = barb_y + arrow_y ,
104
101
mode = 'lines' , ** kwargs )
105
102
106
- data = [quiver ]
103
+ data = [quiver_plot ]
107
104
108
105
if scaleratio is None :
109
106
layout = graph_objs .Layout (hovermode = 'closest' )
0 commit comments