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 da847bd

Browse filesBrowse files
authored
Merge pull request plotly#556 from plotly/trisurf-colorbar-visible
make sure colorbar points are lists of first point and update test
2 parents a65c404 + c251668 commit da847bd
Copy full SHA for da847bd

File tree

Expand file treeCollapse file tree

3 files changed

+7
-7
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+7
-7
lines changed

‎plotly/tests/test_optional/test_figure_factory.py

Copy file name to clipboardExpand all lines: plotly/tests/test_optional/test_figure_factory.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -903,9 +903,9 @@ def test_trisurf_all_args(self):
903903
'mode': 'markers',
904904
'showlegend': False,
905905
'type': 'scatter3d',
906-
'x': -1.0,
907-
'y': -1.0,
908-
'z': 1.0}],
906+
'x': [-1.0],
907+
'y': [-1.0],
908+
'z': [1.0]}],
909909
'layout': {'height': 800,
910910
'scene': {'aspectratio': {'x': 1, 'y': 1, 'z': 1},
911911
'xaxis': {'backgroundcolor': 'rgb(230, 230, 230)',

‎plotly/tools.py

Copy file name to clipboardExpand all lines: plotly/tools.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3352,9 +3352,9 @@ def _trisurf(x, y, z, simplices, show_colorbar, edges_color,
33523352
colorscale = FigureFactory._convert_colorscale_to_rgb(colorscale)
33533353

33543354
colorbar = graph_objs.Scatter3d(
3355-
x=x[0],
3356-
y=y[0],
3357-
z=z[0],
3355+
x=x[:1],
3356+
y=y[:1],
3357+
z=z[:1],
33583358
mode='markers',
33593359
marker=dict(
33603360
size=0.1,

‎plotly/version.py

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.12.9'
1+
__version__ = '1.12.10'

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.