Skip to content

Commit a65c404

Browse files
authored
Merge pull request #554 from plotly/trisurf-lists-to-arrays
force facecolor to be an array, NOT a list
2 parents 523f921 + c153df5 commit a65c404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plotly/tools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3338,7 +3338,7 @@ def _trisurf(x, y, z, simplices, show_colorbar, edges_color,
33383338
facecolor.append(color)
33393339

33403340
# Make sure facecolor is a list so output is consistent across Pythons
3341-
facecolor = list(facecolor)
3341+
facecolor = np.asarray(facecolor)
33423342
ii, jj, kk = simplices.T
33433343

33443344
triangles = graph_objs.Mesh3d(x=x, y=y, z=z, facecolor=facecolor,

0 commit comments

Comments
 (0)