Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5226650

Browse files
committed
Try again
1 parent a47b88d commit 5226650

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

plotly/tools.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,7 @@ def _tri_indices(simplices):
15491549

15501550
@staticmethod
15511551
def _trisurf(x, y, z, simplices, colormap=None,
1552-
plot_edges=None):
1552+
plot_edges=None, Xe=None, Ye=None, Ze=None):
15531553
"""
15541554
Refer to FigureFactory.create_trisurf() for docstring
15551555
"""
@@ -1582,18 +1582,20 @@ def _trisurf(x, y, z, simplices, colormap=None,
15821582
# None separates data corresponding to two consecutive triangles
15831583
lists_coord = ([[[T[k % 3][c] for k in range(4)]+[None]
15841584
for T in tri_vertices] for c in range(3)])
1585-
1586-
Xe = []
1585+
if Xe is None:
1586+
Xe = []
15871587
for array in lists_coord[0]:
15881588
for item in array:
15891589
Xe.append(item)
15901590

1591-
Ye = []
1591+
if Ye is None:
1592+
Ye = []
15921593
for array in lists_coord[1]:
15931594
for item in array:
15941595
Ye.append(item)
15951596

1596-
Ze = []
1597+
if Ze is None:
1598+
Ze = []
15971599
for array in lists_coord[2]:
15981600
for item in array:
15991601
Ze.append(item)

0 commit comments

Comments
 (0)