Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c5a9ac3

Browse filesBrowse files
committed
Minor formatting updates
1 parent e0da828 commit c5a9ac3
Copy full SHA for c5a9ac3

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎plotly/figure_factory/_quiver.py

Copy file name to clipboardExpand all lines: plotly/figure_factory/_quiver.py
+5-5Lines changed: 5 additions & 5 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.