Skip to content

Commit 9c365ce

Browse files
authored
Merge pull request #4360 from plotly/update-doc-prod-with-5-17
Update docs to version 5.17
2 parents 83e5cfa + 59cdd99 commit 9c365ce

File tree

132 files changed

+4950
-214
lines changed

Some content is hidden

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

132 files changed

+4950
-214
lines changed

Diff for: .circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2.1
22

33
orbs:
4-
browser-tools: circleci/browser-tools@1.4.3
4+
browser-tools: circleci/browser-tools@1.4.5
55

66
commands:
77
test_core:

Diff for: CHANGELOG.md

+14
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
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+
## [5.17.0] - 2023-09-15
6+
7+
### Updated
8+
- Improved json docstrings, added `BasePlotlyType.to_json()` method [[#4301](https://github.com/plotly/plotly.py/pull/4301)]
9+
- Updated Plotly.js from version 2.25.2 to version 2.26.0. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#2260----2023-08-24) for more information. These changes are reflected in the auto-generated `plotly.graph_objects` module. Notable changes include:
10+
- Add "min", "max", "min reversed" and "max reversed" autorange options and handle partial ranges (i.e. one end being null), add `autorangeoptions` (`clipmin`, `clipmax`, `minallowed`, `maxallowed`, `include`) as well as `minallowed` and `maxallowed` to cartesian, gl3d and radial axes [[#6547](https://github.com/plotly/plotly.js/pull/6547)]
11+
- Add [n]-sigma (std deviations) box plots as an alternative to quartiles [[#6697](https://github.com/plotly/plotly.js/issues/6697)], with thanks to @28raining for the contribution!
12+
- Add "top left" & "top center" side options to legend title [[#6711](https://github.com/plotly/plotly.js/pull/6711)], with thanks to @28raining for the contribution!
13+
- Add "false" option to `scaleanchor` to allow removing a constraint that is set by default [[#6712](https://github.com/plotly/plotly.js/pull/6712)], with thanks to @lvlte for the contribution!
14+
15+
16+
### Fixed
17+
- Fixed two issues with px.imshow: [[#4330](https://github.com/plotly/plotly.py/issues/4330)] when facet_col is an earlier dimension than animation_frame for xarrays and [[#4329](https://github.com/plotly/plotly.py/issues/4329)] when facet_col has string coordinates in xarrays [[#4331](https://github.com/plotly/plotly.py/pull/4331)]
18+
519
## [5.16.1] - 2023-08-16
620

721
### Fixed

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
## Quickstart
3535

36-
`pip install plotly==5.16.1`
36+
`pip install plotly==5.17.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.16.1
81+
pip install plotly==5.17.0
8282
```
8383

8484
or conda.
8585

8686
```
87-
conda install -c plotly plotly=5.16.1
87+
conda install -c plotly plotly=5.17.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.16.1 @jupyter-widgets/jupyterlab-manager
109+
jupyter labextension install jupyterlab-plotly@5.17.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.

Diff for: binder/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
jupytext
2-
plotly==5.16.1
2+
plotly==5.17.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.16.1"
31+
release = "5.17.0"
3232

3333

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

Diff for: doc/python/3d-axes.md

+37-8
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ jupyter:
55
text_representation:
66
extension: .md
77
format_name: markdown
8-
format_version: '1.1'
9-
jupytext_version: 1.1.1
8+
format_version: '1.3'
9+
jupytext_version: 1.15.1
1010
kernelspec:
11-
display_name: Python 3
11+
display_name: Python 3 (ipykernel)
1212
language: python
1313
name: python3
1414
language_info:
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.7.3
23+
version: 3.10.4
2424
plotly:
2525
description: How to format axes of 3d plots in Python with Plotly.
2626
display_as: 3d_charts
@@ -41,6 +41,8 @@ set the range, title, ticks, color etc. of the axes.
4141

4242
For creating 3D charts, see [this page](https://plotly.com/python/3d-charts/).
4343

44+
Set `range` on an axis to manually configure a range for that axis. If you don't set `range`, it's automatically calculated. In this example, we set a `range` on `xaxis`, `yaxis`, and `zaxis`.
45+
4446
```python
4547
import plotly.graph_objects as go
4648
import numpy as np
@@ -66,6 +68,37 @@ fig.update_layout(
6668
fig.show()
6769
```
6870

71+
### Setting only a Lower or Upper Bound for Range
72+
73+
*New in 5.17*
74+
75+
You can also set just a lower or upper bound for `range`. In this case, autorange is used for the other bound. In this example, we apply autorange to the lower bound of the `yaxis` and the upper bound of `zaxis` by setting them to `None`.
76+
77+
```python
78+
import plotly.graph_objects as go
79+
import numpy as np
80+
np.random.seed(1)
81+
82+
N = 70
83+
84+
fig = go.Figure(data=[go.Mesh3d(x=(70*np.random.randn(N)),
85+
y=(55*np.random.randn(N)),
86+
z=(40*np.random.randn(N)),
87+
opacity=0.5,
88+
color='rgba(244,22,100,0.6)'
89+
)])
90+
91+
fig.update_layout(
92+
scene = dict(
93+
xaxis = dict(nticks=4, range=[-100,100],),
94+
yaxis = dict(nticks=4, range=[None, 100],),
95+
zaxis = dict(nticks=4, range=[-100, None],),),
96+
width=700,
97+
margin=dict(r=20, l=10, b=10, t=10))
98+
99+
fig.show()
100+
```
101+
69102
### Fixed Ratio Axes
70103

71104
```python
@@ -226,7 +259,3 @@ fig.update_layout(scene=dict(xaxis_showspikes=False,
226259
yaxis_showspikes=False))
227260
fig.show()
228261
```
229-
230-
```python
231-
232-
```

0 commit comments

Comments
 (0)