@@ -1551,8 +1551,8 @@ def _trisurf(x, y, z, simplices, colormap=None, color_func=None,
1551
1551
elif isinstance (color_func , (list , np .ndarray )):
1552
1552
# Pre-computed list / array of values to map onto color
1553
1553
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." )
1556
1556
mean_dists = np .asarray (color_func )
1557
1557
else :
1558
1558
# apply user inputted function to calculate
@@ -1643,30 +1643,30 @@ def create_trisurf(x, y, z, simplices, colormap=None, color_func=None,
1643
1643
:param (array) z: data values of z in a 1D array
1644
1644
:param (array) simplices: an array of shape (ntri, 3) where ntri is
1645
1645
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
1647
1647
:param (str|list) colormap: either a plotly scale name, or a list
1648
1648
containing 2 triplets. These triplets must be of the form (a,b,c)
1649
1649
or 'rgb(x,y,z)' where a,b,c belong to the interval [0,1] and x,y,z
1650
1650
belong to [0,255]
1651
1651
:param (function|list) color_func: The parameter that determines the
1652
1652
coloring of the surface. Takes either a function with 3 arguments
1653
1653
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
1655
1655
:param (str) title: title of the plot
1656
1656
:param (bool) plot_edges: determines if the triangles on the trisurf
1657
1657
are visible
1658
1658
:param (bool) showbackground: makes background in plot visible
1659
1659
: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
1661
1661
:param (str) gridcolor: color of the gridlines besides the axes. Takes
1662
1662
a string of the form 'rgb(x,y,z)' x,y,z are between 0 and 255
1663
- inclusive.
1663
+ inclusive
1664
1664
: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
1666
1666
:param (int|float) height: the height of the plot (in pixels)
1667
1667
:param (int|float) width: the width of the plot (in pixels)
1668
1668
: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
1670
1670
1671
1671
Example 1: Sphere
1672
1672
```
0 commit comments