Skip to content

Commit be25c50

Browse files
authored
Release 3.4.0 (#1254)
* Added changelog and README version updates for 3.4.0 * Update plotly.js to 1.42.2 * Darken default marker outline color in plotly_dark template * Fix ggplot2 colorbar length * Bump plotly.py and plotlywidget versions to 3.4.0 and 0.5.0
1 parent 32b6701 commit be25c50

Some content is hidden

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

54 files changed

+998
-2159
lines changed

CHANGELOG.md

+138
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,144 @@
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+
## [3.4.0] - 2018-11-02
6+
7+
### Updated
8+
- Updated Plotly.js to version 1.42.2. Select highlights included below, see
9+
the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#1422----2018-11-01)
10+
for more information.
11+
12+
### Added
13+
- Default figure properties may now be customized using figure
14+
templates (themes) and 7 new predefined templates are bundled with
15+
plotly.py
16+
([#1224](https://github.com/plotly/plotly.py/pull/1224))
17+
- Added Parallel Categories (`parcats`) trace type for the visualization
18+
of multi-dimensional categorical datasets
19+
([plotly/plotly.js#2963](https://github.com/plotly/plotly.js/pull/2963))
20+
- Added LaTeX typesetting support for figures displayed in the Jupyter
21+
Notebook using `plotly.offline.iplot` and `plotly.graph_objs.FigureWidget`.
22+
**Note:** There are still outstanding issues with MathJax rendering in FireFox,
23+
but it is now working well in Chrome.
24+
([#1243](https://github.com/plotly/plotly.py/pull/1243))
25+
- Added `include_mathjax` argument to `plotly.offline.plot` to support
26+
the creation of HTML files with LaTeX typesetting
27+
([#1243](https://github.com/plotly/plotly.py/pull/1243))
28+
- Added new `plotly.offline.get_plotlyjs` function that returns the
29+
contents of the bundled plotly.js library as a string
30+
([#637](https://github.com/plotly/plotly.py/issues/637),
31+
[#1246](https://github.com/plotly/plotly.py/pull/1246))
32+
- Added new `plotly.offline.get_plotlyjs_version` function that returns
33+
the version of the bundled plotly.js library
34+
([#1246](https://github.com/plotly/plotly.py/pull/1246))
35+
- HTML div strings returned by `plotly.offline.plot` now contain logic
36+
to automatically resize the figure responsively. This logic was previously
37+
only added for html files.
38+
([#1043](https://github.com/plotly/plotly.py/issues/1043),
39+
[#1234](https://github.com/plotly/plotly.py/pull/1234))
40+
- Figures displayed using `plotly.offline.iplot` in the classic Jupyter
41+
Notebook will now resize responsively
42+
([#1234](https://github.com/plotly/plotly.py/pull/1234))
43+
- Added `'cdn'`, `'directory'`, and path string `include_plotlyjs` options
44+
in `plotly.offline.plot`
45+
([#1234](https://github.com/plotly/plotly.py/pull/1234))
46+
- When `'cdn'`, the resulting html file/div includes a script tag reference
47+
to the plotlyjs cdn.
48+
- When `'directory'`, the resulting html file/div includes a script tag
49+
reference to a plotly.min.js bundle in the same directory as the html file.
50+
If `output_type` is `'file'` then this plotly.min.js bundle is created in
51+
the output directory if it doesn't already exist.
52+
- When a string ending with `'.js'`, the resulting html file/div includes
53+
a script tag that references this exact path. This can be used to point
54+
to a plotly.js bundle from an alternative CDN.
55+
- Added a new `color_threshold` argument to the `create_dendrogram` figure
56+
factory to control the dendrogram clustering cutoff
57+
([#995](https://github.com/plotly/plotly.py/issues/995),
58+
[#1075](https://github.com/plotly/plotly.py/pull/1075),
59+
[#1214](https://github.com/plotly/plotly.py/pull/1214))
60+
- Added support for `autorange='reversed'` in 3D axes
61+
([#803](https://github.com/plotly/plotly.py/issues/803),
62+
[plotly/plotly.js#3141](https://github.com/plotly/plotly.js/pull/3141))
63+
- Added new gl3d tick and title auto-rotation algorithm that limits text
64+
overlaps
65+
([plotly/plotly.js#3084](https://github.com/plotly/plotly.js/pull/3084),
66+
[plotly/plotly.js#3131](https://github.com/plotly/plotly.js/pull/3131))
67+
- Added `modebar` layout style attributes:
68+
`orientation`, `bgcolor`, `color` and `activecolor`
69+
([plotly/plotly.js#3068](https://github.com/plotly/plotly.js/pull/3068),
70+
[plotly/plotly.js#3091](https://github.com/plotly/plotly.js/pull/3091))
71+
- Added `title`, `titleposition` and `titlefont` attributes to pie traces
72+
([plotly/plotly.js#2987](https://github.com/plotly/plotly.js/pull/2987))
73+
- Added `hoverlabel.split` attribute to `ohlc` and `candlestick` traces to
74+
split hover labels into multiple pieces
75+
([plotly/plotly.js#2959](https://github.com/plotly/plotly.js/pull/2959))
76+
- Added support for `line.shape` values `'hv'`, `'vh'`, `'hvh'`
77+
and `'vhv'` in `scattergl` traces
78+
([plotly/plotly.js#3087](https://github.com/plotly/plotly.js/pull/3087))
79+
- Added trace, node and link `hoverinfo` for `sankey` traces
80+
([#3096](https://github.com/plotly/plotly.js/pull/3096),
81+
[#3150](https://github.com/plotly/plotly.js/pull/3150))
82+
- Added per-sector `textfont` settings in pie traces
83+
([#3130](https://github.com/plotly/plotly.js/pull/3130))
84+
85+
86+
### Changed
87+
- Use new Plotly logo in "Produced with Plotly" modebar button
88+
([plotly/plotly.js#3068](https://github.com/plotly/plotly.js/pull/3068))
89+
90+
91+
### Fixed
92+
- Plotly's use of MathJax for LaTeX typesetting no longer interferes with
93+
the Jupyter Notebook's use of MathJax
94+
([#445](https://github.com/plotly/plotly.py/issues/445),
95+
[#360](https://github.com/plotly/plotly.py/issues/360))
96+
- Fixed several issues with the use of `reversescale=True` in the
97+
`create_annotated_heatmap` figure factory
98+
([#1251](https://github.com/plotly/plotly.py/pull/1251))
99+
- Fixed case where `plotly.offline.iplot` would fail to render in the classic
100+
Jupyter Notebook if the notebook contained a Markdown headline with the text
101+
"Plotly"
102+
([#816](https://github.com/plotly/plotly.py/issues/816))
103+
- `None` values in a `scatter.hovertext` list are now omitted from the
104+
hover label rather than being displayed as the string `"None"`
105+
([#1244](https://github.com/plotly/plotly.py/issues/1244))
106+
- Subplot titles created by `plotly.tools.make_subplots` are now positioned
107+
properly when custom `row_width`/`column_width` arguments are specified
108+
([#1229](https://github.com/plotly/plotly.py/issues/1229))
109+
- The `bar.width` property may now be specified as a numpy array or a pandas
110+
series
111+
([#1231](https://github.com/plotly/plotly.py/issues/1231),
112+
[plotly/plotly.js#3169](https://github.com/plotly/plotly.js/pull/3169))
113+
- Error bars are now scaled correctly for logarithmic `scatter3d` traces
114+
([#1139](https://github.com/plotly/plotly.py/issues/1139))
115+
- Use `uuid.uuid4` rather than `uuid.uuid1` to work around an upstream
116+
Python bug
117+
([#1235](https://github.com/plotly/plotly.py/issues/1235),
118+
[#1236](https://github.com/plotly/plotly.py/pull/1236))
119+
- The `layout.grid.subplots` property may now be specified as a 2D list of
120+
subplot identifiers
121+
([#1220](https://github.com/plotly/plotly.py/issues/1220),
122+
[#1240](https://github.com/plotly/plotly.py/pull/1240))
123+
- Fixed `scatter3d` text alignment
124+
([#1055](https://github.com/plotly/plotly.py/issues/1055),
125+
[plotly/plotly.js#3180](https://github.com/plotly/plotly.js/pull/3180))
126+
127+
128+
### JupyterLab Versions
129+
For use with JupyterLab, the following versions of the following packages
130+
must be installed:
131+
132+
- Python Packages
133+
- plotly==3.4.0
134+
- ipywidgets>=7.2
135+
- notebook>=5.3
136+
- jupyterlab==0.35
137+
138+
- JupyterLab Extensions
139+
140+
- @jupyter-widgets/jupyterlab-manager@0.38
141+
- @jupyterlab/plotly-extension@0.18
142+
5143
## [3.3.0] - 2018-09-28
6144

7145
### Updated

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ Built on top of [plotly.js](https://github.com/plotly/plotly.js), `plotly.py` is
5454

5555
plotly.py may be installed using pip...
5656
```
57-
pip install plotly==3.3.0
57+
pip install plotly==3.4.0
5858
```
5959

6060
or conda.
6161
```
62-
conda install -c plotly plotly=3.3.0
62+
conda install -c plotly plotly=3.4.0
6363
```
6464

6565
### Jupyter Notebook Support
@@ -102,7 +102,7 @@ set NODE_OPTIONS=--max-old-space-size=4096
102102
jupyter labextension install @jupyter-widgets/[email protected] --no-build
103103
104104
# FigureWidget support
105-
jupyter labextension install plotlywidget@0.4.0 --no-build
105+
jupyter labextension install plotlywidget@0.5.0 --no-build
106106
107107
# offline iplot support
108108
jupyter labextension install @jupyterlab/[email protected] --no-build

js/package-lock.json

+12-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "plotlywidget",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"description": "The plotly.py ipywidgets library",
55
"author": "The plotly.py team",
66
"license": "MIT",
@@ -31,7 +31,7 @@
3131
"ify-loader": "^1.1.0"
3232
},
3333
"dependencies": {
34-
"plotly.js": "1.42.0",
34+
"plotly.js": "1.42.2",
3535
"@jupyter-widgets/base": "^1.0.0",
3636
"lodash": "^4.17.4"
3737
},

plotly/graph_objs/_barpolar.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def hoverinfo(self):
141141
142142
The 'hoverinfo' property is a flaglist and may be specified
143143
as a string containing:
144-
- Any combination of ['r', 'theta', 'text', 'name', 'name'] joined with '+' characters
144+
- Any combination of ['r', 'theta', 'text', 'name'] joined with '+' characters
145145
(e.g. 'r+theta')
146146
OR exactly one of ['all', 'none', 'skip'] (e.g. 'skip')
147147
- A list or array of the above

plotly/graph_objs/_choropleth.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def hoverinfo(self):
369369
370370
The 'hoverinfo' property is a flaglist and may be specified
371371
as a string containing:
372-
- Any combination of ['location', 'z', 'text', 'name', 'name'] joined with '+' characters
372+
- Any combination of ['location', 'z', 'text', 'name'] joined with '+' characters
373373
(e.g. 'location+z')
374374
OR exactly one of ['all', 'none', 'skip'] (e.g. 'skip')
375375
- A list or array of the above

plotly/graph_objs/_figure.py

-5
Original file line numberDiff line numberDiff line change
@@ -5106,7 +5106,6 @@ def add_parcoords(
51065106
domain=None,
51075107
hoverinfo=None,
51085108
hoverinfosrc=None,
5109-
hoverlabel=None,
51105109
ids=None,
51115110
idssrc=None,
51125111
labelfont=None,
@@ -5159,9 +5158,6 @@ def add_parcoords(
51595158
events are still fired.
51605159
hoverinfosrc
51615160
Sets the source reference on plot.ly for hoverinfo .
5162-
hoverlabel
5163-
plotly.graph_objs.parcoords.Hoverlabel instance or dict
5164-
with compatible properties
51655161
ids
51665162
Assigns id labels to each datum. These ids for object
51675163
constancy of data points during animation. Should be an
@@ -5227,7 +5223,6 @@ def add_parcoords(
52275223
domain=domain,
52285224
hoverinfo=hoverinfo,
52295225
hoverinfosrc=hoverinfosrc,
5230-
hoverlabel=hoverlabel,
52315226
ids=ids,
52325227
idssrc=idssrc,
52335228
labelfont=labelfont,

plotly/graph_objs/_figurewidget.py

-5
Original file line numberDiff line numberDiff line change
@@ -5106,7 +5106,6 @@ def add_parcoords(
51065106
domain=None,
51075107
hoverinfo=None,
51085108
hoverinfosrc=None,
5109-
hoverlabel=None,
51105109
ids=None,
51115110
idssrc=None,
51125111
labelfont=None,
@@ -5159,9 +5158,6 @@ def add_parcoords(
51595158
events are still fired.
51605159
hoverinfosrc
51615160
Sets the source reference on plot.ly for hoverinfo .
5162-
hoverlabel
5163-
plotly.graph_objs.parcoords.Hoverlabel instance or dict
5164-
with compatible properties
51655161
ids
51665162
Assigns id labels to each datum. These ids for object
51675163
constancy of data points during animation. Should be an
@@ -5227,7 +5223,6 @@ def add_parcoords(
52275223
domain=domain,
52285224
hoverinfo=hoverinfo,
52295225
hoverinfosrc=hoverinfosrc,
5230-
hoverlabel=hoverlabel,
52315226
ids=ids,
52325227
idssrc=idssrc,
52335228
labelfont=labelfont,

plotly/graph_objs/_parcats.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def hoverinfo(self):
244244
245245
The 'hoverinfo' property is a flaglist and may be specified
246246
as a string containing:
247-
- Any combination of ['count', 'probability', 'z', 'text', 'name'] joined with '+' characters
247+
- Any combination of ['count', 'probability'] joined with '+' characters
248248
(e.g. 'count+probability')
249249
OR exactly one of ['all', 'none', 'skip'] (e.g. 'skip')
250250
- A list or array of the above

0 commit comments

Comments
 (0)