Skip to content

Commit b79333a

Browse files
merge master into hexbin
2 parents 72b118b + 9bac518 commit b79333a

File tree

100 files changed

+217402
-9089
lines changed

Some content is hidden

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

100 files changed

+217402
-9089
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,4 @@ temp-plot.html
4646
doc/python/.ipynb_checkpoints
4747
doc/python/.mapbox_token
4848
doc/.ipynb_checkpoints
49+
doc/check-or-enforce-order.py

CHANGELOG.md

+34-4
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,45 @@
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-
## [4.8.2] - unreleased
5+
## [4.9.0] - unreleased
6+
7+
### Added
8+
9+
- `px.NO_COLOR` constant to override wide-form color assignment in Plotly Express ([#2614](https://github.com/plotly/plotly.py/pull/2614))
10+
- `facet_row_spacing` and `facet_col_spacing` added to Plotly Express cartesian 2d functions ([#2614](https://github.com/plotly/plotly.py/pull/2614))
11+
- `base` added to Plotly Express `bar` and `bar_polar` functions
12+
- `plotly.express.timeline()` added as an official alternative to `plotly.figure_factories.create_gantt()`
13+
- `create_hexbin_mapbox()` added to Figure Factories, with thanks to [@RenaudLN](https://github.com/RenaudLN) for the contribution!
614

715
### Fixed
816

9-
- Fixed special cases with `px.sunburst` and `px.treemap` with `path` input ([#2524](https://github.com/plotly/plotly.py/pull/2524))
17+
- trendline traces are now of type `scattergl` when `render_mode="webgl"` in Plotly Express ([#2614](https://github.com/plotly/plotly.py/pull/2614))
1018

11-
### Added
19+
### Updated
20+
21+
- Added all cartesian-2d Plotly Express functions, plus `imshow` to Pandas backend with `kind` option
22+
- `plotly.express.imshow` now uses data frame index and columns names and values to populate axis parameters by default ([#2539](https://github.com/plotly/plotly.py/pull/2539))
23+
24+
25+
## [4.8.2] - 2020-06-26
26+
27+
### Updated
28+
29+
- Updated Plotly.js to version 1.54.5. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/v1.54.5/CHANGELOG.md) for more information.
30+
- `add_traces()` now accepts bare `int`-like values for `rows`/`cols` as well as lists thereof ([#2546](https://github.com/plotly/plotly.py/pull/2546)), with thanks to [@MCBoarder289](https://github.com/MCBoarder289) for the contribution!
31+
32+
### Fixed
33+
34+
- `row`/`col` now accept `int`-like values, not strictly `int` values ([#2451](https://github.com/plotly/plotly.py/pull/2451)), with thanks to [@MCBoarder289](https://github.com/MCBoarder289) for the contribution!
35+
- Fixed special cases with `px.sunburst` and `px.treemap` with `path` input ([#2524](https://github.com/plotly/plotly.py/pull/2524))
36+
- Fixed bug in `hover_data` argument of `px` functions, when the column name is changed with labels and `hover_data` is a dictionary setting up a specific format for the hover data ([#2544](https://github.com/plotly/plotly.py/pull/2544)).
37+
- Made the Plotly Express `trendline` argument more robust and made it work with datetime `x` values ([#2554](https://github.com/plotly/plotly.py/pull/2554))
38+
- Fixed bug in `px.sunburst` and `px.treemap`: when the `color` and `values` arguments correspond to the same column, a different aggregation function has to be used for the two arguments ([#2591](https://github.com/plotly/plotly.py/pull/2591))
39+
- Plotly Express wide mode now accepts mixed integer and float columns ([#2598](https://github.com/plotly/plotly.py/pull/2598))
40+
- Plotly Express `range_(x|y)` should not impact the unlinked range of marginal subplots ([#2600](https://github.com/plotly/plotly.py/pull/2600))
41+
- `px.line` now sets `line_group=<variable>` in wide mode by default ([#2599](https://github.com/plotly/plotly.py/pull/2599))
42+
- Corrected some regex warnings ([#2577](https://github.com/plotly/plotly.py/pull/2577)), with thanks to [@georgevdd](https://github.com/georgevdd) for the contribution!
1243

13-
- New hexbin_mapbox trace in Plotly Express
1444

1545
## [4.8.1] - 2020-05-28
1646

README.md

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

3434
## Quickstart
3535

36-
`pip install plotly==4.8.1`
36+
`pip install plotly==4.8.2`
3737

3838
Inside [Jupyter notebook](https://jupyter.org/install) (installable with `pip install "notebook>=5.3" "ipywidgets>=7.2"`):
3939

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

8484
```
85-
pip install plotly==4.8.1
85+
pip install plotly==4.8.2
8686
```
8787

8888
or conda.
8989

9090
```
91-
conda install -c plotly plotly=4.8.1
91+
conda install -c plotly plotly=4.8.2
9292
```
9393

9494
### Jupyter Notebook Support
@@ -125,10 +125,10 @@ Then run the following commands to install the required JupyterLab extensions (n
125125

126126
```
127127
# Basic JupyterLab renderer support
128-
jupyter labextension install [email protected].1
128+
jupyter labextension install [email protected].2
129129
130130
# OPTIONAL: Jupyter widgets extension for FigureWidget support
131-
jupyter labextension install @jupyter-widgets/jupyterlab-manager [email protected].1
131+
jupyter labextension install @jupyter-widgets/jupyterlab-manager [email protected].2
132132
```
133133

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

binder/requirements.txt

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

contributing.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ the structure of the code and of the repository.
6464
https://github.com/plotly/plotly.py/issues/1965. If you have writing skills,
6565
the wording of existing examples can also be improved in places.
6666

67-
Contributing code or documentation are not the only way to contribute! You can
67+
Contributing code or documentation is not the only way to contribute! You can
6868
also contribute to the project by
6969

7070
- reporting bugs (see below).
@@ -151,7 +151,12 @@ complete installation and avoid gdal-config errors.
151151
```
152152
This will ensure that the installed packages links to your local development
153153
directory, meaning that all changes you make reflect directly in your
154-
environment (don't forget to restart the Jupyter kernel though!).
154+
environment (don't forget to restart the Jupyter kernel though!). For more
155+
information see the
156+
[`setuptools`](https://setuptools.readthedocs.io/en/latest/setuptools.html#development-mode)
157+
and
158+
[`pip`](https://pip.pypa.io/en/stable/reference/pip_install/#install-editable)
159+
documentation on _development mode_.
155160

156161
### ipywidgets development install
157162

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 = "4.8.1"
31+
release = "4.8.2"
3232

3333

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

doc/apidoc/plotly.graph_objects.rst

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Simple Traces
4343
Bar
4444
Pie
4545
Heatmap
46+
Heatmapgl
4647
Image
4748
Contour
4849
Table

doc/python/3d-scatter-plots.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ fig.update_layout(margin=dict(l=0, r=0, b=0, t=0))
7676

7777
#### Basic 3D Scatter Plot
7878

79-
If Plotly Express does not provide a good starting point, it is also possible to use the more generic `go.Scatter3D` from `plotly.graph_objs`.
79+
If Plotly Express does not provide a good starting point, it is also possible to use [the more generic `go.Scatter3D` class from `plotly.graph_objects`](/python/graph-objects/).
8080
Like the [2D scatter plot](https://plotly.com/python/line-and-scatter/) `go.Scatter`, `go.Scatter3d` plots individual data in three-dimensional space.
8181

8282
```python

doc/python/animations.md

+6
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ fig = px.bar(df, x="continent", y="pop", color="continent",
5151
fig.show()
5252
```
5353

54+
### Current Animation Limitations and Caveats
55+
56+
* Animations are designed to work well when each row of input is present across all animation frames, and when categorical values mapped to symbol, color and facet are constant across frames. Animations *may be misleading or inconsistent* if these constraints are not met.
57+
* Although Plotly Express supports animation for many chart and map types, smooth inter-frame transitions are today only possible for scatter and bar
58+
* Plotly Express will not automatically compute the union of all x/y/color ranges, so these must be specified manually to avoid scale jumps across frames
59+
5460
#### Animated figures with Graph Objects
5561

5662
The remainder of this section describes the low-level API for constructing animated figures manually.

doc/python/axes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jupyter:
2929
language: python
3030
layout: base
3131
name: Axes
32-
order: 12
32+
order: 13
3333
permalink: python/axes/
3434
thumbnail: thumbnail/axes.png
3535
---

doc/python/bar-charts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ To learn more, see the _link to px.bar reference page_.
9999

100100
#### Basic Bar Chart with plotly.graph_objects
101101

102-
If Plotly Express does not provide a good starting point, it is also possible to use the more generic `go.Bar` function from `plotly.graph_objects`.
102+
If Plotly Express does not provide a good starting point, it is also possible to use [the more generic `go.Bar` class from `plotly.graph_objects`](/python/graph-objects/).
103103

104104
```python
105105
import plotly.graph_objects as go

doc/python/box-plots.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ fig.show()
134134

135135
## Box plot with go.Box
136136

137-
If Plotly Express does not provide a good starting point, it is also possible to use the more generic `go.Box` function from `plotly.graph_objects`. All available options for `go.Box` are described in the reference page https://plotly.com/python/reference/#box.
137+
If Plotly Express does not provide a good starting point, it is also possible to use [the more generic `go.Box` class from `plotly.graph_objects`](/python/graph-objects/). All available options for `go.Box` are described in the reference page https://plotly.com/python/reference/#box.
138138

139139
### Basic Box Plot
140140

doc/python/bubble-charts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fig.show()
5252

5353
## Bubble Chart with plotly.graph_objects
5454

55-
If Plotly Express does not provide a good starting point, it is also possible to use the more generic `go.Scatter` from `plotly.graph_objects`, and define the size of markers to create a bubble chart. All of the available options are described in the scatter section of the reference page: https://plotly.com/python/reference#scatter.
55+
If Plotly Express does not provide a good starting point, it is also possible to use [the more generic `go.Scatter` class from `plotly.graph_objects`](/python/graph-objects/), and define the size of markers to create a bubble chart. All of the available options are described in the scatter section of the reference page: https://plotly.com/python/reference#scatter.
5656

5757
### Simple Bubble Chart
5858

doc/python/builtin-colorscales.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jupyter:
3030
language: python
3131
layout: base
3232
name: Built-in Continuous Color Scales
33-
order: 26
33+
order: 27
3434
permalink: python/builtin-colorscales/
3535
thumbnail: thumbnail/heatmap_colorscale.jpg
3636
v4upgrade: true

doc/python/colorscales.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jupyter:
3030
language: python
3131
layout: base
3232
name: Continuous Color Scales and Color Bars
33-
order: 19
33+
order: 20
3434
permalink: python/colorscales/
3535
redirect_from: python/logarithmic-color-scale/
3636
thumbnail: thumbnail/heatmap_colorscale.jpg

doc/python/configuration-options.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jupyter:
2828
language: python
2929
layout: base
3030
name: Configuration
31-
order: 8
31+
order: 9
3232
page_type: u-guide
3333
permalink: python/configuration-options/
3434
thumbnail: thumbnail/modebar-icons.png

0 commit comments

Comments
 (0)