Skip to content

Make 5.19 docs live #4523

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 110 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
e124216
px.line: don't use webgl for spline shape
bwest2397 Aug 1, 2023
72c4155
Merge branch 'master' into workaround-px-express-line-not-accepting-s…
bwest2397 Sep 14, 2023
6f945eb
ignore doc/python/raw.githubusercontent.com/ folder
archmoj Oct 27, 2023
43d37ac
Merge pull request #4404 from plotly/ignore-raw.githubusercontent.com
archmoj Oct 27, 2023
b426307
ignore files generated by running tests locally
archmoj Oct 31, 2023
69c20f7
Merge pull request #4409 from plotly/ignore-run-test-files
archmoj Oct 31, 2023
52048eb
Fix x and y axis naming in dendrogram trace
Brainor Nov 3, 2023
ba47b31
Merge pull request #4411 from Brainor/patch-dendrogram
alexcjohnson Nov 6, 2023
04bd8b9
Update packages/python/plotly/plotly/express/_core.py
alexcjohnson Nov 8, 2023
a11a4f5
Merge branch 'master' into workaround-px-express-line-not-accepting-s…
alexcjohnson Nov 8, 2023
b3327c9
Update pandas-backend.md
yyexela Nov 10, 2023
2c5fdba
Update CHANGELOG.md
bwest2397 Nov 10, 2023
a8a2533
Merge pull request #4305 from bwest2397/workaround-px-express-line-no…
alexcjohnson Nov 11, 2023
38ded4a
Merge pull request #4419 from yyexela/fix_typo
LiamConnors Nov 15, 2023
e7aa1b9
Deterministic sort order for plotly express modes
alev000 Nov 17, 2023
f68a164
changelog entry for #4429
alexcjohnson Nov 17, 2023
d4a7c32
Merge pull request #4429 from alev000/sort-modes
alexcjohnson Nov 17, 2023
05c715f
Use observed=True in groupby
arcanaxion Nov 22, 2023
a4932c6
Test no error raised plotting categorical subset
arcanaxion Nov 22, 2023
ccc7e89
Typo facet_row to color
arcanaxion Nov 22, 2023
e77e45f
changelog entry for #4437
arcanaxion Nov 23, 2023
63b9ac5
Merge pull request #4437 from arcanaxion/groupby-categorical-futurewa…
alexcjohnson Nov 23, 2023
bc8f920
Fix usage of 'column_names' that part of Interchange protocol
anmyachev Nov 27, 2023
4403972
add changelog entry and test case
anmyachev Nov 28, 2023
e7bfc7c
fix
anmyachev Nov 28, 2023
8bc43e5
Merge pull request #4442 from anmyachev/fix-column-names
alexcjohnson Nov 28, 2023
2e3ce88
Fix `suplot` typo
mahotd Nov 30, 2023
99e63da
Merge pull request #4446 from mahotd/fix-suplot-typo
alexcjohnson Nov 30, 2023
1615bb0
update browser tools version
LiamConnors Dec 21, 2023
95cc3d0
Merge pull request #4469 from plotly/update-browser-tools
LiamConnors Dec 21, 2023
8c9fa2d
update plotly.js version
LiamConnors Jan 5, 2024
378f9aa
Add sankey node alignment
LiamConnors Jan 11, 2024
1107450
Update sankey-diagram.md
LiamConnors Jan 11, 2024
7e4a258
Update sankey-diagram.md
LiamConnors Jan 11, 2024
df37b81
update information on stadia maps
LiamConnors Jan 11, 2024
6b65f2e
Update mapbox-layers.md
LiamConnors Jan 11, 2024
41129d7
Update sankey-diagram.md
LiamConnors Jan 11, 2024
8f27923
Update webgl-vs-svg.md
LiamConnors Jan 18, 2024
423129e
fix(dendrogram): replaced scipy array by numpy array
HugoDelatte Jan 21, 2024
f108db7
add 3.10 tests, remove 3.6 + 3.7
LiamConnors Jan 22, 2024
4fc892e
check only for near equality
LiamConnors Jan 22, 2024
6391f3f
fix function call
LiamConnors Jan 22, 2024
b40f5e4
add py311 tests
LiamConnors Jan 22, 2024
d8bb3b2
add python 3.11 in workflows
LiamConnors Jan 22, 2024
ab92c7d
fix function call
LiamConnors Jan 22, 2024
2f6a186
update for python 3.11 and later
LiamConnors Jan 22, 2024
8185cc5
Update test_figure_factory.py
LiamConnors Jan 22, 2024
4f5006b
Update test_figure_factory.py
LiamConnors Jan 22, 2024
f86e0fb
add statsmodels version
LiamConnors Jan 22, 2024
fc42fda
add python 3.12 tests
LiamConnors Jan 22, 2024
bb73b70
Update test_figure_factory.py
LiamConnors Jan 22, 2024
f51c371
Update test_figure_factory.py
LiamConnors Jan 22, 2024
3a22960
only run polars/vaex tests on 3.11 or earlier
LiamConnors Jan 22, 2024
315ccd4
Update _county_choropleth.py
LiamConnors Jan 22, 2024
c2c9c7d
update
LiamConnors Jan 22, 2024
635e933
Update test_to_from_plotly_json.py
LiamConnors Jan 22, 2024
709fb99
update docs requirements
LiamConnors Jan 22, 2024
f3b427a
Update requirements.txt
LiamConnors Jan 22, 2024
a2236ee
Update requirements.txt
LiamConnors Jan 22, 2024
b4c3a70
update docs page to use same versions as docs
LiamConnors Jan 22, 2024
5725d6d
Update requirements.txt
LiamConnors Jan 22, 2024
1dfcb3e
Update requirements.txt
LiamConnors Jan 22, 2024
e0b22d8
Update ml-regression.md
LiamConnors Jan 22, 2024
37116fb
Update requirements.txt
LiamConnors Jan 22, 2024
aa5965d
Update setup.py
LiamConnors Jan 22, 2024
8abb152
update pandas version
LiamConnors Jan 22, 2024
8655c10
Update ml-pca.md
LiamConnors Jan 22, 2024
0bdd6e0
Update conda_build_config.yaml
LiamConnors Jan 22, 2024
9602b65
Update requirements.txt
LiamConnors Jan 22, 2024
045778a
Update CHANGELOG.md
LiamConnors Jan 22, 2024
13809ac
Update requirements.txt
LiamConnors Jan 22, 2024
ca597f9
Update CHANGELOG.md
LiamConnors Jan 22, 2024
0b0cc22
Merge pull request #4492 from plotly/update-python-versions
LiamConnors Jan 23, 2024
c167bec
Merge branch 'master' into update-plotly-js-2-28-0
LiamConnors Jan 23, 2024
80ce7b5
Update doc/python/webgl-vs-svg.md
LiamConnors Jan 23, 2024
2fc83f8
Update webgl-vs-svg.md
LiamConnors Jan 23, 2024
f680ca2
document that LaTeX does not work with Jupyter Notebook version 7
newville Jan 25, 2024
9b473aa
Update webgl-vs-svg.md
LiamConnors Jan 25, 2024
a6662ab
Merge pull request #4487 from HugoDelatte/fix/dendrogram-array
alexcjohnson Jan 25, 2024
a747e57
Update webgl-vs-svg.md
LiamConnors Jan 25, 2024
92ac8f9
Update doc/python/webgl-vs-svg.md
LiamConnors Jan 25, 2024
471ec3d
Update doc/python/LaTeX.md
LiamConnors Feb 1, 2024
c3253b3
Merge branch 'master' into master
LiamConnors Feb 1, 2024
f01ced1
Merge pull request #4496 from newville/master
LiamConnors Feb 1, 2024
b4fb94a
update Plotly.js to 2.29.0
LiamConnors Feb 2, 2024
94b8eac
add rounded bar examples
LiamConnors Feb 2, 2024
2011af8
add hover link example
LiamConnors Feb 2, 2024
07e2837
Update sankey-diagram.md
LiamConnors Feb 2, 2024
13681af
add autotickangles example
LiamConnors Feb 2, 2024
6303360
Update CHANGELOG.md
LiamConnors Feb 2, 2024
85bd194
fix version
LiamConnors Feb 2, 2024
ec2aa9c
Update config.yml
LiamConnors Feb 5, 2024
23b4232
Merge pull request #4506 from plotly/fix-conda-build
LiamConnors Feb 5, 2024
316a2fd
Merge branch 'master' into update-plotly-js-2-28-0
LiamConnors Feb 5, 2024
5d0a984
update plotly.js version
LiamConnors Feb 12, 2024
9154a67
Merge pull request #4476 from plotly/update-plotly-js-2-28-0
LiamConnors Feb 12, 2024
b541a69
version changes for v5.19.0
LiamConnors Feb 13, 2024
7cc56c2
Update _core.py
LiamConnors Feb 13, 2024
ed074d0
add test + update pandas version
LiamConnors Feb 14, 2024
2451671
Merge pull request #4519 from plotly/fix-grouping
LiamConnors Feb 15, 2024
4628ee6
Merge branch 'master' into release-5.19.0
LiamConnors Feb 15, 2024
665aca9
update date
LiamConnors Feb 15, 2024
ed68886
update changelog
LiamConnors Feb 15, 2024
5bac931
Merge pull request #4517 from plotly/release-5.19.0
LiamConnors Feb 15, 2024
76a196a
update plotly versions for docs
LiamConnors Feb 15, 2024
5496d36
remove limitation
LiamConnors Feb 15, 2024
b37a559
Merge branch 'master' into merge-doc-prod-updates
LiamConnors Feb 15, 2024
326d8ab
Merge pull request #4521 from plotly/5.19-docs-updates
LiamConnors Feb 15, 2024
9ae8242
Merge branch 'master' into merge-doc-prod-updates
LiamConnors Feb 15, 2024
6745ef1
Merge pull request #4522 from plotly/merge-doc-prod-updates
LiamConnors Feb 15, 2024
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
93 changes: 55 additions & 38 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ commands:
test_core:
parameters:
py:
default: "36"
default: "310"
type: string
steps:
- checkout
Expand All @@ -32,7 +32,7 @@ commands:
test_optional:
parameters:
py:
default: "36"
default: "310"
type: string
steps:
- checkout
Expand Down Expand Up @@ -95,7 +95,7 @@ commands:
test_orca:
parameters:
py:
default: "36"
default: "310"
type: string
steps:
- checkout
Expand Down Expand Up @@ -153,20 +153,6 @@ jobs:
black --check . --exclude venv

