Skip to content

Update docs to version 5.17 #4360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 39 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
d79add7
remove duplicate example
LiamConnors Jul 21, 2023
092e8ba
Update to_plotly_json docstring, and implement helper method to creat…
itsluketwist Jul 28, 2023
07b4593
Method rename and removal to ensure consistency.
itsluketwist Aug 2, 2023
d56abff
add examples for new autorangeoptions and
LiamConnors Aug 2, 2023
3fe31cf
format code
LiamConnors Aug 2, 2023
31034e3
Update 3d-axes.md
LiamConnors Aug 2, 2023
eae0c14
Merge branch 'master' into feature/update-json-funcs
itsluketwist Aug 11, 2023
831be15
Fix facet_col and animation_frame in px.imshow for xarrays.
Karl-Krauth Aug 17, 2023
b35dc73
Add changelog entry.
Karl-Krauth Aug 17, 2023
7ef805c
Use faster plotly.io serialization.
itsluketwist Aug 18, 2023
76be0e9
Merge branch 'master' into feature/update-json-funcs
itsluketwist Aug 18, 2023
b750692
Move changelog entry to unreleased section.
Karl-Krauth Aug 19, 2023
d833fd5
Update CHANGELOG.md
alexcjohnson Aug 19, 2023
9b904c5
Clean up imports and docstrings for consistency.
itsluketwist Aug 21, 2023
43d0432
Update `to_plotly_json` docstrings, add to CHANGELOG.md.
itsluketwist Aug 22, 2023
c838fec
Merge pull request #4331 from Karl-Krauth/imshow-xarray-bugfixes
alexcjohnson Aug 22, 2023
01bbae9
Merge branch 'master' into feature/update-json-funcs
alexcjohnson Aug 22, 2023
b4e307c
Merge pull request #4301 from itsluketwist/feature/update-json-funcs
alexcjohnson Aug 22, 2023
c757d28
Corrected minor type in heading ('RBG' -> 'RGB')
mwcoleman Aug 24, 2023
975a704
Merge pull request #4339 from mwcoleman/imshow-docs-typo
alexcjohnson Aug 24, 2023
9b3b592
Merge branch 'master' into autorange-bounds
LiamConnors Sep 8, 2023
f782065
Update Plotly.js version to 2.26.0
LiamConnors Sep 8, 2023
b51748c
Update axes.md
LiamConnors Sep 8, 2023
5b7874c
fix version number
LiamConnors Sep 8, 2023
9047c62
Update config.yml
LiamConnors Sep 8, 2023
11b4936
Merge pull request #4350 from plotly/upgrade-browsertools
LiamConnors Sep 8, 2023
a52af48
Merge branch 'master' into autorange-bounds
LiamConnors Sep 11, 2023
22681bc
Update CHANGELOG.md
LiamConnors Sep 12, 2023
581b753
add example with "max reversed"
LiamConnors Sep 12, 2023
40101cb
Update 3d-axes.md
LiamConnors Sep 12, 2023
871d065
Update 3d-axes.md
LiamConnors Sep 12, 2023
b2ebf8b
Merge pull request #4307 from plotly/autorange-bounds
LiamConnors Sep 15, 2023
bce8845
version changes for v5.17.0
LiamConnors Sep 15, 2023
7d005be
Merge pull request #4356 from plotly/release-5.17.0
alexcjohnson Sep 15, 2023
dae12d0
update versions to 5.17.0
LiamConnors Sep 15, 2023
d9d89e3
Merge pull request #4358 from plotly/update-docs-5-17
alexcjohnson Sep 15, 2023
f620d79
Update getting-started.md
LiamConnors Sep 15, 2023
e1b2d29
Merge branch 'master' into update-docs-5-17
LiamConnors Sep 15, 2023
59cdd99
Merge pull request #4359 from plotly/update-docs-5-17
alexcjohnson Sep 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2.1

orbs:
browser-tools: circleci/browser-tools@1.4.3
browser-tools: circleci/browser-tools@1.4.5

commands:
test_core:
Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [5.17.0] - 2023-09-15

### Updated
- Improved json docstrings, added `BasePlotlyType.to_json()` method [[#4301](https://github.com/plotly/plotly.py/pull/4301)]
- 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:
- 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)]
- 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!
- 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!
- 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!


### Fixed
- 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)]

## [5.16.1] - 2023-08-16

### Fixed
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

## Quickstart

`pip install plotly==5.16.1`
`pip install plotly==5.17.0`

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

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

```
pip install plotly==5.16.1
pip install plotly==5.17.0
```

or conda.

```
conda install -c plotly plotly=5.16.1
conda install -c plotly plotly=5.17.0
```

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

```
# JupyterLab 2.x renderer support
jupyter labextension install jupyterlab-plotly@5.16.1 @jupyter-widgets/jupyterlab-manager
jupyter labextension install jupyterlab-plotly@5.17.0 @jupyter-widgets/jupyterlab-manager
```

Please check out our [Troubleshooting guide](https://plotly.com/python/troubleshooting/) if you run into any problems with JupyterLab.
Expand Down
2 changes: 1 addition & 1 deletion binder/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
jupytext
plotly==5.16.1
plotly==5.17.0
jupyter
notebook
pandas==1.0.3
Expand Down
2 changes: 1 addition & 1 deletion doc/apidoc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# The short X.Y version
version = ""
# The full version, including alpha/beta/rc tags
release = "5.16.1"
release = "5.17.0"


# -- General configuration ---------------------------------------------------
Expand Down
45 changes: 37 additions & 8 deletions doc/python/3d-axes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ jupyter:
text_representation:
extension: .md
format_name: markdown
format_version: '1.1'
jupytext_version: 1.1.1
format_version: '1.3'
jupytext_version: 1.15.1
kernelspec:
display_name: Python 3
display_name: Python 3 (ipykernel)
language: python
name: python3
language_info:
Expand All @@ -20,7 +20,7 @@ jupyter:
name: python
nbconvert_exporter: python
pygments_lexer: ipython3
version: 3.7.3
version: 3.10.4
plotly:
description: How to format axes of 3d plots in Python with Plotly.
display_as: 3d_charts
Expand All @@ -41,6 +41,8 @@ set the range, title, ticks, color etc. of the axes.

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

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`.

```python
import plotly.graph_objects as go
import numpy as np
Expand All @@ -66,6 +68,37 @@ fig.update_layout(
fig.show()
```

### Setting only a Lower or Upper Bound for Range

*New in 5.17*

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`.

```python
import plotly.graph_objects as go
import numpy as np
np.random.seed(1)

N = 70

fig = go.Figure(data=[go.Mesh3d(x=(70*np.random.randn(N)),
y=(55*np.random.randn(N)),
z=(40*np.random.randn(N)),
opacity=0.5,
color='rgba(244,22,100,0.6)'
)])

fig.update_layout(
scene = dict(
xaxis = dict(nticks=4, range=[-100,100],),
yaxis = dict(nticks=4, range=[None, 100],),
zaxis = dict(nticks=4, range=[-100, None],),),
width=700,
margin=dict(r=20, l=10, b=10, t=10))

fig.show()
```

### Fixed Ratio Axes

```python
Expand Down Expand Up @@ -226,7 +259,3 @@ fig.update_layout(scene=dict(xaxis_showspikes=False,
yaxis_showspikes=False))
fig.show()
```

```python

```
Loading