Skip to content

Commit 224e133

Browse files
authored
Merge pull request #5823 from senanurcetin/docs/figure-factory-returns-5396
docs: Correct quiver and streamline figure factory return types
2 parents 38374ac + 0b3cf5e commit 224e133

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎plotly/figure_factory/_quiver.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def create_quiver(
99
x, y, u, v, scale=0.1, arrow_scale=0.3, angle=math.pi / 9, scaleratio=None, **kwargs
1010
):
1111
"""
12-
Returns data for a quiver plot.
12+
Returns a figure for a quiver plot.
1313
1414
:param (list|ndarray) x: x coordinates of the arrow locations
1515
:param (list|ndarray) y: y coordinates of the arrow locations
@@ -27,7 +27,7 @@ def create_quiver(
2727
for more information on valid kwargs call
2828
help(plotly.graph_objs.Scatter)
2929
30-
:rtype (dict): returns a representation of quiver figure.
30+
:rtype (plotly.graph_objects.Figure): returns a representation of quiver figure.
3131
3232
Example 1: Trivial Quiver
3333

‎plotly/figure_factory/_streamline.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def create_streamline(
3838
x, y, u, v, density=1, angle=math.pi / 9, arrow_scale=0.09, **kwargs
3939
):
4040
"""
41-
Returns data for a streamline plot.
41+
Returns a figure for a streamline plot.
4242
4343
:param (list|ndarray) x: 1 dimensional, evenly spaced list or array
4444
:param (list|ndarray) y: 1 dimensional, evenly spaced list or array
@@ -55,7 +55,7 @@ def create_streamline(
5555
for more information on valid kwargs call
5656
help(plotly.graph_objs.Scatter)
5757
58-
:rtype (dict): returns a representation of streamline figure.
58+
:rtype (plotly.graph_objects.Figure): returns a representation of streamline figure.
5959
6060
Example 1: Plot simple streamline and increase arrow size
6161

0 commit comments

Comments
 (0)