Skip to content

Commit d8d8697

Browse files
committed
Merge branch 'degzhaus/add_quiver' of https://github.com/degzhaus/plotly.js into degzhaus-add-quiver
2 parents a556e16 + d2ba006 commit d8d8697

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

draftlogs/7710_add.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
- Add `quiver` trace type to visualize vector fields using arrows [[#7710](https://github.com/plotly/plotly.js/pull/7710)]
1+
- Add `quiver` trace type to visualize vector fields using arrows [[#7710](https://github.com/plotly/plotly.js/pull/7710)], with thanks to @degzhaus for the contribution!

test/image/mocks/quiver_colorscale.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
"v": [1, 1, 1, 2, 2, 2, 3, 3, 3],
99
"sizemode": "scaled",
1010
"anchor": "tail",
11+
"anglemode": "paper",
1112
"marker": {
12-
"color": [1.41, 2.24, 3.16, 2.24, 2.83, 3.61, 3.16, 3.61, 4.24],
13-
"colorscale": "Viridis",
1413
"showscale": true,
1514
"colorbar": {
1615
"title": {"text": "Magnitude"}
@@ -22,6 +21,9 @@
2221
"layout": {
2322
"width": 600,
2423
"height": 500,
25-
"title": {"text": "Quiver with Colorscale"}
24+
"title": {
25+
"text": "Quiver with Colorscale",
26+
"subtitle": {"text": "When using a colorscale, vector magnitude is used for color,<br> unless marker.color is an array of values"}
27+
}
2628
}
2729
}

0 commit comments

Comments
 (0)