# Core
python_36_core:
docker:
- image: cimg/python:3.6-browsers
steps:
- test_core:
py: "36"

python_37_core:
docker:
- image: cimg/python:3.7-browsers
steps:
- test_core:
py: "37"

python_38_core:
docker:
- image: cimg/python:3.8-browsers
Expand All @@ -181,20 +167,28 @@ jobs:
- test_core:
py: "39"

# Optional
python_36_optional:
python_310_core:
docker:
- image: cimg/python:3.6-browsers
- image: cimg/python:3.10-browsers
steps:
- test_optional:
py: "36"
- test_core:
py: "310"

python_37_optional:
python_311_core:
docker:
- image: cimg/python:3.7-browsers
- image: cimg/python:3.11-browsers
steps:
- test_optional:
py: "37"
- test_core:
py: "311"

python_312_core:
docker:
- image: cimg/python:3.12-browsers
steps:
- test_core:
py: "312"

# Optional

python_38_optional:
docker:
Expand All @@ -210,6 +204,27 @@ jobs:
- test_optional:
py: "39"

python_310_optional:
docker:
- image: cimg/python:3.10-browsers
steps:
- test_optional:
py: "310"

python_311_optional:
docker:
- image: cimg/python:3.11-browsers
steps:
- test_optional:
py: "311"

