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 a65c404

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

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎plotly/tools.py

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