Skip to content

Commit bb1bc95

Browse files
bump Plotly.js to 2.9.0
1 parent cfad786 commit bb1bc95

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

Diff for: CHANGELOG.md

+8
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

Diff for: packages/javascript/jupyterlab-plotly/package-lock.json

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: packages/javascript/jupyterlab-plotly/package.json

+1-1
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",

Diff for: packages/python/plotly/codegen/resources/plot-schema.json

+315
Large diffs are not rendered by default.

Diff for: packages/python/plotly/plotly/graph_objs/_choropleth.py

+10
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

Diff for: packages/python/plotly/plotly/graph_objs/_choroplethmapbox.py

+10
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

Diff for: packages/python/plotly/plotly/graph_objs/_cone.py

+10
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

Diff for: packages/python/plotly/plotly/graph_objs/_contour.py

+10
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

Diff for: packages/python/plotly/plotly/graph_objs/_contourcarpet.py

+10
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

Diff for: packages/python/plotly/plotly/graph_objs/_densitymapbox.py

+10
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

Diff for: packages/python/plotly/plotly/graph_objs/_heatmap.py

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

Diff for: packages/python/plotly/plotly/graph_objs/_heatmapgl.py

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

Diff for: packages/python/plotly/plotly/graph_objs/_histogram2d.py

+10
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,16 @@ def colorbar(self):
359359
to the ticks. Left and right options are used
360360
when `orientation` is "h", top and bottom when
361361
`orientation` is "v".
362+
ticklabelstep
363+
Sets the spacing between tick labels as
364+
compared to the spacing between ticks. A value
365+
of 1 (default) means each tick gets a label. A
366+
value of 2 means shows every 2nd label. A
367+
larger value n means only every nth tick is
368+
labeled. `tick0` determines which labels are
369+
shown. Not implemented for axes with `type`
370+
"log" or "multicategory", or when `tickmode` is
371+
"array".
362372
ticklen
363373
Sets the tick length (in px).
364374
tickmode

Diff for: packages/python/plotly/plotly/graph_objs/_histogram2dcontour.py

+10
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,16 @@ def colorbar(self):
383383
to the ticks. Left and right options are used
384384
when `orientation` is "h", top and bottom when
385385
`orientation` is "v".
386+
ticklabelstep
387+
Sets the spacing between tick labels as
388+
compared to the spacing between ticks. A value
389+
of 1 (default) means each tick gets a label. A
390+
value of 2 means shows every 2nd label. A
391+
larger value n means only every nth tick is
392+
labeled. `tick0` determines which labels are
393+
shown. Not implemented for axes with `type`
394+
"log" or "multicategory", or when `tickmode` is
395+
"array".
386396
ticklen
387397
Sets the tick length (in px).
388398
tickmode

Diff for: packages/python/plotly/plotly/graph_objs/_isosurface.py

+10
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,16 @@ def colorbar(self):
406406
to the ticks. Left and right options are used
407407
when `orientation` is "h", top and bottom when
408408
`orientation` is "v".
409+
ticklabelstep
410+
Sets the spacing between tick labels as
411+
compared to the spacing between ticks. A value
412+
of 1 (default) means each tick gets a label. A
413+
value of 2 means shows every 2nd label. A
414+
larger value n means only every nth tick is
415+
labeled. `tick0` determines which labels are
416+
shown. Not implemented for axes with `type`
417+
"log" or "multicategory", or when `tickmode` is
418+
"array".
409419
ticklen
410420
Sets the tick length (in px).
411421
tickmode

Diff for: packages/python/plotly/plotly/graph_objs/_layout.py

+20
Original file line numberDiff line numberDiff line change
@@ -4242,6 +4242,16 @@ def xaxis(self):
42424242
axes linked by `matches` or `scaleanchor`, no
42434243
extra padding for inside labels would be added
42444244
by autorange, so that the scales could match.
4245+
ticklabelstep
4246+
Sets the spacing between tick labels as
4247+
compared to the spacing between ticks. A value
4248+
of 1 (default) means each tick gets a label. A
4249+
value of 2 means shows every 2nd label. A
4250+
larger value n means only every nth tick is
4251+
labeled. `tick0` determines which labels are
4252+
shown. Not implemented for axes with `type`
4253+
"log" or "multicategory", or when `tickmode` is
4254+
"array".
42454255
ticklen
42464256
Sets the tick length (in px).
42474257
tickmode
@@ -4727,6 +4737,16 @@ def yaxis(self):
47274737
axes linked by `matches` or `scaleanchor`, no
47284738
extra padding for inside labels would be added
47294739
by autorange, so that the scales could match.
4740+
ticklabelstep
4741+
Sets the spacing between tick labels as
4742+
compared to the spacing between ticks. A value
4743+
of 1 (default) means each tick gets a label. A
4744+
value of 2 means shows every 2nd label. A
4745+
larger value n means only every nth tick is
4746+
labeled. `tick0` determines which labels are
4747+
shown. Not implemented for axes with `type`
4748+
"log" or "multicategory", or when `tickmode` is
4749+
"array".
47304750
ticklen
47314751
Sets the tick length (in px).
47324752
tickmode