python_312_optional:
docker:
- image: cimg/python:3.12-browsers
steps:
- test_optional:
py: "312"

# Pandas

python_39_pandas_2_optional:
Expand All @@ -228,7 +243,7 @@ jobs:
py: "38"

# Percy
python_37_percy:
python_39_percy:
docker:
- image: cimg/python:3.9-browsers
environment:
Expand Down Expand Up @@ -277,9 +292,9 @@ jobs:
rm test/percy/*.html

# Chart studio
python_37_chart_studio:
python_38_chart_studio:
docker:
- image: cimg/python:3.7
- image: cimg/python:3.8
resource_class: large

steps:
Expand All @@ -291,7 +306,7 @@ jobs:
python -m venv venv
. venv/bin/activate
pip install --upgrade pip wheel
pip install -r ./test_requirements/requirements_37.txt
pip install -r ./test_requirements/requirements_38.txt
- run:
name: Tests
command: |
Expand All @@ -302,7 +317,7 @@ jobs:

plotlyjs_dev_build:
docker:
- image: cimg/python:3.7-node
- image: cimg/python:3.8-node
environment:
LANG: en_US.UTF-8
resource_class: large
Expand All @@ -316,7 +331,7 @@ jobs:
python -m venv venv
. venv/bin/activate
pip install --upgrade pip wheel
pip install -r ./test_requirements/requirements_37_core.txt black inflect
pip install -r ./test_requirements/requirements_38_core.txt black inflect
pip install jupyterlab~=3.0
- run:
name: Update jupyterlab-plotly version
Expand Down Expand Up @@ -433,7 +448,7 @@ jobs:
docker:
# specify the version you desire here
# use `-browsers` prefix for selenium tests, for example, `3.6.1-browsers`
- image: cimg/python:3.7-browsers
- image: cimg/python:3.9-browsers

steps:
- add_ssh_keys:
Expand Down Expand Up @@ -570,15 +585,17 @@ workflows:

build:
jobs:
- python_36_core
- python_37_core
- python_38_core
- python_39_core
- python_36_optional
- python_37_optional
- python_310_core
- python_311_core
- python_312_core
- python_38_optional
- python_39_optional
- python_310_optional
- python_311_optional
- python_312_optional
- python_39_pandas_2_optional
- python_38_orca
- python_37_percy
- python_39_percy
- build-doc
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
0
0.html
iframe_figures/
packages/python/plotly/plotly/tests/test_orca/images/linux/failed/

*.egg-info

*.pyc
Expand All @@ -6,6 +11,8 @@

*~

doc/python/raw.githubusercontent.com/

# Don't ignore dataset files
!*.csv.gz

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

## [5.19.0] - 2024-02-15

### Updated

- Updated Plotly.js from version 2.27.0 to version 2.29.1. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#2291----2024-02-12) for more information. These changes are reflected in the auto-generated `plotly.graph_objects` module. Notable changes include:
- Add `layout.barcornerradius` and `trace.marker.cornerradius` properties to support rounding the corners of bar traces [[#6761](https://github.com/plotly/plotly.js/pull/6761)],
with thanks to [Displayr](https://www.displayr.com) for sponsoring development!
- Add `autotickangles` to cartesian and radial axes [[#6790](https://github.com/plotly/plotly.js/pull/6790)], with thanks to @my-tien for the contribution!
- Add `align` option to sankey nodes to control horizontal alignment [[#6800](https://github.com/plotly/plotly.js/pull/6800)],
with thanks to @adamreeve for the contribution!
- Add the possibility of loading "virtual-webgl" script for WebGL 1 to help display several WebGL contexts on a page [[#6784](https://github.com/plotly/plotly.js/pull/6784)], with thanks to @greggman for the contribution!
- Add options to use base64 encoding (`bdata`) and `shape` (for 2 dimensional arrays) to declare various typed arrays i.e. `dtype=(float64|float32|int32|int16|int8|uint32|uint16|uint8)` [[#5230](https://github.com/plotly/plotly.js/pull/5230)]
- Adjust stamen styles to point to `stadiamaps.com`, the users may also need to provide their own API_KEY via `config.mapboxAccessToken` [[#6776](https://github.com/plotly/plotly.js/pull/6776), [#6778](https://github.com/plotly/plotly.js/pull/6778)]
- Removed Python 3.6 and Python 3.7 support [[#4492](https://github.com/plotly/plotly.py/pull/4492)]

### Fixed
- Ensure scatter `mode` is deterministic from `px` [[#4429](https://github.com/plotly/plotly.py/pull/4429)]
- Fix issue with creating dendrogram in subplots [[#4411](https://github.com/plotly/plotly.py/pull/4411)],
- Fix issue with px.line not accepting "spline" line shape [[#2812](https://github.com/plotly/plotly.py/issues/2812)]
- Fix KeyError when using column of `pd.Categorical` dtype with unobserved categories [[#4437](https://github.com/plotly/plotly.py/pull/4437)]
- Fix dataframe interchange in case `column_names` returns an unmaterialized object: generator, iterator, etc. [[#4442]](https://github.com/plotly/plotly.py/pull/4442)
- Fix issue with `FutureWarning` being displayed when setting the `color` argument in `plotly.express` [[#4519]](https://github.com/plotly/plotly.py/pull/4519)

## [5.18.0] - 2023-10-25

### Updated
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.18.0`
`pip install plotly==5.19.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.18.0
pip install plotly==5.19.0
```

or conda.

```
conda install -c plotly plotly=5.18.0
conda install -c plotly plotly=5.19.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.18.0 @jupyter-widgets/jupyterlab-manager
jupyter labextension install jupyterlab-plotly@5.19.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
6 changes: 3 additions & 3 deletions binder/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
jupytext
plotly==5.18.0
plotly==5.19.0
jupyter
notebook
pandas==1.0.3
statsmodels==0.11.1
pandas==1.2.0
statsmodels==0.12.1
scipy
patsy==0.5.1
numpy
Expand Down
2 changes: 1 addition & 1 deletion doc/apidoc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# The short X.Y version
version = ""
# The full version, including alpha/beta/rc tags
release = "5.18.0"
release = "5.19.0"


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion doc/python/LaTeX.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jupyter:

#### LaTeX Typesetting

Figure titles, axis labels and annotations all accept LaTeX directives for rendering mathematical formulas and notation, when the entire label is surrounded by dollar signs `$...$`. This rendering is handled by the [MathJax library](https://www.mathjax.org/) (version 2.7.5), which must be loaded in the environment where figures are being rendered. MathJax is included by default in Jupyter-like environments, but when embedding Plotly figures in other contexts it may be required to ensure that MathJax is separately loaded, for example via a `<script>` tag pointing to a content-delivery network (CDN).
Figure titles, axis labels and annotations all accept LaTeX directives for rendering mathematical formulas and notation, when the entire label is surrounded by dollar signs `$...$`. This rendering is handled by the [MathJax library](https://www.mathjax.org/) (version 2.7.5), which must be loaded in the environment where figures are being rendered. MathJax is included by default in Jupyter-like environments, and LateX directives work with Jupyter Notebook version 6. LaTeX directives do not work with Jupyter Notebook version 7. When embedding Plotly figures in other contexts it may be required to ensure that MathJax is separately loaded, for example via a `<script>` tag pointing to a content-delivery network (CDN).

```python
import plotly.express as px
Expand Down
21 changes: 19 additions & 2 deletions doc/python/axes.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jupyter:
extension: .md
format_name: markdown
format_version: '1.3'
jupytext_version: 1.15.1
jupytext_version: 1.16.1
kernelspec:
display_name: Python 3 (ipykernel)
language: python
Expand All @@ -20,7 +20,7 @@ jupyter:
name: python
nbconvert_exporter: python
pygments_lexer: ipython3
version: 3.10.4
version: 3.10.11
plotly:
description: How to adjust axes properties in Python - axes titles, styling and
coloring axes and grid lines, ticks, tick labels and more.
Expand Down Expand Up @@ -363,6 +363,23 @@ fig.update_xaxes(tickangle=45, tickfont=dict(family='Rockwell', color='crimson',
fig.show()
```

##### Auto Tick Angle Options

*New in 5.19*

If `tickangle` is not explicitly set, its default value is `auto`, meaning if the label needs to be rotated to avoid labels overlapping, it will rotate by either 30 or 90 degrees. Using `autotickangles`, you can also specify a list of angles for `tickangle` to use. If `tickangle` is `auto` and you provide a list of angles to `autotickangles`, the label angle will be set to the first value in the list that prevents overlap.

```python
import plotly.express as px
df = px.data.gapminder()
df = df.loc[(df.continent=="Asia") & (df.year==1992)]
fig = px.histogram(df, x=df.country, y=df.gdpPercap)

fig.update_xaxes(autotickangles=[45, 60, 90])

fig.show()
```

#### Enumerated Ticks with Tickvals and Ticktext

The `tickvals` and `ticktext` axis properties can be used together to display custom tick label text at custom locations along an axis. They should be set to lists of the same length where the `tickvals` list contains positions along the axis, and `ticktext` contains the strings that should be displayed at the corresponding positions.
Expand Down
Loading