Skip to content

Commit 17b7c27

Browse files
Merge branch 'master' into doc-prod
2 parents 667c51c + 8b73f32 commit 17b7c27

File tree

860 files changed

+35082
-3544
lines changed

Some content is hidden

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

860 files changed

+35082
-3544
lines changed

Diff for: CHANGELOG.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
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
6+
7+
8+
## [5.1.0] - 2021-06-28
9+
10+
- Updated Plotly.js to from version 2.1.0 to version 2.2.0. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#220----2021-06-28) for more information. These changes are reflected in the auto-generated `plotly.graph_objects` module. Notable changes include:
11+
- new `<trace>.legendgrouptitle` attribute for legend group titles
12+
- new `%h` text formatting directive for half-years
13+
- performance improvements and bug fixes
14+
515

616
## [5.0.0] - 2021-06-21
717

@@ -13,7 +23,7 @@ Items in this section may be considered backwards-incompatible changes for the p
1323
- Updated Plotly.js to from version 1.58.4 to version 2.1.0. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#210----2021-06-18) for more information. These changes are reflected in the auto-generated `plotly.graph_objects` module. Notable changes include:
1424
- dropped support for IE9 and IE10
1525
- dropped support for long-deprecated `graph_objects` like `area` traces and `scatter.(t|r)` and `layout.(radial|angular)axis` attributes
16-
- modebar no longer has `hovermode` or `showspikes` buttons by default (can be added back with `layout.modebar.add=v1hovermode`)
26+
- modebar no longer has hovermode or spikeline buttons by default (can be added back with `fig.update_layout(modebar_add=["v1hovermode", "toggleSpikeLines"])`)
1727
- "Aa" text no longer appears on legend items unless `mode="text"`
1828
- In `bar` traces, `textposition` now defaults to `"auto"`
1929
- Font size for legend and colorbar titles now matches axis title font size (slightly bigger)

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Our recommended IDE for Plotly’s Python graphing library is Dash Enterprise’
3737

3838
## Quickstart
3939

40-
`pip install plotly==5.0.0`
40+
`pip install plotly==5.1.0`
4141

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

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

8888
```
89-
pip install plotly==5.0.0
89+
pip install plotly==5.1.0
9090
```
9191

9292
or conda.
9393

9494
```
95-
conda install -c plotly plotly=5.0.0
95+
conda install -c plotly plotly=5.1.0
9696
```
9797

9898
### JupyterLab Support
@@ -114,7 +114,7 @@ The instructions above apply to JupyterLab 3.x. **For JupyterLab 2 or earlier**,
114114

115115
```
116116
# JupyterLab 2.x renderer support
117-
jupyter labextension install jupyterlab-plotly@5.0.0 @jupyter-widgets/jupyterlab-manager
117+
jupyter labextension install jupyterlab-plotly@5.1.0 @jupyter-widgets/jupyterlab-manager
118118
```
119119

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

Diff for: binder/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
jupytext
2-
plotly==5.0.0
2+
plotly==5.1.0
33
jupyter
44
notebook
55
pandas==1.0.3

Diff for: doc/apidoc/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# The short X.Y version
2929
version = ""
3030
# The full version, including alpha/beta/rc tags
31-
release = "5.0.0"
31+
release = "5.1.0"
3232

3333

3434
# -- General configuration ---------------------------------------------------

Diff for: doc/python/getting-started.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ We also encourage you to join the [Plotly Community Forum](http://community.plot
5858
`plotly` may be installed using `pip`:
5959

6060
```
61-
$ pip install plotly==5.0.0
61+
$ pip install plotly==5.1.0
6262
```
6363

6464
or `conda`:
6565

6666
```
67-
$ conda install -c plotly plotly=5.0.0
67+
$ conda install -c plotly plotly=5.1.0
6868
```
6969

7070
This package contains everything you need to write figures to standalone HTML files.
@@ -132,7 +132,7 @@ The instructions above apply to JupyterLab 3.x. **For JupyterLab 2 or earlier**,
132132

133133
```
134134
# JupyterLab 2.x renderer support
135-
jupyter labextension install jupyterlab-plotly@5.0.0 @jupyter-widgets/jupyterlab-manager
135+
jupyter labextension install jupyterlab-plotly@5.1.0 @jupyter-widgets/jupyterlab-manager
136136
```
137137

138138
Please check out our [Troubleshooting guide](/python/troubleshooting/) if you run into any problems with JupyterLab, particularly if you are using multiple python environments inside Jupyter.

Diff for: doc/python/legend.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ fig.show()
346346

347347
#### Grouped Legend Items
348348

349-
Grouping legend items together by setting the `legendgroup` attribute of traces causes their legend entries to be next to each other, and clicking on any legend entry in the group will show or hide the whole group.
349+
Grouping legend items together by setting the `legendgroup` attribute of traces causes their legend entries to be next to each other, and clicking on any legend entry in the group will show or hide the whole group. The `legendgrouptitle` attribute can be used to give titles to groups.
350350

351351
```python
352352
import plotly.graph_objects as go
@@ -357,6 +357,7 @@ fig.add_trace(go.Scatter(
357357
x=[1, 2, 3],
358358
y=[2, 1, 3],
359359
legendgroup="group", # this can be any string, not just "group"
360+
legendgrouptitle_text="First Group Title",
360361
name="first legend group",
361362
mode="markers",
362363
marker=dict(color="Crimson", size=10)
@@ -375,6 +376,7 @@ fig.add_trace(go.Scatter(
375376
x=[1, 2, 3],
376377
y=[4, 9, 2],
377378
legendgroup="group2",
379+
legendgrouptitle_text="Second Group Title",
378380
name="second legend group",
379381
mode="markers",
380382
marker=dict(color="MediumPurple", size=10)

Diff for: doc/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
plotly==5.0.0
1+
plotly==5.1.0
22
jupytext==1.1.1
33
jupyter
44
notebook

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jupyterlab-plotly",
3-
"version": "5.0.0",
3+
"version": "5.1.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.1.0"
68+
"plotly.js": "^2.2.0"
6969
},
7070
"jupyterlab": {
7171
"extension": "lib/jupyterlab-plugin",

0 commit comments

Comments
 (0)