Skip to content

Commit c5a9ac3

Browse files
committed
Minor formatting updates
1 parent e0da828 commit c5a9ac3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plotly/figure_factory/_quiver.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
def create_quiver(x, y, u, v, scale=.1, arrow_scale=.3,
11-
angle=math.pi / 9, scaleratio = None, **kwargs):
11+
angle=math.pi / 9, scaleratio=None, **kwargs):
1212
"""
1313
Returns data for a quiver plot.
1414
@@ -21,7 +21,7 @@ def create_quiver(x, y, u, v, scale=.1, arrow_scale=.3,
2121
:param (float in [0,1]) arrow_scale: value multiplied to length of barb
2222
to get length of arrowhead. Default = .3
2323
:param (angle in radians) angle: angle of arrowhead. Default = pi/9
24-
:param (positive float) angle: the ratio between the scale of the y-axis
24+
:param (positive float) scaleratio: the ratio between the scale of the y-axis
2525
and the scale of the x-axis (scale_y / scale_x). Default = None, the
2626
scale ratio is not fixed.
2727
:param kwargs: kwargs passed through plotly.graph_objs.Scatter
@@ -78,7 +78,7 @@ def create_quiver(x, y, u, v, scale=.1, arrow_scale=.3,
7878
7979
# Create quiver
8080
fig = create_quiver(x, y, u, v, scale=.2, arrow_scale=.3, angle=math.pi/6,
81-
name='Wind Velocity', line=Line(width=1))
81+
name='Wind Velocity', line=dict(width=1))
8282
8383
# Add title to layout
8484
fig['layout'].update(title='Quiver Plot')
@@ -145,7 +145,7 @@ class _Quiver(object):
145145
Refer to FigureFactory.create_quiver() for docstring
146146
"""
147147
def __init__(self, x, y, u, v,
148-
scale, arrow_scale, angle, scaleratio = 1, **kwargs):
148+
scale, arrow_scale, angle, scaleratio=1, **kwargs):
149149
try:
150150
x = utils.flatten(x)
151151
except exceptions.PlotlyError:
@@ -228,7 +228,7 @@ def get_quiver_arrows(self):
228228
point1, endpoint, point2 y_values separated by a None to create
229229
the barb of the arrow.
230230
"""
231-
dif_x = [i - j for i, j in zip(self.end_x, self.x)]
231+
dif_x = [i - j for i, j in zip(self.end_x, self.x)]
232232
dif_y = [i - j for i, j in zip(self.end_y, self.y)]
233233

234234
# Get barb lengths(default arrow length = 30% barb length)

0 commit comments

Comments
 (0)