Skip to content

Commit 392f9fc

Browse files
committed
update to plotly.js 2.23.0
1 parent fc3ef00 commit 392f9fc

File tree

313 files changed

+8691
-1627
lines changed

Some content is hidden

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

313 files changed

+8691
-1627
lines changed

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

Lines changed: 7 additions & 7 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.22.0"
68+
"plotly.js": "^2.23.0"
6969
},
7070
"jupyterlab": {
7171
"extension": "lib/jupyterlab-plugin",

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

Lines changed: 838 additions & 230 deletions
Large diffs are not rendered by default.

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

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,15 @@ def colorbar(self):
354354
the title's location used to be set by the now
355355
deprecated `titleside` attribute.
356356
x
357-
Sets the x position of the color bar (in plot
358-
fraction). Defaults to 1.02 when `orientation`
359-
is "v" and 0.5 when `orientation` is "h".
357+
Sets the x position with respect to `xref` of
358+
the color bar (in plot fraction). When `xref`
359+
is "paper", defaults to 1.02 when `orientation`
360+
is "v" and 0.5 when `orientation` is "h". When
361+
`xref` is "container", defaults to 1 when
362+
`orientation` is "v" and 0.5 when `orientation`
363+
is "h". Must be between 0 and 1 if `xref` is
364+
"container" and between "-2" and 3 if `xref` is
365+
"paper".
360366
xanchor
361367
Sets this color bar's horizontal position
362368
anchor. This anchor binds the `x` position to
@@ -366,10 +372,20 @@ def colorbar(self):
366372
xpad
367373
Sets the amount of padding (in px) along the x
368374
direction.
375+
xref
376+
Sets the container `x` refers to. "container"
377+
spans the entire `width` of the plot. "paper"
378+
refers to the width of the plotting area only.
369379
y
370-
Sets the y position of the color bar (in plot
371-
fraction). Defaults to 0.5 when `orientation`
372-
is "v" and 1.02 when `orientation` is "h".
380+
Sets the y position with respect to `yref` of
381+
the color bar (in plot fraction). When `yref`
382+
is "paper", defaults to 0.5 when `orientation`
383+
is "v" and 1.02 when `orientation` is "h". When
384+
`yref` is "container", defaults to 0.5 when
385+
`orientation` is "v" and 1 when `orientation`
386+
is "h". Must be between 0 and 1 if `yref` is
387+
"container" and between "-2" and 3 if `yref` is
388+
"paper".
373389
yanchor
374390
Sets this color bar's vertical position anchor
375391
This anchor binds the `y` position to the
@@ -379,6 +395,10 @@ def colorbar(self):
379395
ypad
380396
Sets the amount of padding (in px) along the y
381397
direction.
398+
yref
399+
Sets the container `y` refers to. "container"
400+
spans the entire `height` of the plot. "paper"
401+
refers to the height of the plotting area only.
382402
383403
Returns
384404
-------

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

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,15 @@ def colorbar(self):
379379
the title's location used to be set by the now
380380
deprecated `titleside` attribute.
381381
x
382-
Sets the x position of the color bar (in plot
383-
fraction). Defaults to 1.02 when `orientation`
384-
is "v" and 0.5 when `orientation` is "h".
382+
Sets the x position with respect to `xref` of
383+
the color bar (in plot fraction). When `xref`
384+
is "paper", defaults to 1.02 when `orientation`
385+
is "v" and 0.5 when `orientation` is "h". When
386+
`xref` is "container", defaults to 1 when
387+
`orientation` is "v" and 0.5 when `orientation`
388+
is "h". Must be between 0 and 1 if `xref` is
389+
"container" and between "-2" and 3 if `xref` is
390+
"paper".
385391
xanchor
386392
Sets this color bar's horizontal position
387393
anchor. This anchor binds the `x` position to
@@ -391,10 +397,20 @@ def colorbar(self):
391397
xpad
392398
Sets the amount of padding (in px) along the x
393399
direction.
400+
xref
401+
Sets the container `x` refers to. "container"
402+
spans the entire `width` of the plot. "paper"
403+
refers to the width of the plotting area only.
394404
y
395-
Sets the y position of the color bar (in plot
396-
fraction). Defaults to 0.5 when `orientation`
397-
is "v" and 1.02 when `orientation` is "h".
405+
Sets the y position with respect to `yref` of
406+
the color bar (in plot fraction). When `yref`
407+
is "paper", defaults to 0.5 when `orientation`
408+
is "v" and 1.02 when `orientation` is "h". When
409+
`yref` is "container", defaults to 0.5 when
410+
`orientation` is "v" and 1 when `orientation`
411+
is "h". Must be between 0 and 1 if `yref` is
412+
"container" and between "-2" and 3 if `yref` is
413+
"paper".
398414
yanchor
399415
Sets this color bar's vertical position anchor
400416
This anchor binds the `y` position to the
@@ -404,6 +420,10 @@ def colorbar(self):
404420
ypad
405421
Sets the amount of padding (in px) along the y
406422
direction.
423+
yref
424+
Sets the container `y` refers to. "container"
425+
spans the entire `height` of the plot. "paper"
426+
refers to the height of the plotting area only.
407427
408428
Returns
409429
-------

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

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,15 @@ def colorbar(self):
477477
Note that the title's location used to be set
478478
by the now deprecated `titleside` attribute.
479479
x
480-
Sets the x position of the color bar (in plot
481-
fraction). Defaults to 1.02 when `orientation`
482-
is "v" and 0.5 when `orientation` is "h".
480+
Sets the x position with respect to `xref` of
481+
the color bar (in plot fraction). When `xref`
482+
is "paper", defaults to 1.02 when `orientation`
483+
is "v" and 0.5 when `orientation` is "h". When
484+
`xref` is "container", defaults to 1 when
485+
`orientation` is "v" and 0.5 when `orientation`
486+
is "h". Must be between 0 and 1 if `xref` is
487+
"container" and between "-2" and 3 if `xref` is
488+
"paper".
483489
xanchor
484490
Sets this color bar's horizontal position
485491
anchor. This anchor binds the `x` position to
@@ -489,10 +495,20 @@ def colorbar(self):
489495
xpad
490496
Sets the amount of padding (in px) along the x
491497
direction.
498+
xref
499+
Sets the container `x` refers to. "container"
500+
spans the entire `width` of the plot. "paper"
501+
refers to the width of the plotting area only.
492502
y
493-
Sets the y position of the color bar (in plot
494-
fraction). Defaults to 0.5 when `orientation`
495-
is "v" and 1.02 when `orientation` is "h".
503+
Sets the y position with respect to `yref` of
504+
the color bar (in plot fraction). When `yref`
505+
is "paper", defaults to 0.5 when `orientation`
506+
is "v" and 1.02 when `orientation` is "h". When
507+
`yref` is "container", defaults to 0.5 when
508+
`orientation` is "v" and 1 when `orientation`
509+
is "h". Must be between 0 and 1 if `yref` is
510+
"container" and between "-2" and 3 if `yref` is
511+
"paper".
496512
yanchor
497513
Sets this color bar's vertical position anchor
498514
This anchor binds the `y` position to the
@@ -502,6 +518,10 @@ def colorbar(self):
502518
ypad
503519
Sets the amount of padding (in px) along the y
504520
direction.
521+
yref
522+
Sets the container `y` refers to. "container"
523+
spans the entire `height` of the plot. "paper"
524+
refers to the height of the plotting area only.
505525
506526
Returns
507527
-------

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

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,15 @@ def colorbar(self):
401401
title's location used to be set by the now
402402
deprecated `titleside` attribute.
403403
x
404-
Sets the x position of the color bar (in plot
405-
fraction). Defaults to 1.02 when `orientation`
406-
is "v" and 0.5 when `orientation` is "h".
404+
Sets the x position with respect to `xref` of
405+
the color bar (in plot fraction). When `xref`
406+
is "paper", defaults to 1.02 when `orientation`
407+
is "v" and 0.5 when `orientation` is "h". When
408+
`xref` is "container", defaults to 1 when
409+
`orientation` is "v" and 0.5 when `orientation`
410+
is "h". Must be between 0 and 1 if `xref` is
411+
"container" and between "-2" and 3 if `xref` is
412+
"paper".
407413
xanchor
408414
Sets this color bar's horizontal position
409415
anchor. This anchor binds the `x` position to
@@ -413,10 +419,20 @@ def colorbar(self):
413419
xpad
414420
Sets the amount of padding (in px) along the x
415421
direction.
422+
xref
423+
Sets the container `x` refers to. "container"
424+
spans the entire `width` of the plot. "paper"
425+
refers to the width of the plotting area only.
416426
y
417-
Sets the y position of the color bar (in plot
418-
fraction). Defaults to 0.5 when `orientation`
419-
is "v" and 1.02 when `orientation` is "h".
427+
Sets the y position with respect to `yref` of
428+
the color bar (in plot fraction). When `yref`
429+
is "paper", defaults to 0.5 when `orientation`
430+
is "v" and 1.02 when `orientation` is "h". When
431+
`yref` is "container", defaults to 0.5 when
432+
`orientation` is "v" and 1 when `orientation`
433+
is "h". Must be between 0 and 1 if `yref` is
434+
"container" and between "-2" and 3 if `yref` is
435+
"paper".
420436
yanchor
421437
Sets this color bar's vertical position anchor
422438
This anchor binds the `y` position to the
@@ -426,6 +442,10 @@ def colorbar(self):
426442
ypad
427443
Sets the amount of padding (in px) along the y
428444
direction.
445+
yref
446+
Sets the container `y` refers to. "container"
447+
spans the entire `height` of the plot. "paper"
448+
refers to the height of the plotting area only.
429449
430450
Returns
431451
-------

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

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -575,9 +575,15 @@ def colorbar(self):
575575
the title's location used to be set by the now
576576
deprecated `titleside` attribute.
577577
x
578-
Sets the x position of the color bar (in plot
579-
fraction). Defaults to 1.02 when `orientation`
580-
is "v" and 0.5 when `orientation` is "h".
578+
Sets the x position with respect to `xref` of
579+
the color bar (in plot fraction). When `xref`
580+
is "paper", defaults to 1.02 when `orientation`
581+
is "v" and 0.5 when `orientation` is "h". When
582+
`xref` is "container", defaults to 1 when
583+
`orientation` is "v" and 0.5 when `orientation`
584+
is "h". Must be between 0 and 1 if `xref` is
585+
"container" and between "-2" and 3 if `xref` is
586+
"paper".
581587
xanchor
582588
Sets this color bar's horizontal position
583589
anchor. This anchor binds the `x` position to
@@ -587,10 +593,20 @@ def colorbar(self):
587593
xpad
588594
Sets the amount of padding (in px) along the x
589595
direction.
596+
xref
597+
Sets the container `x` refers to. "container"
598+
spans the entire `width` of the plot. "paper"
599+
refers to the width of the plotting area only.
590600
y
591-
Sets the y position of the color bar (in plot
592-
fraction). Defaults to 0.5 when `orientation`
593-
is "v" and 1.02 when `orientation` is "h".
601+
Sets the y position with respect to `yref` of
602+
the color bar (in plot fraction). When `yref`
603+
is "paper", defaults to 0.5 when `orientation`
604+
is "v" and 1.02 when `orientation` is "h". When
605+
`yref` is "container", defaults to 0.5 when
606+
`orientation` is "v" and 1 when `orientation`
607+
is "h". Must be between 0 and 1 if `yref` is
608+
"container" and between "-2" and 3 if `yref` is
609+
"paper".
594610
yanchor
595611
Sets this color bar's vertical position anchor
596612
This anchor binds the `y` position to the
@@ -600,6 +616,10 @@ def colorbar(self):
600616
ypad
601617
Sets the amount of padding (in px) along the y
602618
direction.
619+
yref
620+
Sets the container `y` refers to. "container"
621+
spans the entire `height` of the plot. "paper"
622+
refers to the height of the plotting area only.
603623
604624
Returns
605625
-------

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

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,15 @@ def colorbar(self):
378378
the title's location used to be set by the now
379379
deprecated `titleside` attribute.
380380
x
381-
Sets the x position of the color bar (in plot
382-
fraction). Defaults to 1.02 when `orientation`
383-
is "v" and 0.5 when `orientation` is "h".
381+
Sets the x position with respect to `xref` of
382+
the color bar (in plot fraction). When `xref`
383+
is "paper", defaults to 1.02 when `orientation`
384+
is "v" and 0.5 when `orientation` is "h". When
385+
`xref` is "container", defaults to 1 when
386+
`orientation` is "v" and 0.5 when `orientation`
387+
is "h". Must be between 0 and 1 if `xref` is
388+
"container" and between "-2" and 3 if `xref` is
389+
"paper".
384390
xanchor
385391
Sets this color bar's horizontal position
386392
anchor. This anchor binds the `x` position to
@@ -390,10 +396,20 @@ def colorbar(self):
390396
xpad
391397
Sets the amount of padding (in px) along the x
392398
direction.
399+
xref
400+
Sets the container `x` refers to. "container"
401+
spans the entire `width` of the plot. "paper"
402+
refers to the width of the plotting area only.
393403
y
394-
Sets the y position of the color bar (in plot
395-
fraction). Defaults to 0.5 when `orientation`
396-
is "v" and 1.02 when `orientation` is "h".
404+
Sets the y position with respect to `yref` of
405+
the color bar (in plot fraction). When `yref`
406+
is "paper", defaults to 0.5 when `orientation`
407+
is "v" and 1.02 when `orientation` is "h". When
408+
`yref` is "container", defaults to 0.5 when
409+
`orientation` is "v" and 1 when `orientation`
410+
is "h". Must be between 0 and 1 if `yref` is
411+
"container" and between "-2" and 3 if `yref` is
412+
"paper".
397413
yanchor
398414
Sets this color bar's vertical position anchor
399415
This anchor binds the `y` position to the
@@ -403,6 +419,10 @@ def colorbar(self):
403419
ypad
404420
Sets the amount of padding (in px) along the y
405421
direction.
422+
yref
423+
Sets the container `y` refers to. "container"
424+
spans the entire `height` of the plot. "paper"
425+
refers to the height of the plotting area only.
406426
407427
Returns
408428
-------

packages/python/plotly/plotly/graph_objs/_figure.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9989,14 +9989,23 @@ def add_image(
99899989
a legend item (provided that the legend itself is
99909990
visible).
99919991
x0
9992-
Set the image's x position.
9992+
Set the image's x position. The left edge of the image
9993+
(or the right edge if the x axis is reversed or dx is
9994+
negative) will be found at xmin=x0-dx/2
99939995
xaxis
99949996
Sets a reference between this trace's x coordinates and
99959997
a 2D cartesian x axis. If "x" (the default value), the
99969998
x coordinates refer to `layout.xaxis`. If "x2", the x
99979999
coordinates refer to `layout.xaxis2`, and so on.
999810000
y0
9999-
Set the image's y position.
10001+
Set the image's y position. The top edge of the image
10002+
(or the bottom edge if the y axis is NOT reversed or if
10003+
dy is negative) will be found at ymin=y0-dy/2. By
10004+
default when an image trace is included, the y axis
10005+
will be reversed so that the image is right-side-up,
10006+
but you can disable this by setting
10007+
yaxis.autorange=true or by providing an explicit y axis
10008+
range.
1000010009
yaxis
1000110010
Sets a reference between this trace's y coordinates and
1000210011
a 2D cartesian y axis. If "y" (the default value), the

0 commit comments

Comments
 (0)