Skip to content

Commit 7eeeac0

Browse files
committed
Merge branch 'orjson_encoding' into orjson_encoding_instrumentation
2 parents e051b23 + 1d6acc3 commit 7eeeac0

File tree

31 files changed

+630
-945
lines changed

31 files changed

+630
-945
lines changed

CHANGELOG.md

+35-3
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,51 @@
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.14.0] - UNRELEASED
5+
## [4.15.0] - UNRELEASED
6+
7+
### Added
8+
9+
### Fixed
10+
11+
### Updated
12+
13+
14+
## [4.14.2] - UNRELEASED
15+
16+
### Added
17+
18+
### Fixed
19+
20+
### Updated
21+
22+
23+
## [4.14.1] - 2020-12-09
24+
25+
### Updated
26+
27+
- Updated Plotly.js to version 1.58.2. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/v1.58.0/CHANGELOG.md) for more information. These changes are reflected in the auto-generated `plotly.graph_objects` module. Notable changes include:
28+
- fixes for new `ticklabelposition` attribute
29+
- fixes for a regression related to treemaps in the previous version
30+
31+
32+
## [4.14.0] - 2020-12-07
633

734
### Added
835

936
- `px.imshow` now supports `facet_col` and `animation_frame` arguments for visualizing 3-d and 4-d images [2746](https://github.com/plotly/plotly.py/pull/2746)
37+
- `px.defaults` now supports `color_discrete_map`, `symbol_map`, `line_dash_map`, `labels` and `category_orders` as well as a `.reset()` method [2957](https://github.com/plotly/plotly.py/pull/2957)
1038

1139
### Fixed
1240

13-
- axes will now auto-type numeric strings as categorical data rather than linear [2951](https://github.com/plotly/plotly.py/pull/2951)
41+
- axes will now auto-type numeric strings as categorical data rather than linear in the default templates [2951](https://github.com/plotly/plotly.py/pull/2951)
1442

1543
### Updated
1644

17-
- Updated Plotly.js to version 1.58.0. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/v1.58.0/CHANGELOG.md) for more information. These changes are reflected in the auto-generated `plotly.graph_objects` module.
45+
- Updated Plotly.js to version 1.58.1. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/v1.58.0/CHANGELOG.md) for more information. These changes are reflected in the auto-generated `plotly.graph_objects` module. Notable changes include:
46+
- a new `ticklabelposition` attribute to enable positioning tick labels inside the plotting area
47+
- better support for `scaleanchor` and `matches` on cartesian axes for matched square subplots
48+
- a new `autotypenumbers` attribute which is now set to `strict` in the default templates
49+
- various fixes relating to `automargins` for small figures
1850

1951

2052
## [4.13.0] - 2020-11-23

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Our recommended IDE for Plotly’s Python graphing library is Dash Enterprise’
3737

3838
## Quickstart
3939

40-
`pip install plotly==4.13.0`
40+
`pip install plotly==4.14.1`
4141

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

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

8888
```
89-
pip install plotly==4.13.0
89+
pip install plotly==4.14.1
9090
```
9191

9292
or conda.
9393

9494
```
95-
conda install -c plotly plotly=4.13.0
95+
conda install -c plotly plotly=4.14.1
9696
```
9797

9898
### Jupyter Notebook Support
@@ -129,10 +129,10 @@ Then run the following commands to install the required JupyterLab extensions (n
129129

130130
```
131131
# Basic JupyterLab renderer support
132-
jupyter labextension install jupyterlab-plotly@4.13.0
132+
jupyter labextension install jupyterlab-plotly@4.14.1
133133
134134
# OPTIONAL: Jupyter widgets extension for FigureWidget support
135-
jupyter labextension install @jupyter-widgets/jupyterlab-manager plotlywidget@4.13.0
135+
jupyter labextension install @jupyter-widgets/jupyterlab-manager plotlywidget@4.14.1
136136
```
137137

138138
Please check out our [Troubleshooting guide](https://plotly.com/python/troubleshooting/) if you run into any problems with JupyterLab.
@@ -156,7 +156,7 @@ $ pip install -U kaleido
156156
or conda.
157157

158158
```
159-
$ conda install -c plotly python-kaleido
159+
$ conda install -c conda-forge python-kaleido
160160
```
161161

162162
#### Orca

binder/requirements.txt

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

contributing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ pytest packages/python/plotly/plotly/tests/test_core/
280280
pytest plotly/tests/test_plotly/test_plot.py
281281
```
282282

283-
or for a specfic test function
283+
or for a specific test function
284284

285285
```bash
286286
pytest plotly/tests/test_plotly/test_plot.py::test_function

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.13.0"
31+
release = "4.14.1"
3232

3333

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

doc/python/axes.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ fig = px.bar(df, x=["Apples", "Oranges"], y=[10,20], color=["Here", "There"],
124124
fig.show()
125125
```
126126

127-
##### Rotate axes in Dash
127+
##### Rotating tick labels in Dash
128128

129129
[Dash](https://plotly.com/dash/) is the best way to build analytical apps in Python using Plotly figures. To run the app below, run `pip install dash`, click "Download" to get the code and run `python app.py`.
130130

@@ -137,6 +137,19 @@ snippet_url = 'https://dash-gallery.plotly.host/python-docs-dash-snippets/'
137137
IFrame(snippet_url + 'axes', width='100%', height=630)
138138
```
139139

140+
#### Moving Tick Labels Inside the Plot
141+
142+
The `ticklabelposition` attribute moves tick labels inside the plotting area, and modifies the auto-range behaviour to accomodate the labels.
143+
144+
```python
145+
import plotly.express as px
146+
147+
df = px.data.stocks(indexed=True)-1
148+
fig = px.bar(df, x=df.index, y="GOOG")
149+
fig.update_yaxes(ticklabelposition="inside top", title=None)
150+
fig.show()
151+
```
152+
140153
##### Set axis title text with Graph Objects
141154

142155
Axis titles are set using the nested `title.text` property of the x or y axis. Here is an example of creating a new figure and using `update_xaxes` and `update_yaxes`, with magic underscore notation, to set the axis titles.

doc/python/getting-started.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ We also encourage you to join the [Plotly Community Forum](http://community.plot
5959
`plotly` may be installed using pip...
6060

6161
```
62-
$ pip install plotly==4.13.0
62+
$ pip install plotly==4.14.1
6363
```
6464

6565
or conda.
6666

6767
```
68-
$ conda install -c plotly plotly=4.13.0
68+
$ conda install -c plotly plotly=4.14.1
6969
```
7070

7171
This package contains everything you need to write figures to standalone HTML files.
@@ -157,10 +157,10 @@ Then run the following commands to install the required JupyterLab extensions (n
157157

158158
```
159159
# JupyterLab renderer support
160-
jupyter labextension install jupyterlab-plotly@4.13.0
160+
jupyter labextension install jupyterlab-plotly@4.14.1
161161
162162
# OPTIONAL: Jupyter widgets extension
163-
jupyter labextension install @jupyter-widgets/jupyterlab-manager plotlywidget@4.13.0
163+
jupyter labextension install @jupyter-widgets/jupyterlab-manager plotlywidget@4.14.1
164164
```
165165

166166
These packages contain everything you need to run JupyterLab...

doc/python/static-image-export.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ $ pip install -U kaleido
5050

5151
or conda.
5252
```
53-
$ conda install -c plotly python-kaleido
53+
$ conda install -c conda-forge python-kaleido
5454
```
5555

5656
While Kaleido is now the recommended approach, image export can also be supported by the legacy [orca](https://github.com/plotly/orca) command line utility. See the [Orca Management](/python/orca-management/) section for instructions on installing, configuring, and troubleshooting orca.

doc/python/time-series.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jupyter:
66
extension: .md
77
format_name: markdown
88
format_version: '1.2'
9-
jupytext_version: 1.6.0
9+
jupytext_version: 1.4.2
1010
kernelspec:
1111
display_name: Python 3
1212
language: python
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.7.6
23+
version: 3.7.7
2424
plotly:
2525
description: How to plot date and time in python.
2626
display_as: financial

doc/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ kaleido
3030
umap-learn
3131
pooch
3232
wget
33+
nbconvert==5.6.1
3334
orjson

0 commit comments

Comments
 (0)