Skip to content

Commit 781d0c8

Browse files
committed
Updated default_json
1 parent 1fe18c2 commit 781d0c8

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

plotly/graph_reference/default-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2563,7 +2563,7 @@
25632563
"valType": "any"
25642564
},
25652565
"xref": {
2566-
"description": "Sets the shape's x coordinate axis. If set to an x axis id (e.g. *x* or *x2*), the `x` position refers to an x coordinate If set to *paper*, the `x` position refers to the distance from the left side of the plotting area in normalized coordinates where *0* (*1*) corresponds to the left (right) side.",
2566+
"description": "Sets the shape's x coordinate axis. If set to an x axis id (e.g. *x* or *x2*), the `x` position refers to an x coordinate If set to *paper*, the `x` position refers to the distance from the left side of the plotting area in normalized coordinates where *0* (*1*) corresponds to the left (right) side. If the axis `type` is *log*, then you must take the log of your desired range. If the axis `type` is *date*, then you must convert the date to unix time in milliseconds.",
25672567
"role": "info",
25682568
"valType": "enumerated",
25692569
"values": [

plotly/tools.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,26 +1582,26 @@ 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-
#if Xe is None:
1586-
# Xe = []
1587-
#for array in lists_coord[0]:
1588-
# for item in array:
1589-
# Xe.append(item)
1590-
1591-
#if Ye is None:
1592-
# Ye = []
1593-
#for array in lists_coord[1]:
1594-
# for item in array:
1595-
# Ye.append(item)
1596-
1597-
#if Ze is None:
1598-
# Ze = []
1599-
#for array in lists_coord[2]:
1600-
# for item in array:
1601-
# Ze.append(item)
1602-
1603-
Xe, Ye, Ze = ([reduce(lambda x, y: x+y,
1604-
lists_coord[k]) for k in range(3)])
1585+
if Xe is None:
1586+
Xe = []
1587+
for array in lists_coord[0]:
1588+
for item in array:
1589+
Xe.append(item)
1590+
1591+
if Ye is None:
1592+
Ye = []
1593+
for array in lists_coord[1]:
1594+
for item in array:
1595+
Ye.append(item)
1596+
1597+
if Ze is None:
1598+
Ze = []
1599+
for array in lists_coord[2]:
1600+
for item in array:
1601+
Ze.append(item)
1602+
1603+
#Xe, Ye, Ze = ([reduce(lambda x, y: x+y,
1604+
# lists_coord[k]) for k in range(3)])
16051605

16061606
# define the lines to be plotted
16071607
lines = graph_objs.Scatter3d(

0 commit comments

Comments
 (0)