Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit cd0d582

Browse files
Merge pull request plotly#3825 from plotly/release-5.10.0
version changes for v5.10.0
2 parents 84b6284 + 473c263 commit cd0d582

File tree

14 files changed

+94
-36
lines changed

14 files changed

+94
-36
lines changed

‎CHANGELOG.md‎

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

5-
## UNRELEASED
5+
## [5.10.0] - 2022年08月11日
66

77
### Updated
8-
- Updated Plotly.js to from version 2.12.1 to version 2.13.3. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#2133----2022年07月25日) for more information. Notable changes include:
8+
- Updated Plotly.js to from version 2.12.1 to version 2.14.0. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#2140----2022年08月10日) for more information. Notable changes include:
9+
- Add support for `sankey` links with arrows
910
- Add `selections`, `newselection` and `activeselection` layout attributes to have persistent and editable selections over cartesian subplots
1011
- Add `unselected.line.color` and `unselected.line.opacity` options to `parcoords` trace
1112
- Display Plotly's new logo in the modebar

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
## Quickstart
3535

36-
`pip install plotly==5.9.0`
36+
`pip install plotly==5.10.0`
3737

3838
Inside [Jupyter](https://jupyter.org/install) (installable with `pip install "jupyterlab>=3" "ipywidgets>=7.6"`):
3939

@@ -78,13 +78,13 @@ Built on top of [plotly.js](https://github.com/plotly/plotly.js), `plotly.py` is
7878
plotly.py may be installed using pip...
7979

8080
```
81-
pip install plotly==5.9.0
81+
pip install plotly==5.10.0
8282
```
8383

8484
or conda.
8585

8686
```
87-
conda install -c plotly plotly=5.9.0
87+
conda install -c plotly plotly=5.10.0
8888
```
8989

9090
### JupyterLab Support
@@ -106,7 +106,7 @@ The instructions above apply to JupyterLab 3.x. **For JupyterLab 2 or earlier**,
106106

107107
```
108108
# JupyterLab 2.x renderer support
109-
jupyter labextension install jupyterlab-plotly@5.9.0 @jupyter-widgets/jupyterlab-manager
109+
jupyter labextension install jupyterlab-plotly@5.10.0 @jupyter-widgets/jupyterlab-manager
110110
```
111111

112112
Please check out our [Troubleshooting guide](https://plotly.com/python/troubleshooting/) if you run into any problems with JupyterLab.

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

Lines changed: 15 additions & 24 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jupyterlab-plotly",
3-
"version": "5.9.0",
3+
"version": "5.10.0",
44
"description": "The plotly Jupyter extension",
55
"author": "The plotly.py team",
66
"license": "MIT",
@@ -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.13.3"
68+
"plotly.js": "^2.14.0"
6969
},
7070
"jupyterlab": {
7171
"extension": "lib/jupyterlab-plugin",

‎packages/javascript/jupyterlab-plotly/src/Figure.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,7 @@ export class FigureView extends DOMWidgetView {
846846
var initialTraces = _.cloneDeep(this.model.get("_data"));
847847
var initialLayout = _.cloneDeep(this.model.get("_layout"));
848848
var config = this.model.get("_config");
849+
config.editSelection = false;
849850

850851
Plotly.newPlot(that.el, initialTraces, initialLayout, config).then(
851852
function () {

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@
199199
"valType": "boolean"
200200
}
201201
},
202+
"editSelection": {
203+
"description": "Enables moving selections.",
204+
"dflt": true,
205+
"valType": "boolean"
206+
},
202207
"fillFrame": {
203208
"description": "When `layout.autosize` is turned on, determines whether the graph fills the container (the default) or the screen (if set to *true*).",
204209
"dflt": false,
@@ -42051,6 +42056,13 @@
4205142056
"valType": "number"
4205242057
},
4205342058
"link": {
42059+
"arrowlen": {
42060+
"description": "Sets the length (in px) of the links arrow, if 0 no arrow will be drawn.",
42061+
"dflt": 0,
42062+
"editType": "calc",
42063+
"min": 0,
42064+
"valType": "number"
42065+
},
4205442066
"color": {
4205542067
"arrayOk": true,
4205642068
"description": "Sets the `link` color. It can be a single value, or an array for specifying color for each `link`. If `link.color` is omitted, then by default, a translucent grey link will be used.",

‎packages/python/plotly/plotly/_widget_version.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# for automated dev builds
33
#
44
# It is edited by hand prior to official releases
5-
__frontend_version__ = "^5.9.0"
5+
__frontend_version__ = "^5.10.0"

‎packages/python/plotly/plotly/graph_objs/_sankey.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,9 @@ def link(self):
339339
340340
Supported dict properties:
341341
342+
arrowlen
343+
Sets the length (in px) of the links arrow, if
344+
0 no arrow will be drawn.
342345
color
343346
Sets the `link` color. It can be a single
344347
value, or an array for specifying color for

‎packages/python/plotly/plotly/graph_objs/sankey/_link.py‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class Link(_BaseTraceHierarchyType):
99
_parent_path_str = "sankey"
1010
_path_str = "sankey.link"
1111
_valid_props = {
12+
"arrowlen",
1213
"color",
1314
"colorscaledefaults",
1415
"colorscales",
@@ -30,6 +31,27 @@ class Link(_BaseTraceHierarchyType):
3031
"valuesrc",
3132
}
3233

34+
# arrowlen
35+
# --------
36+
@property
37+
def arrowlen(self):
38+
"""
39+
Sets the length (in px) of the links arrow, if 0 no arrow will
40+
be drawn.
41+
42+
The 'arrowlen' property is a number and may be specified as:
43+
- An int or float in the interval [0, inf]
44+
45+
Returns
46+
-------
47+
int|float
48+
"""
49+
return self["arrowlen"]
50+
51+
@arrowlen.setter
52+
def arrowlen(self, val):
53+
self["arrowlen"] = val
54+
3355
# color
3456
# -----
3557
@property
@@ -599,6 +621,9 @@ def valuesrc(self, val):
599621
@property
600622
def _prop_descriptions(self):
601623
return """\
624+
arrowlen
625+
Sets the length (in px) of the links arrow, if 0 no
626+
arrow will be drawn.
602627
color
603628
Sets the `link` color. It can be a single value, or an
604629
array for specifying color for each `link`. If
@@ -691,6 +716,7 @@ def _prop_descriptions(self):
691716
def __init__(
692717
self,
693718
arg=None,
719+
arrowlen=None,
694720
color=None,
695721
colorscales=None,
696722
colorscaledefaults=None,
@@ -722,6 +748,9 @@ def __init__(
722748
arg
723749
dict of properties compatible with this constructor or
724750
an instance of :class:`plotly.graph_objs.sankey.Link`
751+
arrowlen
752+
Sets the length (in px) of the links arrow, if 0 no
753+
arrow will be drawn.
725754
color
726755
Sets the `link` color. It can be a single value, or an
727756
array for specifying color for each `link`. If
@@ -843,6 +872,10 @@ def __init__(
843872

844873
# Populate data dict with properties
845874
# ----------------------------------
875+
_v = arg.pop("arrowlen", None)
876+
_v = arrowlen if arrowlen is not None else _v
877+
if _v is not None:
878+
self["arrowlen"] = _v
846879
_v = arg.pop("color", None)
847880
_v = color if color is not None else _v
848881
if _v is not None:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# DO NOT EDIT
22
# This file is generated by the updatebundle setup.py command
3-
__plotlyjs_version__ = "2.13.3"
3+
__plotlyjs_version__ = "2.14.0"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /