Skip to content

Commit 1ae5545

Browse files
committed
Added 'it' to ValueError msg and removed '.'s from end of doc string sentences
1 parent a708df2 commit 1ae5545

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

plotly/tools.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,8 +1551,8 @@ def _trisurf(x, y, z, simplices, colormap=None, color_func=None,
15511551
elif isinstance(color_func, (list, np.ndarray)):
15521552
# Pre-computed list / array of values to map onto color
15531553
if len(color_func) != len(simplices):
1554-
raise ValueError('If color_func is a list/array, must'
1555-
' be the same length as simplices')
1554+
raise ValueError("If color_func is a list/array, it must "
1555+
"be the same length as simplices.")
15561556
mean_dists = np.asarray(color_func)
15571557
else:
15581558
# apply user inputted function to calculate
@@ -1643,30 +1643,30 @@ def create_trisurf(x, y, z, simplices, colormap=None, color_func=None,
16431643
:param (array) z: data values of z in a 1D array
16441644
:param (array) simplices: an array of shape (ntri, 3) where ntri is
16451645
the number of triangles in the triangularization. Each row of the
1646-
array contains the indicies of the verticies of each triangle.
1646+
array contains the indicies of the verticies of each triangle
16471647
:param (str|list) colormap: either a plotly scale name, or a list
16481648
containing 2 triplets. These triplets must be of the form (a,b,c)
16491649
or 'rgb(x,y,z)' where a,b,c belong to the interval [0,1] and x,y,z
16501650
belong to [0,255]
16511651
:param (function|list) color_func: The parameter that determines the
16521652
coloring of the surface. Takes either a function with 3 arguments
16531653
x, y, z or a list/array of color values the same length as
1654-
simplices. If set to None, color will only depend on the z axis.
1654+
simplices. If set to None, color will only depend on the z axis
16551655
:param (str) title: title of the plot
16561656
:param (bool) plot_edges: determines if the triangles on the trisurf
16571657
are visible
16581658
:param (bool) showbackground: makes background in plot visible
16591659
:param (str) backgroundcolor: color of background. Takes a string of
1660-
the form 'rgb(x,y,z)' x,y,z are between 0 and 255 inclusive.
1660+
the form 'rgb(x,y,z)' x,y,z are between 0 and 255 inclusive
16611661
:param (str) gridcolor: color of the gridlines besides the axes. Takes
16621662
a string of the form 'rgb(x,y,z)' x,y,z are between 0 and 255
1663-
inclusive.
1663+
inclusive
16641664
:param (str) zerolinecolor: color of the axes. Takes a string of the
1665-
form 'rgb(x,y,z)' x,y,z are between 0 and 255 inclusive.
1665+
form 'rgb(x,y,z)' x,y,z are between 0 and 255 inclusive
16661666
:param (int|float) height: the height of the plot (in pixels)
16671667
:param (int|float) width: the width of the plot (in pixels)
16681668
:param (dict) aspectratio: a dictionary of the aspect ratio values for
1669-
the x, y and z axes. 'x', 'y' and 'z' take (int|float) values.
1669+
the x, y and z axes. 'x', 'y' and 'z' take (int|float) values
16701670
16711671
Example 1: Sphere
16721672
```

0 commit comments

Comments
 (0)