v3.4.0
[3.4.0] - 2018-11-02
Updated
- Updated Plotly.js to version 1.42.2. Select highlights included below, see
the plotly.js CHANGELOG for more information.
Added
- Default figure properties may now be customized using figure
templates (themes) and 7 new predefined templates are bundled with
plotly.py
(#1224) - Added Parallel Categories (
parcats) trace type for the visualization
of multi-dimensional categorical datasets
(plotly/plotly.js#2963) - Added LaTeX typesetting support for figures displayed in the Jupyter
Notebook usingplotly.offline.iplotandplotly.graph_objs.FigureWidget.
Note: There are still outstanding issues with MathJax rendering in FireFox,
but it is now working well in Chrome.
(#1243) - Added
include_mathjaxargument toplotly.offline.plotto support
the creation of HTML files with LaTeX typesetting
(#1243) - Added new
plotly.offline.get_plotlyjsfunction that returns the
contents of the bundled plotly.js library as a string
(#637,
#1246) - Added new
plotly.offline.get_plotlyjs_versionfunction that returns
the version of the bundled plotly.js library
(#1246) - HTML div strings returned by
plotly.offline.plotnow contain logic
to automatically resize the figure responsively. This logic was previously
only added for html files.
(#1043,
#1234) - Figures displayed using
plotly.offline.iplotin the classic Jupyter
Notebook will now resize responsively
(#1234) - Added
'cdn','directory', and path stringinclude_plotlyjsoptions
inplotly.offline.plot
(#1234)- When
'cdn', the resulting html file/div includes a script tag reference
to the plotlyjs cdn. - When
'directory', the resulting html file/div includes a script tag
reference to a plotly.min.js bundle in the same directory as the html file.
Ifoutput_typeis'file'then this plotly.min.js bundle is created in
the output directory if it doesn't already exist. - When a string ending with
'.js', the resulting html file/div includes
a script tag that references this exact path. This can be used to point
to a plotly.js bundle from an alternative CDN.
- When
- Added a new
color_thresholdargument to thecreate_dendrogramfigure
factory to control the dendrogram clustering cutoff
(#995,
#1075,
#1214) - Added support for
autorange='reversed'in 3D axes
(#803,
plotly/plotly.js#3141) - Added new gl3d tick and title auto-rotation algorithm that limits text
overlaps
(plotly/plotly.js#3084,
plotly/plotly.js#3131) - Added
modebarlayout style attributes:
orientation,bgcolor,colorandactivecolor
(plotly/plotly.js#3068,
plotly/plotly.js#3091) - Added
title,titlepositionandtitlefontattributes to pie traces
(plotly/plotly.js#2987) - Added
hoverlabel.splitattribute toohlcandcandlesticktraces to
split hover labels into multiple pieces
(plotly/plotly.js#2959) - Added support for
line.shapevalues'hv','vh','hvh'
and'vhv'inscattergltraces
(plotly/plotly.js#3087) - Added trace, node and link
hoverinfoforsankeytraces
(#3096,
#3150) - Added per-sector
textfontsettings in pie traces
(#3130)
Changed
- Use new Plotly logo in "Produced with Plotly" modebar button
(plotly/plotly.js#3068)
Fixed
- Plotly's use of MathJax for LaTeX typesetting no longer interferes with
the Jupyter Notebook's use of MathJax
(#445,
#360) - Fixed several issues with the use of
reversescale=Truein the
create_annotated_heatmapfigure factory
(#1251) - Fixed case where
plotly.offline.iplotwould fail to render in the classic
Jupyter Notebook if the notebook contained a Markdown headline with the text
"Plotly"
(#816) Nonevalues in ascatter.hovertextlist are now omitted from the
hover label rather than being displayed as the string"None"
(#1244)- Subplot titles created by
plotly.tools.make_subplotsare now positioned
properly when customrow_width/column_widtharguments are specified
(#1229) - The
bar.widthproperty may now be specified as a numpy array or a pandas
series
(#1231,
plotly/plotly.js#3169) - Error bars are now scaled correctly for logarithmic
scatter3dtraces
(#1139) - Use
uuid.uuid4rather thanuuid.uuid1to work around an upstream
Python bug
(#1235,
#1236) - The
layout.grid.subplotsproperty may now be specified as a 2D list of
subplot identifiers
(#1220,
#1240) - Fixed
scatter3dtext alignment
(#1055,
plotly/plotly.js#3180)
JupyterLab Versions
For use with JupyterLab, the following versions of the following packages
must be installed:
-
Python Packages
- plotly==3.4.0
- ipywidgets>=7.2
- notebook>=5.3
- jupyterlab==0.35
-
JupyterLab Extensions
- plotlywidget@0.5.0
- @jupyter-widgets/jupyterlab-manager@0.38
- @jupyterlab/plotly-extension@0.18