Diff for: packages/python/plotly/plotly/graph_objs/_mesh3d.py

+10
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,16 @@ def colorbar(self):
482482
to the ticks. Left and right options are used
483483
when `orientation` is "h", top and bottom when
484484
`orientation` is "v".
485+
ticklabelstep
486+
Sets the spacing between tick labels as
487+
compared to the spacing between ticks. A value
488+
of 1 (default) means each tick gets a label. A
489+
value of 2 means shows every 2nd label. A
490+
larger value n means only every nth tick is
491+
labeled. `tick0` determines which labels are
492+
shown. Not implemented for axes with `type`
493+
"log" or "multicategory", or when `tickmode` is
494+
"array".
485495
ticklen
486496
Sets the tick length (in px).
487497
tickmode

Diff for: packages/python/plotly/plotly/graph_objs/_streamtube.py

+10
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,16 @@ def colorbar(self):
375375
to the ticks. Left and right options are used
376376
when `orientation` is "h", top and bottom when
377377
`orientation` is "v".
378+
ticklabelstep
379+
Sets the spacing between tick labels as
380+
compared to the spacing between ticks. A value
381+
of 1 (default) means each tick gets a label. A
382+
value of 2 means shows every 2nd label. A
383+
larger value n means only every nth tick is
384+
labeled. `tick0` determines which labels are
385+
shown. Not implemented for axes with `type`
386+
"log" or "multicategory", or when `tickmode` is
387+
"array".
378388
ticklen
379389
Sets the tick length (in px).
380390
tickmode

Diff for: packages/python/plotly/plotly/graph_objs/_surface.py

+10
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,16 @@ def colorbar(self):
374374
to the ticks. Left and right options are used
375375
when `orientation` is "h", top and bottom when
376376
`orientation` is "v".
377+
ticklabelstep
378+
Sets the spacing between tick labels as
379+
compared to the spacing between ticks. A value
380+
of 1 (default) means each tick gets a label. A
381+
value of 2 means shows every 2nd label. A
382+
larger value n means only every nth tick is
383+
labeled. `tick0` determines which labels are
384+
shown. Not implemented for axes with `type`
385+
"log" or "multicategory", or when `tickmode` is
386+
"array".
377387
ticklen
378388
Sets the tick length (in px).
379389
tickmode

Diff for: packages/python/plotly/plotly/graph_objs/_volume.py

+10
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,16 @@ def colorbar(self):
407407
to the ticks. Left and right options are used
408408
when `orientation` is "h", top and bottom when
409409
`orientation` is "v".
410+
ticklabelstep
411+
Sets the spacing between tick labels as
412+
compared to the spacing between ticks. A value
413+
of 1 (default) means each tick gets a label. A
414+
value of 2 means shows every 2nd label. A
415+
larger value n means only every nth tick is
416+
labeled. `tick0` determines which labels are
417+
shown. Not implemented for axes with `type`
418+
"log" or "multicategory", or when `tickmode` is
419+
"array".
410420
ticklen
411421
Sets the tick length (in px).
412422
tickmode

Diff for: packages/python/plotly/plotly/graph_objs/bar/_marker.py

+10
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,16 @@ def colorbar(self):
404404
to the ticks. Left and right options are used
405405
when `orientation` is "h", top and bottom when
406406
`orientation` is "v".
407+
ticklabelstep
408+
Sets the spacing between tick labels as
409+
compared to the spacing between ticks. A value
410+
of 1 (default) means each tick gets a label. A
411+
value of 2 means shows every 2nd label. A
412+
larger value n means only every nth tick is
413+
labeled. `tick0` determines which labels are
414+
shown. Not implemented for axes with `type`
415+
"log" or "multicategory", or when `tickmode` is
416+
"array".
407417
ticklen
408418
Sets the tick length (in px).
409419
tickmode

0 commit comments

Comments
 (0)