Skip to content

Commit f782065

Browse files
committed
Update Plotly.js version to 2.26.0
1 parent 9b3b592 commit f782065

File tree

118 files changed

+4660
-133
lines changed

Some content is hidden

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

118 files changed

+4660
-133
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.25.2"
68+
"plotly.js": "^2.26.0"
6969
},
7070
"jupyterlab": {
7171
"extension": "lib/jupyterlab-plugin",

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

Lines changed: 410 additions & 24 deletions
Large diffs are not rendered by default.

packages/python/plotly/plotly/graph_objs/_box.py

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,13 @@ class Box(_BaseTraceType):
5858
"q3src",
5959
"quartilemethod",
6060
"sd",
61+
"sdmultiple",
6162
"sdsrc",
6263
"selected",
6364
"selectedpoints",
6465
"showlegend",
66+
"showwhiskers",
67+
"sizemode",
6568
"stream",
6669
"text",
6770
"textsrc",
@@ -1344,6 +1347,28 @@ def sd(self):
13441347
def sd(self, val):
13451348
self["sd"] = val
13461349

1350+
# sdmultiple
1351+
# ----------
1352+
@property
1353+
def sdmultiple(self):
1354+
"""
1355+
Scales the box size when sizemode=sd Allowing boxes to be drawn
1356+
across any stddev range For example 1-stddev, 3-stddev,
1357+
5-stddev
1358+
1359+
The 'sdmultiple' property is a number and may be specified as:
1360+
- An int or float in the interval [0, inf]
1361+
1362+
Returns
1363+
-------
1364+
int|float
1365+
"""
1366+
return self["sdmultiple"]
1367+
1368+
@sdmultiple.setter
1369+
def sdmultiple(self, val):
1370+
self["sdmultiple"] = val
1371+
13471372
# sdsrc
13481373
# -----
13491374
@property
@@ -1436,6 +1461,52 @@ def showlegend(self):
14361461
def showlegend(self, val):
14371462
self["showlegend"] = val
14381463

1464+
# showwhiskers
1465+
# ------------
1466+
@property
1467+
def showwhiskers(self):
1468+
"""
1469+
Determines whether or not whiskers are visible. Defaults to
1470+
true for `sizemode` "quartiles", false for "sd".
1471+
1472+
The 'showwhiskers' property must be specified as a bool
1473+
(either True, or False)
1474+
1475+
Returns
1476+
-------
1477+
bool
1478+
"""
1479+
return self["showwhiskers"]
1480+
1481+
@showwhiskers.setter
1482+
def showwhiskers(self, val):
1483+
self["showwhiskers"] = val
1484+
1485+
# sizemode
1486+
# --------
1487+
@property
1488+
def sizemode(self):
1489+
"""
1490+
Sets the upper and lower bound for the boxes quartiles means
1491+
box is drawn between Q1 and Q3 SD means the box is drawn
1492+
between Mean +- Standard Deviation Argument sdmultiple (default
1493+
1) to scale the box size So it could be drawn 1-stddev,
1494+
3-stddev etc
1495+
1496+
The 'sizemode' property is an enumeration that may be specified as:
1497+
- One of the following enumeration values:
1498+
['quartiles', 'sd']
1499+
1500+
Returns
1501+
-------
1502+
Any
1503+
"""
1504+
return self["sizemode"]
1505+
1506+
@sizemode.setter
1507+
def sizemode(self, val):
1508+
self["sizemode"] = val
1509+
14391510
# stream
14401511
# ------
14411512
@property
@@ -2394,6 +2465,10 @@ def _prop_descriptions(self):
23942465
signature. If `sd` is not provided but a sample (in `y`
23952466
or `x`) is set, we compute the standard deviation for
23962467
each box using the sample values.
2468+
sdmultiple
2469+
Scales the box size when sizemode=sd Allowing boxes to
2470+
be drawn across any stddev range For example 1-stddev,
2471+
3-stddev, 5-stddev
23972472
sdsrc
23982473
Sets the source reference on Chart Studio Cloud for
23992474
`sd`.
@@ -2410,6 +2485,16 @@ def _prop_descriptions(self):
24102485
showlegend
24112486
Determines whether or not an item corresponding to this
24122487
trace is shown in the legend.
2488+
showwhiskers
2489+
Determines whether or not whiskers are visible.
2490+
Defaults to true for `sizemode` "quartiles", false for
2491+
"sd".
2492+
sizemode
2493+
Sets the upper and lower bound for the boxes quartiles
2494+
means box is drawn between Q1 and Q3 SD means the box
2495+
is drawn between Mean +- Standard Deviation Argument
2496+
sdmultiple (default 1) to scale the box size So it
2497+
could be drawn 1-stddev, 3-stddev etc
24132498
stream
24142499
:class:`plotly.graph_objects.box.Stream` instance or
24152500
dict with compatible properties
@@ -2618,10 +2703,13 @@ def __init__(
26182703
q3src=None,
26192704
quartilemethod=None,
26202705
sd=None,
2706+
sdmultiple=None,
26212707
sdsrc=None,
26222708
selected=None,
26232709
selectedpoints=None,
26242710
showlegend=None,
2711+
showwhiskers=None,
2712+
sizemode=None,
26252713
stream=None,
26262714
text=None,
26272715
textsrc=None,
@@ -2942,6 +3030,10 @@ def __init__(
29423030
signature. If `sd` is not provided but a sample (in `y`
29433031
or `x`) is set, we compute the standard deviation for
29443032
each box using the sample values.
3033+
sdmultiple
3034+
Scales the box size when sizemode=sd Allowing boxes to
3035+
be drawn across any stddev range For example 1-stddev,
3036+
3-stddev, 5-stddev
29453037
sdsrc
29463038
Sets the source reference on Chart Studio Cloud for
29473039
`sd`.
@@ -2958,6 +3050,16 @@ def __init__(
29583050
showlegend
29593051
Determines whether or not an item corresponding to this
29603052
trace is shown in the legend.
3053+
showwhiskers
3054+
Determines whether or not whiskers are visible.
3055+
Defaults to true for `sizemode` "quartiles", false for
3056+
"sd".
3057+
sizemode
3058+
Sets the upper and lower bound for the boxes quartiles
3059+
means box is drawn between Q1 and Q3 SD means the box
3060+
is drawn between Mean +- Standard Deviation Argument
3061+
sdmultiple (default 1) to scale the box size So it
3062+
could be drawn 1-stddev, 3-stddev etc
29613063
stream
29623064
:class:`plotly.graph_objects.box.Stream` instance or
29633065
dict with compatible properties
@@ -3342,6 +3444,10 @@ def __init__(
33423444
_v = sd if sd is not None else _v
33433445
if _v is not None:
33443446
self["sd"] = _v
3447+
_v = arg.pop("sdmultiple", None)
3448+
_v = sdmultiple if sdmultiple is not None else _v
3449+
if _v is not None:
3450+
self["sdmultiple"] = _v
33453451
_v = arg.pop("sdsrc", None)
33463452
_v = sdsrc if sdsrc is not None else _v
33473453
if _v is not None:
@@ -3358,6 +3464,14 @@ def __init__(
33583464
_v = showlegend if showlegend is not None else _v
33593465
if _v is not None:
33603466
self["showlegend"] = _v
3467+
_v = arg.pop("showwhiskers", None)
3468+
_v = showwhiskers if showwhiskers is not None else _v
3469+
if _v is not None:
3470+
self["showwhiskers"] = _v
3471+
_v = arg.pop("sizemode", None)
3472+
_v = sizemode if sizemode is not None else _v
3473+
if _v is not None:
3474+
self["sizemode"] = _v
33613475
_v = arg.pop("stream", None)
33623476
_v = stream if stream is not None else _v
33633477
if _v is not None:

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2167,10 +2167,13 @@ def add_box(
21672167
q3src=None,
21682168
quartilemethod=None,
21692169
sd=None,
2170+
sdmultiple=None,
21702171
sdsrc=None,
21712172
selected=None,
21722173
selectedpoints=None,
21732174
showlegend=None,
2175+
showwhiskers=None,
2176+
sizemode=None,
21742177
stream=None,
21752178
text=None,
21762179
textsrc=None,
@@ -2491,6 +2494,10 @@ def add_box(
24912494
signature. If `sd` is not provided but a sample (in `y`
24922495
or `x`) is set, we compute the standard deviation for
24932496
each box using the sample values.
2497+
sdmultiple
2498+
Scales the box size when sizemode=sd Allowing boxes to
2499+
be drawn across any stddev range For example 1-stddev,
2500+
3-stddev, 5-stddev
24942501
sdsrc
24952502
Sets the source reference on Chart Studio Cloud for
24962503
`sd`.
@@ -2507,6 +2514,16 @@ def add_box(
25072514
showlegend
25082515
Determines whether or not an item corresponding to this
25092516
trace is shown in the legend.
2517+
showwhiskers
2518+
Determines whether or not whiskers are visible.
2519+
Defaults to true for `sizemode` "quartiles", false for
2520+
"sd".
2521+
sizemode
2522+
Sets the upper and lower bound for the boxes quartiles
2523+
means box is drawn between Q1 and Q3 SD means the box
2524+
is drawn between Mean +- Standard Deviation Argument
2525+
sdmultiple (default 1) to scale the box size So it
2526+
could be drawn 1-stddev, 3-stddev etc
25102527
stream
25112528
:class:`plotly.graph_objects.box.Stream` instance or
25122529
dict with compatible properties
@@ -2738,10 +2755,13 @@ def add_box(
27382755
q3src=q3src,
27392756
quartilemethod=quartilemethod,
27402757
sd=sd,
2758+
sdmultiple=sdmultiple,
27412759
sdsrc=sdsrc,
27422760
selected=selected,
27432761
selectedpoints=selectedpoints,
27442762
showlegend=showlegend,
2763+
showwhiskers=showwhiskers,
2764+
sizemode=sizemode,
27452765
stream=stream,
27462766
text=text,
27472767
textsrc=textsrc,

packages/python/plotly/plotly/graph_objs/_figurewidget.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2171,10 +2171,13 @@ def add_box(
21712171
q3src=None,
21722172
quartilemethod=None,
21732173
sd=None,
2174+
sdmultiple=None,
21742175
sdsrc=None,
21752176
selected=None,
21762177
selectedpoints=None,
21772178
showlegend=None,
2179+
showwhiskers=None,
2180+
sizemode=None,
21782181
stream=None,
21792182
text=None,
21802183
textsrc=None,
@@ -2495,6 +2498,10 @@ def add_box(
24952498
signature. If `sd` is not provided but a sample (in `y`
24962499
or `x`) is set, we compute the standard deviation for
24972500
each box using the sample values.
2501+
sdmultiple
2502+
Scales the box size when sizemode=sd Allowing boxes to
2503+
be drawn across any stddev range For example 1-stddev,
2504+
3-stddev, 5-stddev
24982505
sdsrc
24992506
Sets the source reference on Chart Studio Cloud for
25002507
`sd`.
@@ -2511,6 +2518,16 @@ def add_box(
25112518
showlegend
25122519
Determines whether or not an item corresponding to this
25132520
trace is shown in the legend.
2521+
showwhiskers
2522+
Determines whether or not whiskers are visible.
2523+
Defaults to true for `sizemode` "quartiles", false for
2524+
"sd".
2525+
sizemode
2526+
Sets the upper and lower bound for the boxes quartiles
2527+
means box is drawn between Q1 and Q3 SD means the box
2528+
is drawn between Mean +- Standard Deviation Argument
2529+
sdmultiple (default 1) to scale the box size So it
2530+
could be drawn 1-stddev, 3-stddev etc
25142531
stream
25152532
:class:`plotly.graph_objects.box.Stream` instance or
25162533
dict with compatible properties
@@ -2742,10 +2759,13 @@ def add_box(
27422759
q3src=q3src,
27432760
quartilemethod=quartilemethod,
27442761
sd=sd,
2762+
sdmultiple=sdmultiple,
27452763
sdsrc=sdsrc,
27462764
selected=selected,
27472765
selectedpoints=selectedpoints,
27482766
showlegend=showlegend,
2767+
showwhiskers=showwhiskers,
2768+
sizemode=sizemode,
27492769
stream=stream,
27502770
text=text,
27512771
textsrc=textsrc,

0 commit comments

Comments
 (0)