Skip to content

Commit 5825349

Browse files
Merge pull request #3590 from plotly/pjs29
bump Plotly.js to 2.9.0
2 parents cfad786 + bb1bc95 commit 5825349

File tree

227 files changed

+4201
-23
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+4201
-23
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

55

6+
## UNRELEASED
7+
8+
### Updated
9+
- Updated Plotly.js to from version 2.8.3 to version 2.9.0. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#290----2022-02-04) for more information. Notable changes include:
10+
- Implement `ticklabelstep` to reduce labels on cartesian axes and colorbars
11+
- Display the version of plotly.js when hovering over the modebar
12+
13+
614
## [5.5.0] - 2021-12-20
715

816
### Added

packages/javascript/jupyterlab-plotly/package-lock.json

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/javascript/jupyterlab-plotly/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"@lumino/messaging": "^1.2.3",
6666
"@lumino/widgets": "^1.8.1",
6767
"lodash": "^4.17.4",
68-
"plotly.js": "^2.8.3"
68+
"plotly.js": "^2.9.0"
6969
},
7070
"jupyterlab": {
7171
"extension": "lib/jupyterlab-plugin",

packages/python/plotly/codegen/resources/plot-schema.json

Lines changed: 315 additions & 0 deletions
Large diffs are not rendered by default.

packages/python/plotly/plotly/graph_objs/_choropleth.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,16 @@ def colorbar(self):
274274
to the ticks. Left and right options are used
275275
when `orientation` is "h", top and bottom when
276276
`orientation` is "v".
277+
ticklabelstep
278+
Sets the spacing between tick labels as
279+
compared to the spacing between ticks. A value
280+
of 1 (default) means each tick gets a label. A
281+
value of 2 means shows every 2nd label. A
282+
larger value n means only every nth tick is
283+
labeled. `tick0` determines which labels are
284+
shown. Not implemented for axes with `type`
285+
"log" or "multicategory", or when `tickmode` is
286+
"array".
277287
ticklen
278288
Sets the tick length (in px).
279289
tickmode

packages/python/plotly/plotly/graph_objs/_choroplethmapbox.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,16 @@ def colorbar(self):
299299
to the ticks. Left and right options are used
300300
when `orientation` is "h", top and bottom when
301301
`orientation` is "v".
302+
ticklabelstep
303+
Sets the spacing between tick labels as
304+
compared to the spacing between ticks. A value
305+
of 1 (default) means each tick gets a label. A
306+
value of 2 means shows every 2nd label. A
307+
larger value n means only every nth tick is
308+
labeled. `tick0` determines which labels are
309+
shown. Not implemented for axes with `type`
310+
"log" or "multicategory", or when `tickmode` is
311+
"array".
302312
ticklen
303313
Sets the tick length (in px).
304314
tickmode

packages/python/plotly/plotly/graph_objs/_cone.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,16 @@ def colorbar(self):
400400
to the ticks. Left and right options are used
401401
when `orientation` is "h", top and bottom when
402402
`orientation` is "v".
403+
ticklabelstep
404+
Sets the spacing between tick labels as
405+
compared to the spacing between ticks. A value
406+
of 1 (default) means each tick gets a label. A
407+
value of 2 means shows every 2nd label. A
408+
larger value n means only every nth tick is
409+
labeled. `tick0` determines which labels are
410+
shown. Not implemented for axes with `type`
411+
"log" or "multicategory", or when `tickmode` is
412+
"array".
403413
ticklen
404414
Sets the tick length (in px).
405415
tickmode

packages/python/plotly/plotly/graph_objs/_contour.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,16 @@ def colorbar(self):
321321
to the ticks. Left and right options are used
322322
when `orientation` is "h", top and bottom when
323323
`orientation` is "v".
324+
ticklabelstep
325+
Sets the spacing between tick labels as
326+
compared to the spacing between ticks. A value
327+
of 1 (default) means each tick gets a label. A
328+
value of 2 means shows every 2nd label. A
329+
larger value n means only every nth tick is
330+
labeled. `tick0` determines which labels are
331+
shown. Not implemented for axes with `type`
332+
"log" or "multicategory", or when `tickmode` is
333+
"array".
324334
ticklen
325335
Sets the tick length (in px).
326336
tickmode

packages/python/plotly/plotly/graph_objs/_contourcarpet.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,16 @@ def colorbar(self):
495495
to the ticks. Left and right options are used
496496
when `orientation` is "h", top and bottom when
497497
`orientation` is "v".
498+
ticklabelstep
499+
Sets the spacing between tick labels as
500+
compared to the spacing between ticks. A value
501+
of 1 (default) means each tick gets a label. A
502+
value of 2 means shows every 2nd label. A
503+
larger value n means only every nth tick is
504+
labeled. `tick0` determines which labels are
505+
shown. Not implemented for axes with `type`
506+
"log" or "multicategory", or when `tickmode` is
507+
"array".
498508
ticklen
499509
Sets the tick length (in px).
500510
tickmode

packages/python/plotly/plotly/graph_objs/_densitymapbox.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,16 @@ def colorbar(self):
298298
to the ticks. Left and right options are used
299299
when `orientation` is "h", top and bottom when
300300
`orientation` is "v".
301+
ticklabelstep
302+
Sets the spacing between tick labels as
303+
compared to the spacing between ticks. A value
304+
of 1 (default) means each tick gets a label. A
305+
value of 2 means shows every 2nd label. A
306+
larger value n means only every nth tick is
307+
labeled. `tick0` determines which labels are
308+
shown. Not implemented for axes with `type`
309+
"log" or "multicategory", or when `tickmode` is
310+
"array".
301311
ticklen
302312
Sets the tick length (in px).
303313
tickmode

0 commit comments

Comments
 (0)