You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+14
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,20 @@
2
2
All notable changes to this project will be documented in this file.
3
3
This project adheres to [Semantic Versioning](http://semver.org/).
4
4
5
+
## [5.21.0] - 2024-04-17
6
+
7
+
### Updated
8
+
- Updated Plotly.js from version 2.30.0 to version 2.31.1. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#2311----2024-04-15) for more information. These changes are reflected in the auto-generated `plotly.graph_objects` module. Notable changes include:
9
+
- Add `zorder` attribute to various cartesian traces for controlling stacking order of SVG traces drawn into a subplot [[#6918](https://github.com/plotly/plotly.js/pull/6918), [#6953](https://github.com/plotly/plotly.js/pull/6953)],
10
+
This feature was anonymously sponsored: thank you to our sponsor!
11
+
- Add "between" option to shape layer for placing them above grid lines and below traces [[#6927](https://github.com/plotly/plotly.js/pull/6927)],
12
+
with thanks to @my-tien for the contribution!
13
+
- Add "raw" `sizemode` to cone trace [[#6938](https://github.com/plotly/plotly.js/pull/6938)]
14
+
- Add `layout.hoversubplots` to enable hover effects across multiple cartesian suplots sharing one axis [[#6947](https://github.com/plotly/plotly.js/pull/6947), [#6950](https://github.com/plotly/plotly.js/pull/6950)]
Copy file name to clipboardExpand all lines: contributing.md
+24-1
Original file line number
Diff line number
Diff line change
@@ -224,7 +224,30 @@ the `plotly/plotly.js` GitHub repository (and place them in
224
224
`plotly/package_data`). It will then regenerate all of the `graph_objs`
225
225
classes based on the new schema.
226
226
227
-
For dev branches, it is also possible to use `updateplotlyjsdev --devrepo reponame --devbranch branchname` to update to development versions of `plotly.js`. This will fetch the `plotly.js` in the CircleCI artifact of the branch `branchname` of the repo `reponame`. If `--devrepo` or `--devbranch` are omitted, `updateplotlyjsdev` defaults using `plotly/plotly.js` and `master` respectively.
227
+
For dev branches, it is also possible to use `updateplotlyjsdev` in two configurations:
228
+
229
+
### CircleCI Release
230
+
231
+
If your devbranch is part of the official plotly.js repository, you can use
to update to development versions of `plotly.js`. This will fetch the `plotly.js` in the CircleCI artifact of the branch `branchname` of the repo `reponame`. If `--devrepo` or `--devbranch` are omitted, `updateplotlyjsdev` defaults using `plotly/plotly.js` and `master` respectively.
236
+
237
+
### Local Repository
238
+
239
+
If you have a local repository of `plotly.js` you'd like to try, you can run:
240
+
241
+
```bash
242
+
# In your plotly.js/ directory, prepare the package:
243
+
244
+
$ npm run build
245
+
$ npm pack
246
+
$ mv plotly.js-*.tgz plotly.js.tgz
247
+
248
+
# In your plotly.py/packages/python/plotly/ directory:
Earlier examples use `sizemode="absolute"` when adjusting the cone size scaling with `sizeref`. `sizemode` also supports `raw`(new in 5.21) and `scaled`.
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.
Copy file name to clipboardExpand all lines: doc/python/graphing-multiple-chart-types.md
+38-2
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ jupyter:
6
6
extension: .md
7
7
format_name: markdown
8
8
format_version: '1.3'
9
-
jupytext_version: 1.14.1
9
+
jupytext_version: 1.16.1
10
10
kernelspec:
11
11
display_name: Python 3 (ipykernel)
12
12
language: python
@@ -20,7 +20,7 @@ jupyter:
20
20
name: python
21
21
nbconvert_exporter: python
22
22
pygments_lexer: ipython3
23
-
version: 3.8.0
23
+
version: 3.10.11
24
24
plotly:
25
25
description: How to design figures with multiple chart types in python.
26
26
display_as: file_settings
@@ -208,5 +208,41 @@ fig.add_trace(
208
208
fig.show()
209
209
```
210
210
211
+
#### Trace Zorder
212
+
213
+
*New in 5.21*
214
+
215
+
You can move a trace in front of or behind another trace by setting its `zorder`. All traces have a default `zorder` of `0`. In the following example, we set `zorder` on the bar trace to `1` to move it in front of the scatter trace.
Use `hoversubplots` to define how hover effects expand to additional subplots. With `hoversubplots=axis`, hover effects are included on stacked subplots using the same axis when `hovermode` is set to `x`, `x unified`, `y`, or `y unified`.
Hover label text and colors default to trace colors in hover modes other than `unified`, and can be globally set via the `layout.hoverlabel` attributes. Hover label appearance can also be controlled per trace in `<trace>.hoverlabel`.
Copy file name to clipboardExpand all lines: doc/python/interactive-html-export.md
+5
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,11 @@ You can insert Plotly output and text related to your data into HTML templates u
64
64
```
65
65
<!DOCTYPE html>
66
66
<html>
67
+
<head>
68
+
<meta charset="utf-8" /> <!--It is necessary to use the UTF-8 encoding with plotly graphics to get e.g. negative signs to render correctly -->
0 commit comments