Recent Releases of chart-studio
chart-studio - v6.3.0
Updated
- Updated Plotly.js from version 3.0.1 to version 3.1.0. See the plotly.js release notes for more information. [#5318]
Added
- Exposed
plotly.io.get_chrome()as a function which can be called from within a Python script. [#5282]
Fixed
- Resolved issue causing extraneous engine deprecation warnings [#5287], with thanks to @jdbeel for the contribution!
- Python
Published by camdecoster 10 months ago
chart-studio - v6.2.0
Added
- Add SRI (Subresource Integrity) hash support for CDN script tags when using
include_plotlyjs='cdn'. This enhances security by ensuring browser verification of CDN-served plotly.js files #5165
Fixed
- Allow setting Plotly.js path via
pio.defaults[#5207]
Changed
- Refactor validation code to reduce bundle size #5214
- Add deprecation warnings when using Kaleido v0 or deprecated image export features [#5177]
- Python
Published by emilykl 12 months ago
chart-studio - v6.1.2
Fixed
- Fix type checking and code highlighting for
graph_objectsclasses [#5199]
- Python
Published by emilykl about 1 year ago
chart-studio - v6.1.1
Fixed
- Prevent swallowing of
ValueErrorwhen creating a figure with subplots [#3888] - Fix issue causing
fig.write_image()to not generate an image [#5193]
- Python
Published by emilykl about 1 year ago
chart-studio - v6.1.0
Updated
- Add support for Kaleido>=v1.0.0 for image generation [#5062, #5177]
- Reduce package bundle size by 18-24% via changes to code generation [#4978]
Fixed
- Fix third-party widget display issues in v6 [#5102]
- Add handling for case where
jupyterlabornotebookis not installed [#5104] - Fix issue causing Plotly.js script to be embedded multiple times in Jupyter notebooks [#5112]
- Re-add MIME renderer JupyterLab extension with JupyterLab 4 support to reduce file sizes for offline notebooks [#5096]
- Fix issue preventing plots from rendering in HTML notebook export when using 'vscode+notebook' renderer [#5154]
- Python
Published by emilykl about 1 year ago
chart-studio - v6.1.0rc0
Updated
- Add support for Kaleido>=v1.0.0 for image generation, and deprecate support for Kaleido<1 and Orca [#5062]
- Reduce package bundle size by 18-24% via changes to code generation [#4978]
Fixed
- Fix third-party widget display issues in v6 [#5102]
- Add handling for case where
jupyterlabornotebookis not installed [#5104] - Fix issue causing Plotly.js script to be embedded multiple times in Jupyter notebooks [#5112]
- Re-add MIME renderer JupyterLab extension with JupyterLab 4 support to reduce file sizes for offline notebooks [#5096]
- Fix issue preventing plots from rendering in HTML notebook export when using 'vscode+notebook' renderer [#5154]
- Python
Published by emilykl about 1 year ago
chart-studio - v6.1.0b0
Updated
- Add support for Kaleido >= v1.0.0 for image generation, and deprecate support for Kaleido<1 and Orca [#5062]
Fixed
- Fix third-party widget display issues in v6 [#5102]
- Add handling for case where
jupyterlabornotebookis not installed [#5104] - Fix issue causing Plotly.js script to be embedded multiple times in Jupyter notebooks [#5112]
- Python
Published by emilykl about 1 year ago
chart-studio - v6.0.1
Updated
- Updated Plotly.js from version 3.0.0 to version 3.0.1. See the plotly.js CHANGELOG for more information.
Fixed
- Fix
TypeErrorwhen usingorjsonto serializepandas.NA[#5040]. - Fix issue where using
category_ordersonpx.pieraisedColumnNotFoundError[#5000]. - Fix incorrect
DeprecationWarningshown when creating apxchart [#5080, #5086]
- Python
Published by emilykl about 1 year ago
chart-studio - v6.0.0
[6.0.0] - 2025-01-28
Added
- Add
plotly[express]extra for easily installing Plotly Express dependencies [#4644] - Add
subtitleattribute to all Plotly Express traces [#4830].
Removed
- Drop deprecated
pointcloudandheatmapgltraces from the API [#4815] - Drop
tenacitydependency [#4831] - Drop support for Jupyter Notebook version 6 and earlier [#4822]. The minimum supported version is now 7.0.0.
Updated
- Update Plotly.js from version 2.34.2 to version 3.0.0 See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. Notable changes include:- Make offsetgroup work with barmode "stacked" and "relative" for bar traces [#7009]
- Drop support for deprecated attributes
titlefont,titleposition,titleside, andtitleoffset[#7212]. - Drop deprecated pointcloud and heatmapgl traces and gl2d subplots [#7213]
- Drop support for deprecated
bardirattribute (useorientationinstead) [#7214] - Drop support for deprecated
annotation.refattribute (useannotation.xrefandannotation.yrefinstead) [#7215] - Drop support for deprecated error bar
opacityattribute (use alpha channel of error barcolorattribute instead) [#7214] - Drop support for deprecated attribute
gl3d.cameraposition(usegl3d.camerainstead) [#7217] - Drop deprecated
plot3dPixelRatiofrom config [#7231] - Drop deprecated
zauto,zminandzmaxfrom the surface trace [#7234] - Drop deprecated
autotickattributes from cartesian axes [#7236] - Drop
transformsfrom the API [#7240, #7254]
- Deprecate Mapbox-based traces.[#4900]. See the MapLibre Migration page for details on migrating from Mapbox to Maplibre.
- Update plotly.py to use base64 encoding of typed arrays e.g. numpy in plotly JSON to keep precision intact and improve performance [#4470].
- Make plotly-express dataframe agnostic via Narwhals [#4790].
- Update
go.FigureWidgetto useanywidget[#4823] - Use modern native ES6 import to load plotly.js bundle instead of requirejs which is no longer under active development [#4736]
Fixed
- Fix a bug in JupyterLab >= 4 and Jupyter Notebook >= 7 that caused LaTeX to not render in plotly charts [#4763].
- Fix
go.FigureWidget.showto returnFigureWidgetinstead of displayingFigure[#4869]
- Python
Published by marthacryan over 1 year ago
chart-studio - v6.0.0rc0
Added
- Add
plotly[express]extra for easily installing Plotly Express dependencies [#4644] - Add
subtitleattribute to all Plotly Express traces [#4830].
Removed
- Drop deprecated
pointcloudandheatmapgltraces from the API [#4815] - Drop
tenacitydependency [#4831] - Drop support for Jupyter Notebook version 6 and earlier [#4822]. The minimum supported version is now 7.0.0.
Updated
- Deprecate Mapbox-based traces.[#4900]. See the MapLibre Migration page for details on migrating from Mapbox to Maplibre.
- Update plotly.py to use base64 encoding of typed arrays e.g. numpy in plotly JSON to keep precision intact and improve performance [#4470].
- Make plotly-express dataframe agnostic via Narwhals [#4790].
- Update
go.FigureWidgetto useanywidget[#4823] - Use modern native ES6 import to load plotly.js bundle instead of requirejs which is no longer under active development [#4736]
- Update Plotly.js from version 2.34.2 to version 3.0.0-rc1 See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. Notable changes include:- Make offsetgroup work with barmode "stacked" and "relative" for bar traces [#7009]
- Drop support for deprecated attributes
titlefont,titleposition,titleside, andtitleoffset[#7212]. - Drop deprecated pointcloud and heatmapgl traces and gl2d subplots [#7213]
- Drop support for deprecated
bardirattribute (useorientationinstead) [#7214] - Drop support for deprecated
annotation.refattribute (useannotation.xrefandannotation.yrefinstead) [#7215] - Drop support for deprecated error bar
opacityattribute (use alpha channel of error barcolorattribute instead) [#7214] - Drop support for deprecated attribute
gl3d.cameraposition(usegl3d.camerainstead) [#7217] - Drop deprecated
plot3dPixelRatiofrom config [#7231] - Drop deprecated
zauto,zminandzmaxfrom the surface trace [#7234] - Drop deprecated
autotickattributes from cartesian axes [#7236] - Drop
transformsfrom the API [#7240, #7254]
Fixed
- Fix a bug in JupyterLab >= 4 and Jupyter Notebook >= 7 that caused LaTeX to not render in plotly charts [#4763].
- Fix
go.FigureWidget.showto returnFigureWidgetinstead of displayingFigure[#4869]
- Python
Published by marthacryan over 1 year ago
chart-studio - v5.24.1
Updated
- Updated Plotly.js from version 2.35.0 to version 2.35.2. See the plotly.js CHANGELOG for more information.
- Python
Published by LiamConnors almost 2 years ago
chart-studio - v5.24.0
Added
- New
pxfunctions for maps:scatter_map,line_map,choropleth_map, anddensity_map.
Updated
- Updated Plotly.js from version 2.34.0 to version 2.35.0. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. Notable changes include:
Fixed
- Fixed a bug in integer validation of arrays that threw an error when an array contained a mix of strings and integers.
- Python
Published by LiamConnors almost 2 years ago
chart-studio - v5.23.0
Updated
- Updated Plotly.js from version 2.32.0 to version 2.34.0. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. Notable changes include:- Add
subtitleattribute tolayout.titleto enable adding subtitles to plots [#7012] - Introduce "u" and "s" pseudo html tags to add partial underline and strike-through styles to SVG text elements [#7043]
- Add geometric mean functionality and 'geometric mean ascending' + 'geometric mean descending' to
category_orderon cartesian axes [#6223], with thanks to @acxz and @prabhathc for the contribution! - Add axis property
ticklabelindexfor drawing the label for each minor tick n positions away from a major tick, with thanks to @my-tien for the contribution! [#7036] - Add property
ticklabelstandoffandticklabelshiftto cartesian axes to adjust positioning of tick labels, with thanks to @my-tien for the contribution! [#7006] - Add
x0shift,x1shift,y0shift,y1shiftto shapes to add control over positioning of shape vertices on (multi-)category axes, with thanks to @my-tien for the contribution! [#7005]
- Add
- Python
Published by LiamConnors almost 2 years ago
chart-studio - v5.22.0
Updated
- Updated Plotly.js from version 2.31.1 to version 2.32.0. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. Notable changes include:- Add "bold" weight, "italic" style and "small-caps" variant options to fonts [#6956]
- Fix applying autotickangles on axes with showdividers as well as cases where tickson is set to "boundaries" [#6967], with thanks to @my-tien for the contribution!
- Fix positioning of multi-line axis titles with standoff [#6970], with thanks to @my-tien for the contribution!
- Python
Published by LiamConnors about 2 years ago
chart-studio - v5.21.0
Updated
- Updated Plotly.js from version 2.30.0 to version 2.31.1. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. Notable changes include:- Add
zorderattribute to various cartesian traces for controlling stacking order of SVG traces drawn into a subplot [#6918, #6953], This feature was anonymously sponsored: thank you to our sponsor! - Add "between" option to shape layer for placing them above grid lines and below traces [#6927], with thanks to @my-tien for the contribution!
- Add "raw"
sizemodeto cone trace [#6938] - Add
layout.hoversubplotsto enable hover effects across multiple cartesian suplots sharing one axis [#6947, #6950]
- Add
Fixed
- Fixed
orjsonloading issue [#4562]
- Python
Published by LiamConnors about 2 years ago
chart-studio - v5.20.0
Updated
- Updated Plotly.js from version 2.29.1 to version 2.30.0. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. Notable changes include:
- Python
Published by LiamConnors over 2 years ago
chart-studio - v5.19.0
Updated
- Updated Plotly.js from version 2.27.0 to version 2.29.1. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. Notable changes include:- Add
layout.barcornerradiusandtrace.marker.cornerradiusproperties to support rounding the corners of bar traces [#6761], with thanks to Displayr for sponsoring development! - Add
autotickanglesto cartesian and radial axes [#6790], with thanks to @my-tien for the contribution! - Add
alignoption to sankey nodes to control horizontal alignment [#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], with thanks to @greggman for the contribution!
- Add options to use base64 encoding (
bdata) andshape(for 2 dimensional arrays) to declare various typed arrays i.e.dtype=(float64|float32|int32|int16|int8|uint32|uint16|uint8)[#5230] - Adjust stamen styles to point to
stadiamaps.com, the users may also need to provide their own API_KEY viaconfig.mapboxAccessToken[#6776, #6778]
- Add
- Removed Python 3.6 and Python 3.7 support [#4492]
Fixed
- Ensure scatter
modeis deterministic frompx[#4429] - Fix issue with creating dendrogram in subplots [#4411],
- Fix issue with px.line not accepting "spline" line shape [#2812]
- Fix KeyError when using column of
pd.Categoricaldtype with unobserved categories [#4437] - Fix dataframe interchange in case
column_namesreturns an unmaterialized object: generator, iterator, etc. [#4442] - Fix issue with
FutureWarningbeing displayed when setting thecolorargument inplotly.express[#4519]
- Python
Published by LiamConnors over 2 years ago
chart-studio - v5.18.0
Updated
- Updated Plotly.js from version 2.26.0 to version 2.27.0. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. Notable changes include:- Add
insiderangeto cartesian axes to help avoid overlap between visible grid lines and tick labels of the counter axis when they are positioned inside [#6735], this feature was anonymously sponsored: thank you to our sponsor! - Fix column order changes on hover [#6718], with thanks to @bhavinpatel1109 for the contribution!
- Fix hover at timestamp '1970-01-01 00:00:00' [#6752], with thanks to @adamjhawley for the contribution!
- Fix clearing empty
candlestickusing react [#6757]
- Add
Fixed
- Repair crash on Matplotlib 3.8 related to getoffsetposition [#4372],
- Handle deprecation of
pandas.Series.dt.to_pydatetime()calls and suppress theFutureWarningthey currently emit. [#4379]
- Python
Published by archmoj over 2 years ago
chart-studio - v5.17.0
Updated
- Improved json docstrings, added
BasePlotlyType.to_json()method [#4301] - Updated Plotly.js from version 2.25.2 to version 2.26.0. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. Notable changes include:- Add "min", "max", "min reversed" and "max reversed" autorange options and handle partial ranges (i.e. one end being null), add
autorangeoptions(clipmin,clipmax,minallowed,maxallowed,include) as well asminallowedandmaxallowedto cartesian, gl3d and radial axes [#6547] - Add [n]-sigma (std deviations) box plots as an alternative to quartiles [#6697], with thanks to @28raining for the contribution!
- Add "top left" & "top center" side options to legend title [#6711], with thanks to @28raining for the contribution!
- Add "false" option to
scaleanchorto allow removing a constraint that is set by default [#6712], with thanks to @lvlte for the contribution!
- Add "min", "max", "min reversed" and "max reversed" autorange options and handle partial ranges (i.e. one end being null), add
Fixed
- Fixed two issues with px.imshow: [#4330] when facetcol is an earlier dimension than animationframe for xarrays and [#4329] when facet_col has string coordinates in xarrays [#4331]
- Python
Published by LiamConnors almost 3 years ago
chart-studio - v5.16.1
Fixed
- Fixed issue with necessary columns from complex arguments dropped when interchanging dataframes [#4324]
- Python
Published by alexcjohnson almost 3 years ago
chart-studio - v5.16.0
Updated
- Updated Plotly.js from version 2.24.1 to version 2.25.2. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. Notable changes include: pxmethods now accept data-frame-like objects that support a dataframe interchange protocol, such as polars, vaex, modin etc. This protocol has priority onto_pandascall, but will only be used if pandas>=2.0.2 is installed in the environment.pxmethods now accept data-frame-like objects that support atoPandas()method, such as Spark DataFrames, or ato_pandas_df()method, such as Vaex DataFrames.
Fixed
- Fixed Pandas performance warning issue caused by multiple
frame.insert[#4246]
- Python
Published by LiamConnors almost 3 years ago
chart-studio - v5.15.0
Updated
- Updated Plotly.js from version 2.20.0 to version 2.24.1. See the plotly.js CHANGELOG for more information. Notable changes include:
- Add pattern to pie, funnelarea, sunburst, icicle and treemap traces [#6601, #6619, #6622, #6626, #6627, #6628, #6629], with thanks to @thierryVergult for the contribution!
- Add
texttemplateto shape.label for parametric shapes i.e. line, rect and circle [#6527], with thanks to the Volkswagen Center of Excellence for Battery Systems for sponsoring development! - Add strict option to custom bundle command [#6557], with thanks to @CallumNZ for the contribution!
- Add
legendreferences to traces andlegend2,legend3, etc. to layout, also addvisibleto legend i.e. to allow positioning multiple legends on a graph [#6535], this feature was anonymously sponsored: thank you to our sponsor! - Add
legend.xrefandlegend.yrefto enable container-referenced positioning of legends [#6589], with thanks to Gamma Technologies for sponsoring the related development. - Add
colorbar.xrefandcolorbar.yrefto enable container-referenced positioning of colorbars [#6593], with thanks to Gamma Technologies for sponsoring the related development.
pxmethods now accept data-frame-like objects that support ato_pandas()method, such as polars, cudf, vaex etc
Fixed
- Fixed another compatibility issue with Pandas 2.0, just affecting
px.*(line_close=True)[#4190] - Empty pandas dataframe with facet row/column set no longer fails [#4038]
- Added some rounding to the
make_subplotsfunction to handle situations where the user-input specs cause the domain to exceed 1 by small amounts [#4153] - Sanitize JSON output to prevent an XSS vector when graphs are inserted directly into HTML [#4196]
- Fixed issue with shapes and annotations plotting on the wrong y axis when supplied with a specific axis in the
yrefparameter [#4177] - Remove
use_2to3setuptools arg, which is invalid in the latest Python and setuptools versions [#4206] - Fix #4066 JupyterLab v4 giving tiny default graph height [#4227]
- Fixed issue with
colors.n_colorswhere generated RGB color values were not being constrained to stay between 0 and 255 [#4110] - Fix streamline figure factory with recent versions of Numpy
- Fix issue with shapes and annotations not drawing on correct axis [#4177]
- Python
Published by LiamConnors about 3 years ago
chart-studio - v5.14.1
Fixed
- Fixed compatibility issue with Pandas 2.0 [#4103]
- Python
Published by LiamConnors about 3 years ago
chart-studio - v5.14.0
Updated
- Updated Plotly.js from version 2.18.2 to version 2.20.0. See the plotly.js CHANGELOG for more information. Notable changes include:
- Add
title.automarginto enable automatic top and bottom margining for both container and paper referenced titles [#6428], with thanks to Gamma Technologies for sponsoring the related development. - Add
labelattribute to shapes [#6454], with thanks to the Volkswagen Center of Excellence for Battery Systems for sponsoring development! - Add
labelaliasto various axes namely cartesian, gl3d, polar, smith, ternary, carpet, indicator and colorbar [#6481], this feature was anonymously sponsored: thank you to our sponsor!
- Add
- Key errors no longer precalculated when performing updates on plots [#4101]
Fixed
- Fixed an issue with characters displaying incorrectly, by adding
charset="utf-8"to scripts into_html[#4114] - Added
packagingto install requirements, fixing aNo module named 'packagingerror on Python 3.6 [#4113]
Added
- Added option to allow passing a column name as a
strinhover_dataandcustom_datainplotly.express[4083]
- Python
Published by LiamConnors about 3 years ago
chart-studio - v5.13.1
Updated
- Updated Plotly.js to from version 2.18.0 to version 2.18.2. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. - Updated distutils.Version to packaging.Version #3897] and #4055]
- Python
Published by nicolaskruchten over 3 years ago
chart-studio - v5.13.0
See the full release announcement with graphical examples on the forum: https://community.plotly.com/t/announcing-plotly-py-5-13-0-grouped-scatter-new-markers-and-marker-angles-sankey-links-with-arrows/72205
Updated
- Updated Plotly.js to from version 2.17.1 to version 2.18.0. See the plotly.js CHANGELOG for more information. Notable changes include:
- Build process now uses Node 18.x and version 2 lockfile (should be an invisible change for users) [#4034]
Fixed
write_html()now explicitly encodes output as UTF-8 because Plotly.js' bundle contains such characters [#4021] and [#4022]- fixed
iframerenderer regression from 5.12 and also fixed error when this renderer was used in the very first cell in a notebook [#4036]
- Python
Published by nicolaskruchten over 3 years ago
chart-studio - v5.12.0
Updated
- Support for ipywidgets 8 [#3930]
- Updated Plotly.js to from version 2.16.1 to version 2.17.1. See the plotly.js CHANGELOG for more information. Notable changes include:
- Add
shiftandautoshiftto cartesian y axes to help avoid overlapping of multiple axes [#6334], with thanks to Gamma Technologies for sponsoring the related development! - Introduce group attributes for
scattertrace i.e.alignmentgroup,offsetgroup,scattermodeandscattergap[#6381], this feature was anonymously sponsored: thank you to our sponsor! - Add
marker.cornerradiusattribute totreemaptrace [#6351] ### Fixed
- Add
- Fixed the usage of some deprecated NumPy types which were removed in NumPy 1.24 [#3997]
- Fixed bug for trendlines with datetime axes [#3683]
marker.angleattribute now accepts iterables where appropriate [#4013]selector=0now correctly returns the first trace in.select_traces()and related methods [#3817]
- Python
Published by nicolaskruchten over 3 years ago
chart-studio - v5.11.0
Updated
- Updated Plotly.js to from version 2.14.0 to version 2.16.1. See the plotly.js CHANGELOG for more information. Notable changes include:
- Add clustering options to
scattermapbox[#5827], with thanks to @elben10 for the contribution! - Add bounds to mapbox suplots [6339]
- Add
angle,anglerefandstandofftomarkerand addbackofftoline; also introduce new arrow symbols to facilitate drawing networks [#6297] - Add
minreducedwidthandminreducedheightto layout for increasing control over automargin [#6307] - Add
entrywidthandentrywidthmodeto legend [#6202, #6324]
- Add clustering options to
- Python
Published by nicolaskruchten over 3 years ago
chart-studio - v5.10.0
Updated
- Updated Plotly.js to from version 2.12.1 to version 2.14.0. See the plotly.js CHANGELOG for more information. Notable changes include:
- Add support for
sankeylinks with arrows - Add
selections,newselectionandactiveselectionlayout attributes to have persistent and editable selections over cartesian subplots - Add
unselected.line.colorandunselected.line.opacityoptions toparcoordstrace - Display Plotly's new logo in the modebar
- Add support for
- Python
Published by nicolaskruchten almost 4 years ago
chart-studio - v5.9.0
Added
pattern_shapeoptions now available inpx.timeline()#3774facet_*andcategory_ordersnow available inpx.pie()#3775
Performance
pxmethods no longer callgroupbyon the input dataframe when the result would be a single group, and no longer groups by a lambda, for significant speedups #3765 with thanks to @jvdd
Updated
- Allow non-string extras in
flaglistattributes, to support upcoming changes toax.automarginin plotly.js plotly.js#6193, #3749
- Python
Published by nicolaskruchten almost 4 years ago
chart-studio - v5.8.2
Fixed
- Fixed a syntax error that caused rendering issues in Databricks notebooks and likely elsewhere. #3763 with thanks to @fwetdb
- Python
Published by nicolaskruchten about 4 years ago
chart-studio - v5.8.1
(no changes in this release due a build-process error, please see https://github.com/plotly/plotly.py/releases/tag/v5.8.2 for the changes that were initially reported to be in this build)
- Python
Published by nicolaskruchten about 4 years ago
chart-studio - v5.8.0
See the full release announcement on the forum at https://community.plotly.com/t/announcing-plotly-py-5-8-0-better-autocompletions-with-type-hints-minor-ticks/64002 !
Fixed
- Improve support for type checking and IDE auto-completion by bypassing lazy-loading when type checking. #3425 with thanks to @JP-Ellis
- line dash-style validators are now correctly used everywhere so that values like
10px 2pxare accepted #3722 - Resolved various deprecation warning messages and compatibility issues with upstream dependencies and Python 3.11, plus removed dependency on
six, with thanks to @maresb, @hugovk, @tirkarthi, @martinRenou, and @BjoernLudwigPTB - Better support for MathJax 3 #3706
Added
- Type annotations for Plotly Express functions and chainable
go.Figuremethods, for better IDE auto-completion #3708
Updated
- Updated Plotly.js to from version 2.11.1 to version 2.12.1. See the plotly.js CHANGELOG for more information. Notable changes include:
- Add
minorticks to cartesian axes - Add
griddashoption to most axes
- Add
- Python
Published by nicolaskruchten about 4 years ago
chart-studio - v5.7.0
See the full release announcement here: https://community.plotly.com/t/announcing-plotly-py-5-7-0-text-on-histograms-and-heatmaps-patterns-on-areas-plotly-js-version-number-access-smith-charts/62735
Added
- added
pattern_shapeoptions topx.area()#3668
Updated
- Updated Plotly.js to from version 2.9.0 to version 2.11.1. See the plotly.js CHANGELOG for more information. Notable changes include:
- Add
fillpatternoptions toscattertrace - Various JS-specific improvements such as MathJax 3.0 support
- Add
- Python
Published by nicolaskruchten about 4 years ago
chart-studio - v5.6.0
Updated
- Updated Plotly.js to from version 2.8.3 to version 2.9.0. See the plotly.js CHANGELOG for more information. Notable changes include:
- Implement
ticklabelstepto reduce labels on cartesian axes and colorbars - Display the version of plotly.js when hovering over the modebar
- Implement
- Python
Published by nicolaskruchten over 4 years ago
chart-studio - v5.5.0
Added
text_autoargument topx.bar,px.histogram,px.density_heatmap,px.imshow#3518- Deprecated
ff.create_annotated_heatmap,ff.create_county_choropleth,ff.create_gantt#3518 div_idargument topio.to_html,pio.write_html,fig.to_htmlandfig.write_htmlto optionally make its IDs deterministic #3487 with thanks to @Skn0tt
Fixed
- Fixed ValueError when
ff.create_annotated_heatmappassesrgba()colors intoto_rgb_color_list#3478 with thanks to @janosh
Updated
- Updated Plotly.js to from version 2.6.3 to version 2.8.3. See the plotly.js CHANGELOG for more information. Notable changes include:
- Horizontal color bars
texttemplatefor histogram-like and heatmap-like traces
- Python
Published by nicolaskruchten over 4 years ago
chart-studio - v5.4.0
Fixed
- Fixed error when serializing dict with mix of string and non-string keys #3380
Updated
- The JSON serialization engines no longer sort their keys #3380
- Updated Plotly.js to from version 2.4.2 to version 2.6.3. See the plotly.js CHANGELOG for more information. Notable changes include:
- New subplot type
smiththat supportsscattersmithtrace types for visualizing data in the complex domain - Changes to Plotly.js packaging
- New subplot type
- Python
Published by nicolaskruchten over 4 years ago
chart-studio - v5.3.1
Updated
Updated Plotly.js to from version 2.4.1 to version 2.4.2. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include: - Bug fix for rendering unified hover labels in classic Jupyter Notebooks
- Python
Published by nicolaskruchten almost 5 years ago
chart-studio - v5.3.0
- Updated Plotly.js to from version 2.3.1 to version 2.4.1. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. Notable changes include:- Added
legend.groupclickoptions - Provide bbox of hover items in event data
- Added
- Python
Published by nicolaskruchten almost 5 years ago
chart-studio - v5.2.2
Fixed
- Fixed error when using the orjson engine with non-string keys #3351
- Python
Published by nicolaskruchten almost 5 years ago
chart-studio - v5.2.1
See the full release announcement here: https://community.plotly.com/t/announcing-plotly-py-5-2-1-trendlines-ecdf-plots-markers-on-lines-sharper-webgl-legend-group-titles/55681
Updated
- Updated Plotly.js to from version 2.2.0 to version 2.3.1. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. Notable changes include:- new projections in
geosubplots from a more recent version ofd3-geo - new number-formatting directives from a more recent version of
d3-format - Improve rendering of
scattergl,splomandparcoordsby implementingplotGlPixelRatiofor those traces - performance improvements and bug fixes
- new projections in
Added
- Extra flags were added to the
gapminderandstocksdataset to facilitate testing, documentation and demos #3305 - All line-like Plotly Express functions now accept
markersargument to display markers, and all butline_mapboxacceptsymbolto map a field to the symbol attribute, similar to scatter-like functions #3326 px.scatterandpx.density_contoursnow support newtrendlinetypes'rolling','expanding'and'ewm'#2997px.scatterandpx.density_contoursnow support newtrendline_optionsargument to parameterize trendlines, with support for constant control and log-scaling in'ols'and specification of the fraction used for'lowess', as well as pass-through to Pandas for'rolling','expanding'and'ewm'#2997px.scatterandpx.density_contoursnow support newtrendline_scopeargument that accepts the value'overall'to request a single trendline for all traces, including across facets and animation frames #2997- A new
px.ecdf()function for Empirical Cumulative Distribution Functions #3330
Fixed
- Fixed regression introduced in version 5.0.0 where pandas/numpy arrays with
dtypeof Object were being converted tolistvalues when added to a Figure (#3292, #3293) - Better detection of Chrome and Chromium browsers in the Renderers framework, especially on Linux (#3278) with thanks to @c-chaitanya for the contribution
- Python
Published by nicolaskruchten almost 5 years ago
chart-studio - v5.1.0
- Updated Plotly.js from version 2.1.0 to version 2.2.0. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. Notable changes include:- new
<trace>.legendgrouptitleattribute for legend group titles - new
%htext formatting directive for half-years - performance improvements and bug fixes
- new
- Python
Published by nicolaskruchten almost 5 years ago
chart-studio - v5.0.0 - a new federated Jupyter extension, Icicle charts, and Bar chart patterns
See the full release announcement here: https://community.plotly.com/t/introducing-plotly-py-5-0-0-a-new-federated-jupyter-extension-icicle-charts-and-bar-chart-patterns/54039
Updated/Changed
Items in this section may be considered backwards-incompatible changes for the purposes of Semantic Versioning but we expect the vast majority of users to be able to upgrade to version 5.0 without encountering any issues.
- Dropped support for Python older than 3.6 #3160
- Updated Plotly.js to from version 1.58.4 to version 2.1.0. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. Notable changes include:- dropped support for IE9 and IE10
- dropped support for long-deprecated
graph_objectslikeareatraces andscatter.(t|r)andlayout.(radial|angular)axisattributes - modebar no longer has hovermode or spikeline buttons by default (can be added back with
fig.update_layout(modebar_add=["v1hovermode", "toggleSpikeLines"])) - "Aa" text no longer appears on legend items unless
mode="text" - In
bartraces,textpositionnow defaults to"auto" - Font size for legend and colorbar titles now matches axis title font size (slightly bigger)
- deprecated
heatmapgl,pointcloudtraces as well as alltransformattributes
- Combined
plotlywidgetintojupyterlab-plotlyand packaged them as a federated extension #3142 with massive thanks to @fcollonval for the contribution- In addition to this change, large Plotly.js bundles are now lazily loaded on-demand by JupyterLab
- Plotly.js CDN url will now be versioned by default for HTML exports using
include_plotlyjs='cdn'and for "connected" renderers. #2961 with thanks to @adehad for the contribution - Recommending Kaleido by default over Orca #3094
- Replaced
retryingdependency withtenacity#2911 with thanks to @jmsmdy for the contribution - Plotly Express now always takes into account every value in
category_orderswhen computing discrete mappings (color, symbol, line-dash, pattern-shapes) as well as facets, even those values which are absent in the data #3247
Added
- Additions due to bumping Plotly.js from 1.58.4 to 2.1.0 (see changelog):
- New
icicletrace type, with thanks to @Kully and @mtwichan of Zyphr for their contribution! - New
marker.patternoptions forbar-like trace types with thanks to @s417-lama for the contribution! - New
legendrankattribute to control rank of traces within legends
- New
- Plotly Express'
px.bar(),px.histogram()andpx.bar_polar()now support thepattern_shapeargument #3252 - New Plotly Express
px.icicle()function, with thanks to @Kully and @mtwichan of Zyphr for their contribution! #3256 - New functions in
plotly.colors:get_colorscale()andsample_colorscale()#3136 and #3186 with thanks to @CarlAndersson for the contributions - Faster JSON encoding when
orjsonis present #2955
Fixed
- Pandas and Numpy datetime serialization fixes #3022
- Fixed selected points of histograms in FigureWidget #2771 with thanks to @meffmadd for the contribution
- Static image export now honors
layout.(width|height)#3240 - Improvements to "matplotlylib" conversion utility in
plotly.tools.mpl_to_plotly()with thanks to @fdion #3143
- Python
Published by nicolaskruchten almost 5 years ago
chart-studio - v5.0.0rc2
Find out more about the RC process on our Forum: https://community.plotly.com/t/plotly-py-5-0-is-coming-soon-try-the-release-candidate-today/53470
Updated
- Updated Plotly.js to version 2.0.0. See the plotly.js 2.0.0 CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. Notable changes include:- new
marker.patternoptions forbar-like trace types - dropped support for IE9 and IE10
- dropped support for long-deprecated
graph_objectslikeareatraces andscatter.(t|r)andlayout.(radial|angular)axisattributes - deprecated
heatmapgl,pointcloudtraces as well as alltransformattributes
- new
- Combined
plotlywidgetintojupyterlab-plotlyand packaged them as a federated extension #3142 with massive thanks to @fcollonval for the contribution - Plotly.js CDN url will now be versioned by default for HTML exports using
include_plotlyjs='cdn'and for "connected" renderers. #2961 with thanks to @adehad for the contribution - Dropped support for Python older than 3.6 #3160
- Recommending Kaleido by default over Orca #3094
- Replaced
retryingdependency withtenacity#2911 with thanks to @jmsmdy for the contribution
Added
- New functions in
plotly.colors:get_colorscale()andsample_colorscale()#3136 and #3186 with thanks to @CarlAndersson for the contributions - Faster JSON encoding when
orjsonis present #2955
Fixed
- Pandas and Numpy datetime serialization fixes #3022
- Fixed selected points of histograms in FigureWidget #2771 with thanks to @meffmadd for the contribution
- Python
Published by nicolaskruchten about 5 years ago
chart-studio - v5.0.0rc1
Find out more about the RC process on our Forum: https://community.plotly.com/t/plotly-py-5-0-is-coming-soon-try-the-release-candidate-today/53470
Updated
- Updated Plotly.js to version 2.0.0-rc.2. See the plotly.js 2.0.0 CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. Notable changes include:- new
marker.patternoptions forbar-like trace types - dropped support for IE9 and IE10
- dropped support for long-deprecated
graph_objectslikeareatraces andscatter.(t|r)andlayout.(radial|angular)axisattributes - deprecated
heatmapgl,pointcloudtraces as well as alltransformattributes
- new
- Combined
plotlywidgetintojupyterlab-plotlyand packaged them as a federated extension #3142 with massive thanks to @fcollonval for the contribution - Plotly.js CDN url will now be versioned by default for HTML exports using
include_plotlyjs='cdn'and for "connected" renderers. #2961 with thanks to @adehad for the contribution - Dropped support for Python older than 3.6 #3160
- Recommending Kaleido by default over Orca #3094
- Replaced
retryingdependency withtenacity#2911 with thanks to @jmsmdy for the contribution
Added
- New functions in
plotly.colors:get_colorscale()andsample_colorscale()#3136 and #3186 with thanks to @CarlAndersson for the contributions - Faster JSON encoding when
orjsonis present #2955
Fixed
- Pandas and Numpy datetime serialization fixes #3022
- Fixed selected points of histograms in FigureWidget #2771 with thanks to @meffmadd for the contribution
- Python
Published by nicolaskruchten about 5 years ago
chart-studio - v4.14.3
px.timeline()now allowshover_dataformatting of start and end times 3018- Small change to packaging of
plotlywidgetextension for JupyterLab 3 3021
- Python
Published by nicolaskruchten over 5 years ago
chart-studio - v4.14.2
Updated
- JupyterLab extensions now compatible with JupyterLab 3.x 3016
- Updated Plotly.js to version 1.58.4. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. Notable changes include:- fixes for rendering 3d plots on recent Safari versions
- fixes to inside ticklabels
- regression fixes
Fixed
px.histogram()Y-axis labels now take into accounthistnormandbarnorm2989px.histogram()marginalandfacet_*now work correctly together 3014
- Python
Published by nicolaskruchten over 5 years ago
chart-studio - v4.14.1
See the full announcement at https://community.plotly.com/t/announcing-plotly-py-4-14-faceted-and-animated-images-and-heatmaps-inside-tick-labels-better-axis-type-detection/48079
Updated
- Updated Plotly.js to version 1.58.2. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. Notable changes include:- fixes for new
ticklabelpositionattribute - fixes for a regression related to treemaps in the previous version
- fixes for new
- Python
Published by nicolaskruchten over 5 years ago
chart-studio - v4.14.0 - Faceted and Animated Images and Heatmaps, Inside Tick Labels, Better Axis Type Detection
See the full announcement at https://community.plotly.com/t/announcing-plotly-py-4-14-faceted-and-animated-images-and-heatmaps-inside-tick-labels-better-axis-type-detection/48079
Added
px.imshownow supportsfacet_colandanimation_framearguments for visualizing 3-d and 4-d images 2746px.defaultsnow supportscolor_discrete_map,symbol_map,line_dash_map,labelsandcategory_ordersas well as a.reset()method 2957
Fixed
- axes will now auto-type numeric strings as categorical data rather than linear in the default templates 2951
Updated
- Updated Plotly.js to version 1.58.1. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. Notable changes include:- a new
ticklabelpositionattribute to enable positioning tick labels inside the plotting area - better support for
scaleanchorandmatcheson cartesian axes for matched square subplots - a new
autotypenumbersattribute which is now set tostrictin the default templates - various fixes relating to
automarginsfor small figures
- a new
- Python
Published by nicolaskruchten over 5 years ago
chart-studio - v4.13.0 - Magical Error Messages and Documentation, plus Speedups and Faceted Maps
See the fully release announcement at https://community.plotly.com/t/announcing-plotly-py-4-13-magical-error-messages-and-documentation-plus-speedups-and-faceted-maps/47497
Added
px.choropleth,px.scatter_geoandpx.line_geonow support faceting as well asfitboundsandbasemap_visible2923px.scatter_geoandpx.line_geonow supportgeojson/featureidkeyinput 2923px.scatter_geonow supportssymbol2923go.Figurenow has aset_subplotsmethod to set subplots on an already existing figure. 2866- Added
Turbocolorscale and fancier swatch display functions 2882 - A utility function
image_array_to_data_urihas been added inplotly.utils, in order to transform NumPy arrays to data b64 URIs (which can be passed to the source parameter ofgo.Image, or to layout images). 2879 - the
selectorargument to updater/selector functions now acceptsints andstrs 2894
Updated
- the JSON serialization of plotly figures has been accelerated thanks to a different handling of Infinity and NaN values. For example, a figure with a 1000x1000 Heatmap should now serialize 2x faster. 2880
- Coding mistakes with "magic underscores" now return significantly more ergonomic error messages 2843
- Error messages related to impossible subplot geometries are now much more helpful 2897
Fixed
px.scatter_geosupport fortextis fixed 2923- the
xandyparameters ofpx.imshoware now used also in the case where an Image trace is used (for RGB data or withbinary_string=True). However, only numerical values are accepted (while the Heatmap trace allows date or string values forxandy). 2761
- Python
Published by nicolaskruchten over 5 years ago
chart-studio - v4.12.0 - Horizontal and Vertical Lines and Rectangles
See the full release announcement at https://community.plotly.com/t/announcing-plotly-py-4-12-horizontal-and-vertical-lines-and-rectangles/46783
Added
- For
add_trace,add_shape,add_annotationandadd_layout_image, therowand/orcolargument now also accept the string"all".row="all"adds the object to all the subplot rows andcol="all"adds the object to all the subplot columns. (#2840) - Shapes that reference the plot axes in one dimension and the data in another dimension can be added with the new
add_hline,add_vline,add_hrect,add_vrectfunctions, which also support therow="all"andcol="all"arguments. (#2840) - The
add_trace,add_shape,add_annotation,add_layout_image,add_hline,add_vline,add_hrect,add_vrectfunctions accept an argumentexclude_empty_subplotswhich ifTrue, only adds the object to subplots already containing traces or layout objects. This is useful in conjunction with therow="all"andcol="all"arguments. (#2840) - For all
go.Figurefunctions accepting a selector argument (e.g.,select_traces), this argument can now also be a function which is passed each relevant graph object (in the case ofselect_traces, it is passed every trace in the figure). For graph objects where this function returns true, the graph object is included in the selection. (#2844)
Updated
- Updated Plotly.js to version 1.57.1. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule.
- Python
Published by nicolaskruchten over 5 years ago
chart-studio - v4.11.0 - Period positioning on date axes
See the full release announcement at https://community.plotly.com/t/announcing-plotly-py-4-12-horizontal-and-vertical-lines-and-rectangles/46783
Updated
- Updated Plotly.js to version 1.56.0. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule.
- Python
Published by nicolaskruchten over 5 years ago
chart-studio - v4.10.0 - date-axis improvements, a Faster px.imshow() and Full Figures for Development
See the full announcement at https://community.plotly.com/t/announcing-plotly-py-4-10-date-axis-improvements-a-faster-px-imshow-and-full-figures-for-development/44685
Added
- Added
plotly.io.full_figure_for_development()andplotly.graph_objects.Figure.full_figure_for_development()(#2737)
Updated
- Updated Plotly.js to version 1.55.2. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objectsmodule. px.imshowhas a newbinary_stringboolean argument, which passes the image data as a b64 binary string when True. Using binary strings allow for faster image rendering and smaller figure size. Additional optional argumentsbinary_backend,binary_formatandbinary_compression_levelcontrol how to generate the b64 string (#2691px.imshowhas a newconstrast_rescalingargument in order to choose how to set data values corresponding to the bounds of the color range (#2691
Fixed
- Plotly Express no longer converts datetime columns of input dataframes to UTC (#2749)
- Plotly Express has more complete support for datetimes as additional
hover_data(#2749) - Histogram selection behaviour with
FigureWidget(#2711) with thanks to @meffmadd - Behaviour of
full_html()withhtml=False(#2469) with thanks to @tallamjr ff.distplot()now only computes traces that will be shown (#2730) with thanks to @akbo- Pandas backend
.hist()works with latest version of Pandas (#2713) with thanks to @Kerybas
- Python
Published by nicolaskruchten almost 6 years ago
chart-studio - v4.9.0 - Kaleido for static image export, Hexbin Tile Maps, and Timelines
See the full announcement at https://community.plotly.com/t/announcing-plotly-py-4-9-kaleido-for-static-image-export-hexbin-tile-maps-and-timelines/42524
Added
- Added image export support using Kaleido. The image export backend can be configured using the new
engineargument toplotly.io.to_imageandplotly.io.write_image. Theengineargument may be set to"kaleido","orca", or"auto". The default isengine="auto", in which case the Kaleido backend is enabled if thekaleidopackage from PyPI is installed, otherwise Orca is used. (#2613). plotly.express.timeline()added as an official alternative toplotly.figure_factories.create_gantt()(#2626)create_hexbin_mapbox()added to Figure Factories, with thanks to @RenaudLN for the impressive contribution!facet_row_spacingandfacet_col_spacingadded to Plotly Express cartesian 2d functions (#2614)baseadded to Plotly Expressbarandbar_polarfunctions (#2626)px.NO_COLORconstant to override wide-form color assignment in Plotly Express (#2614)
Fixed
- trendline traces are now of type
scatterglwhenrender_mode="webgl"in Plotly Express (#2614) - regression from 4.8.1 whereby
"parent"was not accepted as part ofpathforpx.sunburst()andpx.treemap()(#2640) create_dendrogram()figure factory now works correctly withscipy1.5.1 (#2627)
Updated
- Updated Plotly.js to version 1.54.6. See the plotly.js CHANGELOG for more information.
- Added all cartesian-2d Plotly Express functions, plus
imshow, to Pandas backend withkindoption (#2541) plotly.express.imshownow uses data frame index and columns names and values to populate axis parameters by default (#2539)- Javascript extensions are now build using Node 12, and have an updated
package-lock.jsonwith many fewer security warnings (#2636)
- Python
Published by nicolaskruchten almost 6 years ago
chart-studio - v4.8.2
See the full announcement at https://community.plotly.com/t/announcing-plotly-py-4-8-plotly-express-support-for-wide-and-mixed-form-data-plus-a-pandas-backend/40048
Updated
- Updated Plotly.js to version 1.54.5. See the plotly.js CHANGELOG for more information. This version includes various bug and security fixes.
add_traces()now accepts bareint-like values forrows/colsas well as lists thereof (#2546), with thanks to @MCBoarder289 for the contribution!
Fixed
row/colnow acceptint-like values, not strictlyintvalues (#2451), with thanks to @MCBoarder289 for the contribution!- Fixed special cases with
px.sunburstandpx.treemapwithpathinput (#2524) - Fixed bug in
hover_dataargument ofpxfunctions, when the column name is changed with labels andhover_datais a dictionary setting up a specific format for the hover data (#2544). - Made the Plotly Express
trendlineargument more robust and made it work with datetimexvalues (#2554) - Fixed bug in
px.sunburstandpx.treemap: when thecolorandvaluesarguments correspond to the same column, a different aggregation function has to be used for the two arguments (#2591) - Plotly Express wide mode now accepts mixed integer and float columns (#2598)
- Plotly Express
range_(x|y)should not impact the unlinked range of marginal subplots (#2600) px.linenow setsline_group=<variable>in wide mode by default (#2599)- Corrected some regex warnings (#2577), with thanks to @georgevdd for the contribution!
- Python
Published by nicolaskruchten almost 6 years ago
chart-studio - v4.8.1
See the full announcement at https://community.plotly.com/t/announcing-plotly-py-4-8-plotly-express-support-for-wide-and-mixed-form-data-plus-a-pandas-backend/40048
Fixed
- Fixed the accidental removal of some functions and submodules from
plotly.colorsandplotly.express.colors
- Python
Published by nicolaskruchten about 6 years ago
chart-studio - v4.8.0 - Plotly Express Support for Wide- and Mixed-Form Data, plus a Pandas backend
See the full announcement at https://community.plotly.com/t/announcing-plotly-py-4-8-plotly-express-support-for-wide-and-mixed-form-data-plus-a-pandas-backend/40048
Key new documentation pages:
Added
plotlynow provides a Plotly Express-backed Pandas-compatible plotting backend, which can be activated viapandas.options.plotting.backend = "plotly". Note that it is not intended to implement every Pandas plotting function, nor is it intended to replicate the behaviour of every argument, although per the changes below,xandyshould behave similarly. (#2336)- New datasets have been added to
plotly.express.data:stocks,experiment,medals_wideandmedals_long. (#2336) - plotly
go.Figureandgo.FigureWidgetnow have a_repr_html_and a_repr_mimebundle_method, which are standard hooks for integration in systems based on IPython. In particular, with_repr_html_plotly figures can now be used within sphinx-gallery without any scraper. These additions should not change anything to the way plotly figures are displayed in notebook environments, since the_ipython_display_method (already present in earlier versions) takes precedence over the new methods.
Updated
- The behaviour of the
x,y,orientation,histfunc,violinmode,boxmodeandstripmodearguments for 2d-cartesian functions in Plotly Express (i.e.scatter,line,area,bar,histogram,violin,box,strip,funnel,density_heatmapanddensity_contour) has been refined (#2336):- wide-form data support: if either
xory(but not both) may now be provided as a list of column references intodata_frameor columns of data, in which case the imputed data frame will be treated as "wide" data andmelt()ed internally before applying the usual mapping rules, with function-specific defaults. - if neither
xnoryis provided butdata_frameis, the data frame will be treated as "wide" with defaults depending on the value oforientation(andorientationhas accordingly been added toscatter,line,density_heatmap, anddensity_contourfor this purpose). Previously this would have resulted in an empty figure. - if
xoryis missing, it is inferred to be the index ofdata_frameifdata_frameprovided, otherwise a stable index of integers starting at 0. In the case ofpx.bar, if the provided value is not continuous, the missing value is treated as a column of 1s named "count", so as to behave more likepx.histogramand to avoid sizing the resulting bars differently based on their position in the column. Previously, missing values defaulted to integers starting at 0 per trace which made it potentially inconsistent or misleading. - if
x(y) is missing,orientationnow defaults tov(h). Previously it always defaulted tovbut this is not considered a breaking change, as the cases in which it now defaults tohcaused unreadable output if set tov. - if both
xandyare provided and one of them does not contain continuous values,orientationdefaults to the value perpendicular to that axis. Previously it always defaulted tovbut this is not considered a breaking change, as the cases in which it now defaults tohcaused unreadable output if set tov. - if both
xandyare provided tohistogram, and ifx,yandzare provided todensity_heatmapordensity_contour, thenhistfuncnow defaults tosumso as to avoid ignoring the provided data, and to causehistogramandbarto behave more similarly. violinmode,boxmodeandstripmodenow default tooverlayifx(y) in inv(h) orientation is also mapped tocolor, to avoid strange spacing issues with the previous default ofgroupin all cases.
- wide-form data support: if either
- The Plotly Express arguments
color_discrete_map,symbol_mapandline_dash_mapnow accept the string"identity"which causes the corresponding input data to be used as-is rather than mapped intocolor_discrete_sequence,symbol_sequenceorline_dash_sequence, respectively. (#2336) - Plotly Express now accepts
px.Constantorpx.Rangeobjects in the place of column references so as to express constant or increasing integer values. (#2336)
- Python
Published by nicolaskruchten about 6 years ago
chart-studio - v4.7.1
Fixed
- Fix
AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget'exception onfrom plotly.graph_objs import *whenipywidgetsis not installed. Error also occurred when importingplotly.figure_factor. It is now possible to importplotly.graph_objs.FigureWidgetwhenipywidgetsis not installed, and an informativeImportErrorexception will be raised in theFigureWidgetconstructor (#2443, #1111). - Fix
TypeError: unhashable type: 'Template'duringFigureconstruction whenplotly.io.templates.defaultis set to aTemplateobject rather than a string.
- Python
Published by nicolaskruchten about 6 years ago
chart-studio - v4.7.0
Updated
- Updated Plotly.js to version 1.54.1. See the plotly.js CHANGELOG for more information. The main new feature of this version of Plotly.js is the possibility to draw layout shapes, using custom dragmodes and corresponding modebar buttons.
- The sphinx-gallery scraper has been updated to work with different structures of galleries #2149
Added
- The
hover_dataparameter ofpxfunctions can now be a dictionary. This makes it possible to skip hover information for some arguments or to change the formatting of hover informatiom #2377. - It's now possible to build a development version of Plotly.py against the build artifacts from a non-
masterbranch of Plotly.js, which makes for faster QA and development cycles #2349. Thanks @zouhairm for this Pull Request!
Fixed
- Plotly Express trendlines now handle missing data correctly #2357
Performance
This version includes several performance improvements (#2368, #2403).
- Child graph objects (e.g.
figure.layout.xaxis) are no longer created eagerly during graph object construction. Instead, they are created lazily the first time the property is accessed. - Property validation is now disabled for select internal operations.
- When used with Python 3.7 and above, ploty.py now takes advantage of PEP-562 to perform submodule imports lazily. This dramatically improves import times.
- Python
Published by nicolaskruchten about 6 years ago
chart-studio - v4.6.0
Updated
- Updated Plotly.js to version 1.53.0. See the plotly.js CHANGELOG for more information on the numerous new features and bug fixes of this release. The main features of the Plotly.js release are
- Introduce range breaks on date axes (for example, to remove week-ends) via
layout.xaxis.rangebreaks - Introduce a new unified x (or y) hovermode (
layout.hovermode="x unified"), in which the hover box shows the information for all traces at a given x (or y) position - Add
node.customdataandlink.customdatato sankey traces - Updated contributing notes for more explanations on how to contribute to plotly.py #2290. Please give feedback on these notes!
- Updated documentation examples #2325, and to show how to color links in Sankey diagrams #2291.
- Special thanks to @SylwiaOliwia2 and @dangercrow for improving our documentation!
- Introduce range breaks on date axes (for example, to remove week-ends) via
Added
px.imshownow acceptsxarrayinputs, with metadata being used for axis labels, hover and colorbar #2166
Fixed
- Fixed handling of
opacityinpx.pie,px.funnel_area,px.density_mapbox,px.funnel#2317, with thanks to @tvaucher for the contribution!
- Python
Published by nicolaskruchten about 6 years ago
chart-studio - v4.5.4
Updated
- The documentation of the API https://plot.ly/python-api-reference/ now documents the full API #2243
- New documentation examples for facets #2235, legend #2227, subplots #2226, axes #2234 and histograms #2242. Thanks to @SylwiaOliwia2 for all these great examples!
Fixed
- Jupyterlab extension now compatible with both Jupyterlab 1.2 and 2.0 #2261 with thanks to @consideRatio for the contribution!
- Fixed a bug when using boolean values for the color argument of px functions #2127
- Corrected import bug which was occuring with old versions of ipywidgets #2265
- Fixed python 3.8 syntax warning #2262, with thanks to @sgn for the contribution!
- Python
Published by nicolaskruchten over 6 years ago
chart-studio - v4.5.3
Updated
- Removed development dependency on
nosetesting framework #2217
Fixed
- JupyterLab extension now compatible with JupyterLab 2.0 #2245 with thanks to @consideRatio for the contribution!
- Python
Published by nicolaskruchten over 6 years ago
chart-studio - v4.5.2
Fixed
- Fix build errors in JupyterLab extension by pinning version of
@types/plotly.js#2223
- Python
Published by nicolaskruchten over 6 years ago
chart-studio - v4.5.1
Updated
- Updated Plotly.js to version 1.52.2. See the plotly.js CHANGELOG for more information on bug fixes.
Fixed
update_annotations,update_shapesandupdate_layout_imagesnow no longer require thepatchargument, as per the docstring #2167px.defaultsno longer accepts arbitrary keys #2168- better error message when
pandasis not installed #2125 - support columns of numerical type in
pathargument ofpx.sunburst/px.treemapand add values ofcolorcolumn in hoverlabel forpx.sunburst/px.treemap#2133
- Python
Published by nicolaskruchten over 6 years ago
chart-studio - v4.5.0
[4.5.0] - 2020-01-22
Updated
- Updated Plotly.js to version 1.52.1. See the plotly.js CHANGELOG for more information on numerous new attribute and bug fixes.
- Plotly Express uses the new
legend.titleattribute and so now has shorter tracenames #2051 - The heuristic used by
px.parallel_categoriesto determine which columns of the data frame to draw has been changed and made more configurable with thedimensions_max_cardinalityargument #2102 - The
simple_whitecolorbar styling has been streamlined #2110 - The
jupyterlab-plotlyandplotlywidgetJupyterLab extensions should now share code when installed together, resulting in smaller JupyterLab vendor bundle sizes #2103
Fixed
- Plotly Express
category_ordersare now respected independent of the contents of the data set #2084 go.Scatterglsymbols now accept numeric specification #1928px.scattertrendline coefficients are now more readable #1984- Built-in cyclical color scales now all have identical start and end points #2016
Added
px.sunburstandpx.treemapnow accept apathargument for passing columns of a rectangular dataframe to build the charts #2006px.choroplethnow accepts a user-suppliedgeojsonattribute #2057px.choroplethandpx.choropleth_mapboxnow acceptfeatureidkeyto specify the GeoJSON field to use to matchlocations#2057px.choroplethandpx.choropleth_mapboxnow accept discrete color #2057px.bar_polarnow accepts continuous color #2017- New
layout.uniformtextattribute allows for automatic standardization of font sizes across bar-like and hierarchical traces. See the plotly.js CHANGELOG for more information
- Python
Published by nicolaskruchten over 6 years ago
chart-studio - v4.4.1
[4.4.1] - 2019-12-10
Fixed
- Fixed improper JSON encoding exception when the
pillowmodule not installed #1993
- Python
Published by jonmmease over 6 years ago
chart-studio - v4.4.0
[4.4.0] - 2019-12-10
Added
- Extended the plotly.express functional API with 7 new functions:
px.pie,px.sunburst,px.treemap,px.funnel, andpx.funnel_area(#1909)px.density_mapboxandpx.choropleth_mapbox#1937. - plotly.express mapbox functions in plotly.express have new arguments
centerandmapbox_style#1937. - plotly.express polar plots (
scatter_polar,line_polar,bar_polar) now have arange_thetakeyword argument for representing only an angular section #1969. - All continuous colorscales now accept a
_rsuffix that reverses their direction #1933 - Docstrings of plotly.py are now doctested #1921.
Updated
- Updated Plotly.js to version 1.51.2. See the plotly.js CHANGELOG for more information
- The tutorials of the plotly.py documentation are now in the main plotly.py Github repository. Contributions in order to improve or extend the documentation are very welcome!
plotly.expressgenerated plots no longer have a default height of 600 pixels, instead they inherit the default height of regular figures #1990. To restore the old behavior, setpx.defaults.height=600once per session, or set theheightkeyword arguement to anypx.function()to 600.
Fixed
- Fixed a plotly.express input bug when using data frame indices#1934
- Fixed how to display facet labels with plotly express #1966
- Fixed a bug to use correctly the
zmin/zmaxparameter inpx.imshowfor single-channel images #1981 - Clipped docstring width for better display in Jupyterlab #1939. Thank you @joelostblom!
- Fixed a bug in the case of external orca server #1915 thank you @dev-dsp!
- Python
Published by jonmmease over 6 years ago
chart-studio - v4.3.0
[4.3.0] - 2019-11-11
Updated
- Updated Plotly.js to version 1.51.1. See the plotly.js CHANGELOG for more information
- Improved propagation of empty templates (#1892)
- Update the
add_annotations/add_shapes/add_imagesmethods to no longer default to adding objects in paper coordinates. This allows plotly.js to determine the default reference frame based on context (#1888) - Use the default template's background color for displaying color swatches (#1872). Special thanks to @joelostblom for this contribution!
- Improved docstrings (#1835, #1837)
Added
- Added image trace type (plotly.js#4289, plotly.js#4307, plotly.js#4313, plotly.js#4319)
- Added matplotlib-style
plotly.express.imshowconvenience function to display images and heatmaps (#1855, #1885) - Added matplotlib-style
simple_whitetemplate (#1864). Special thanks to @joelostblom for this contribution. - Added support for using an externally managed orca server for image export features (#1850). Special thanks to @miriad for this contribution.
- Added facet wrapping support to plotly express functions using the new
facet_col_wrapargument (#1838)
- Python
Published by jonmmease over 6 years ago
chart-studio - v4.2.1
[4.2.1] - 2019-10-18
Fixed
- Fixed regression in 4.2.0 that caused all figure factories to require that scikit-image be installed (#1832)
- Python
Published by jonmmease over 6 years ago
chart-studio - v4.2.0
[4.2.0] - 2019-10-16
Updated
- Updated Plotly.js to version 1.50.1. See the plotly.js CHANGELOG for more information
Added
- Added
treemaptrace type (plotly.js#4185, plotly.js#4219, plotly.js#4227, plotly.js#4242) - Added
add_*/select_*/for_each_*/update_*convenience figure methods for annotations, shapes, and images (#1817) - Added
overwritekwarg toupdate*figure methods to fully replace property values, rather than update them recursively (#1726) - Added
texttemplateattribute to all traces that support on-graph text (plotly.js#4071, plotly.js#4179) - Added date custom formatting in
hovertemplateandtexttemplatee.g.'%{x|%b %-d, %Y}'(plotly.js#4071) - Added transition support to
bartrace length, width, on-graph text positioning, marker style and error bars (plotly.js#4180, plotly.js#4186) - Added support for legend scrolling via touch interactions (plotly.js#3873, plotly.js#4214)
Fixed
- Python
Published by jonmmease over 6 years ago
chart-studio - v4.1.0
Updated
- Updated Plotly.js to version 1.49.1. See the plotly.js CHANGELOG for more information.
- Bars in the figures produced by the
create_ganttfigure factory may now be hidden by clicking on the legend (#1665). Special thanks to @csabaszan for this contribution! - Improved performance when serializing figures containing large numpy arrays (#1690). Special thanks to @miriad for this contribution!
Added
- Added new renderers for displaying figures from within the Databricks and CoCalc notebook services (#1703)
- Added
indicatortraces (plotly/plotly.js#3978) - Added
choroplethmapboxtraces (plotly/plotly.js#3988) - Added
densitymapboxtraces (plotly/plotly.js#3993) - Added new mapbox
stylevalues:open-street-map,carto-positron,carto-darkmatter,stamen-terrain,stamen-toner,stamen-watercolorandwhite-bgthat do not require a Mapbox access token (plotly/plotly.js#3987, plotly/plotly.js#4068) - Added support for
sourcetypevaluerasterandimageandtyperasterfor mapbox layout layers (plotly/plotly.js#4006) - Added
belowattribute toscattermapboxtraces (plotly/plotly.js#4058) - Added support for
below: 'traces'in mapbox layout layers (plotly/plotly.js#4058) - Added
sourceattributionattribute to mapbox layout layers (plotly/plotly.js#4069) - Added
labelangleandlabelsideattributes toparcoordstraces (plotly/plotly.js#3966) - Added
doubleClickDelayconfig option (plotly/plotly.js#3991) - Added
showEditInChartStudioconfig option (plotly/plotly.js#4061)
Fixed
- Fixed incorrect facet row ordering in figures generated by plotly.express functions (plotly/plotly_express#129)
- Fixed "The truth value of an array with more than one element is ambiguous" error when specifying subplot titles as numpy array of strings (#1685). Special thanks to @MrQubo for this contribution!
- The
line_3dplotly express function was not visible by default when importing*fromplotly.express(#1667)
- Python
Published by jonmmease almost 7 years ago
chart-studio - v4.0.0
[4.0.0] - 2019-07-16
This is a major release that includes many new features, and a few breaking changes. See the version 4 announcement for a summary of the important changes.
Updated
- Updated Plotly.js to version 1.48.3. See the plotly.js CHANGELOG for more information.
Added
- The Plotly Express tech preview (https://medium.com/@plotlygraphs/introducing-plotly-express-808df010143d) has been integrated as the
plotly.expressmodule (#1613) - Added a new renderers framework the supports rendering figure in a wide variety of contexts (#1474). See the new Displaying Plotly Figures documentation page for more information.
- Added
plotly.io.write_htmlandplotly.io.to_htmlfunctions for exporting figures to HTML (1474). Also available as.write_htmland.to_htmlfigure methods. - Added new figure methods for batch updating figure properties (
update_layout,update_traces,update_xaxes, etc.) (#1624). See the new Creating and Updating Figures documentation page for more details. - Added support for all trace types in
make_subplots(#1528) - Added support for secondary y-axes in
make_subplots(#1564) - Support passing a scalar trace object (rather than a list or tuple of trace objects) as the
dataproperty to theFigureconstructor (#1614) - Added dictionary-stule
.popmethod to graph object classes (#1614) - New
jupyterlab-plotlyJupyterLab extension for rendering figures in JupyterLab. Replaces the@jupyterlab/plotly-extensionextension, and includes JupyterLab 1.0 support. - Added new suite of built-in colorscales to the
plotly.colorsmodule, and support for specifying this wide range of colorscales by name. Also added support for specifying colorscales as a list of colors, in which case the color spacing is assumed to be uniform (#1647). - Added
sphinx-galleryrenderer for embedding plotly figures in Sphinx-Gallery (#1577, plotly/plotly-sphinx-gallery).
Removed
- The follow modules for interfacing with the Chart Studio cloud service have been removed from plotly.py and moved to the new
chart-studiodistribution package. The following modules have been moved to a new top-levelchart_studiomodule:plotly.plotly->chart_studio.plotlyplotly.api->chart_studio.apiplotly.dashboard_objs->chart_studio.dashboard_objsplotly.grid_objs->chart_studio.grid_objsplotly.presentation_objs->chart_studio.presentation_objs
- The legacy
plotly.widgets.GraphWidgetclass for displaying online figures hosted by Chart Studio as ipywidgets has been removed. Please use the offline, and much more capable,plotly.graph_objects.FigureWidgetclass instead. - The
fileoptargument tochart_studio.plotly.plothas been removed, so in-place modifications to previously published figures are no longer supported, and a figure will always overwrite a figure with the same name.
Changed
- The
'plotly'template is used as the default theme across all figures. - In order to reduce the size of the core
plotlydistribution package, the bundled geographic shape files used by thecreate_choroplethfigure factory have been moved to a new optionalplotly-geodistribution package (1604) - For consistency with other figure factories, the
create_choroplethandcreate_ganttfigure factories now always returnsFigureobjects, rather than dictionaries (#1600, #1607). - Figure add trace methods (
.add_trace,.add_traces,.add_scatter, etc.) now return a reference to the calling figure, rather than the newly created trace (#1624) plotly.tools.make_subplotshas been moved toplotly.subplots.make_subplots, though it is still available at the previous location for backward compatibility- The
plotly.graph_objsmodule has been moved toplotly.graph_objects, though it is still available at the previous location for backward compatibility (#1614) - Trace
uidproperties are only generated automatically when a trace is added to aFigureWidget. When a trace is added to a standardFiguregraph object the inputuid, if provided, is accepted as is (#1580). datetimeobjects that include timezones are not longer converted to UTC (#1581)- When a tuple property (e.g.
layout.annotations) is updated with a list/tuple that is longer than the current value, the extra elements are appended to the end of the tuple.
Fixed
- Fixed visibility of
bartrace error bars in built-in templates (1656)
- Python
Published by jonmmease almost 7 years ago
chart-studio - v3.10.0
[3.10.0] - 2019-05-31
Updated
- Updated Plotly.js to version 1.48.1. See the plotly.js CHANGELOG for more information.
Added
- Added funnel trace (plotly/plotly.js#3817, plotly/plotly.js#3911)
- Added funnelarea traces (#3876, #3912)
- Added support for shared color axes via coloraxis attributes in the layout (#3803, #3786, #3901, #3916)
- Added support for sorting categorical cartesian axes by value (#3864)
- Added
bingrouptohistogram,histogram2dandhistogram2dcontourto group traces to have compatible auto-bin values (#3845) - Add legend
itemclickanditemdoubleclickattributes to set or disable the legend item click and double-click behavior (#3862) - Added support for calling orca through Xvfb to support static image export on Linux when X11 is not available (#1523).
Fixed
- Fixed
PlotlyJSONEncoderencoding error whensimplejsonis installed (#1556, #1561) - HTML export now honors the figure height specified in the figure template (#1560)
- Fixed display height of figure displayed in JupyterLab (#1572, #1571)
- Fixed honouring of the
validate=Falseoption for all renderer types (#1576)
- Python
Published by jonmmease about 7 years ago
chart-studio - v3.9.0
[3.9.0] - 2019-04-19
Updated
- Updated Plotly.js to version 1.47.4. See the plotly.js CHANGELOG for more information.
Added
- Added "magic underscore" support for specifying nested figure properties (#1534)
- Added
select_traces,for_each_trace, andupdate_tracesfigure methods for accessing and updating traces by subplot location and trace properties (#1534) - Added
select_*,for_each_*, andupdate_*figure methods for accessing and updating subplot objects (xaxis,scene,polar, etc) (#1548) - Added support for Dash Design Kit style color specifications (#1541). Thanks to @wbrgss for this contribution!
- Added support for the
plotly_unselectplotly.js event in a newon_unselecttrace method (#1542). Thanks to @denphi for this contribution!
Changed
- Changed the default colorscale to be
plasmafor theplotly,plotly_white, andplotly_darktemplates for plotly.py version 4 (#1274, #1549) - Reordered the default colorway for the
plotly,plotly_white, andplotly_darktemplates for plotly.py version 4 (#1549)
Fixed
- Fixed package listing in setup.py (#1543). Thanks to @jakevdp for this contribution!
- Fixed built-in templates so that
heatmapcolorscales can be overridden without specifyingautocolorscale=False(#1454, #1549) - Fix
UnboundLocalErrorerror in the presence of a missing or corrupt~/.plotly/.configfile (#1551) - Fixed error when combining
sankeytraces with cartesian subplots (#1527, plotly/plotly.js#3802)
- Python
Published by jonmmease about 7 years ago
chart-studio - v3.8.1
[3.8.1] - 2019-04-19
Updated
- Updated Plotly.js to version 1.47.3. See the plotly.js CHANGELOG for more information.
Fixed
- Fix MathJax rendering in Firefox (plotly/plotly.js#3783)
- Fix vertical responsive resizing in exported HTML files (#1524, 1525)
Changed
- Reverted change to
layout.legend.itemsizing = 'constant'in built-in templates that was made in 3.8.0. This resulted in unexpectedly large legend entries in some common cases (#1526)
- Python
Published by jonmmease about 7 years ago
chart-studio - v3.8.0
[3.8.0] - 2019-04-15
Updated
- Updated Plotly.js to version 1.47.1. See the plotly.js CHANGELOG for more information.
Added
- Three new trace types:
sunburst(plotly/plotly.js#3594),waterfall(plotly/plotly.js#3531), andvolume(plotly/plotly.js#3488). - New
plotly.io.to_htmlandplotly.io.write_htmlfunctions to export figures as html (#1474). - Added
animation_optsargument toplotly.offline.plotandplotly.offline.iplotto control the auto-play animation settings (#1503). Special thanks to @TakodaS for this contribution!
Fixed
- Fix race condition when checking the permissions of the
.plotlysettings directory (#1498). Special thanks to @pb-cdunn for this contribution! - Fix
OSErrorwhen processing time series data using Python 3.7+ (#1402, #1501)
Updated
- Align hoverlabels left and set legend items to constant-size in builtin themes (#1520)
- Python
Published by jonmmease about 7 years ago
chart-studio - v3.7.0
[3.7.0] - 2019-03-08
Updated
- Updated Plotly.js to version 1.45.2. See the plotly.js CHANGELOG for more information.
Added
- Added new
auto_playargument to offlineplotandiplotto control whether figures with frames are automatically animated when the figure is loaded (#1447) - Added support for uploading "offline" animations (those with inline data
arrays rather than grid references) to Chart Studio using
plotly.plotly.create_animations(#1432)
Updated
- Updated implementation of the
ternary_contourfigure factory that was added in 3.6.0. The new implementation uses the native plotly.js ternary axes and provides ILR transform support. (#1418)
Fixed
- Make sure the trace
selectedpointsproperty ofFigureWidgettraces is updated on the Python side in response to plotly.js selection events (#1433) - Fix validation for 0-dimensional numpy arrays (#1444). Special thanks to @ankokumoyashi for this contribution!
- Python
Published by jonmmease over 7 years ago
chart-studio - v3.6.1
[3.6.1] - 2019-02-08
Updated
- Updated Plotly.js to version 1.44.3. See the plotly.js CHANGELOG for more information.
Fixed
- Crash on import when ipywidgets < 7 installed (#1425)
- Made
scipyan optional import for the ternary contour figure factory (#1423) - Eliminated use of deprecated
numpy.asscalarfunction (#1428)
- Python
Published by jonmmease over 7 years ago
chart-studio - v3.6.0
[3.6.0] - 2019-02-01
Updated
- Updated Plotly.js to version 1.44.1. Select highlights included below. See the plotly.js CHANGELOG for more information.
Added
- Add isosurface gl3d trace type (plotly/plotly.js#3438)
- Preview of ternary contour figure factory (#1413). Special thanks to @emmanuelle for this contribution!
- Add support for
line.colorcolorbars for scatter3d traces (#1085, plotly/plotly.js#3384) - Add support for
hovertemplateonscatterpolar,scatterpolargl,scatterternary,barpolar,choropleth,scattergeo, andscattermapboxtrace (plotly/plotly.js#3398, plotly/plotly.js#3436) - Add width attribute to box and violin traces (plotly/plotly.js#3234)
- Add support for
<sup>,<sup>,<b>,<i>and<em>pseudo-html tags in extra (aka trace "name") hover labels (plotly/plotly.js#3443) - Add 4 additional colors to the colorway cycle of the plotly themes (#1408)
- Automatically coerce array-like objects (e.g. xarray
DataArrays) to numpy arrays (#1393). Special thanks to @malmaud for this contribution!
Fixed
- Fix annotated heatmap text color when values are specified as a nested list (#1300)
- Fix
updatemethod with legacytitle*properties (#1403) - Fix deprecation warnings on Python 3.7 and ipywidgets > 7.0 (#1417). Special thanks to @Juanlu001 for this contribution!
- Python
Published by jonmmease over 7 years ago
chart-studio - v3.5.0
[3.5.0] - 2019-01-04
Updated
- Updated Plotly.js to version 1.43.1. See the plotly.js CHANGELOG for more information.
Changed
- Plotly.js 1.43 converted
titleproperties (e.g.layout.title) from strings into compound objects that contain the text as thetextproperty along with new title placement attributesx,y,xref,yref,xanchor,yanchorandpad. Plotly.py 3.5.0 follows the new schema, but still supports specifyingtitleas a string, in which case the string is assigned to thetitle.textproperty (#1302) - Plotly.js 1.43 also moved existing
title*properties (e.g.layout.titlefont) under thetitleobject (e.g.layout.title.font). Plotly.py 3.5.0 follows the new schema, but still supports the legacytitle*properties by mapping them to the correspondingtitle.*property (#1302) - The
updatemethod ongraph_objsnow returns the updated object in order to support chaining multiple update operations together (#1379) - The
show_linkoption has been set toFalseby default in the offlineplotandiplotfunctions. Now that the "send data to cloud" button has been disabled by default in plotly.js 1.43.0, no buttons/links will be displayed by default that result in data being sent off of the local machine (#1304) configoptions that are not known by plotly.py result in a warning but are still passed along to plotly.js. Prior to this change these unknown options were dropped silently (#1290)- Built-in themes now specify colorscales using the new global
layout.colorscaleproperties. Previously the colorscales were defined for each trace type individually. This reduces the size of the resulting theme files (#1303) - Increased the maximum retry time of the orca integration from 8s to 30s (#1297)
Fixed
- Fixed
FigureWidgetperformance regression that, when working with large datasets, resulted in a slight freeze of the widget after user interactions (pan, zoom, etc) (1305) - Fix orca error when the
ELECTRON_RUN_AS_NODEenvironment variable is set (#1293) - The
'responsive'config key was being silently blocked (#1290) - Fixed error when using unicode characters in string properties on Python 2 (#1289)
- Removed invalid calls to non-existent
validateandstrip_styleFiguremethods in matplotlylib conversion logic (#1128)
- Python
Published by jonmmease over 7 years ago
chart-studio - v3.4.2
[3.4.2] - 2018-11-23
Fixed
configoptions are now supported when usingplotly.offline.iplotto display a figure in JupyterLab. Requires version 0.18.1 of the@jupyterlab/plotly-extensionextension. (#1281, jupyterlab/jupyter-renderers#168)- Custom
plotly_domainvalues are now supported in FigureWidget in both the classic notebook and JupyterLab (#1284)
- Python
Published by jonmmease over 7 years ago
chart-studio - v3.4.1
[3.4.1] - 2018-11-09
Updated
- Updated Plotly.js to version 1.42.5. See the plotly.js CHANGELOG for more information.
Fixed
- Fixed histogram binning with pandas
Seriesor numpy array (regression introduced in 3.4.0) (#1257, plotly/plotly.js#3211) - Fixed incorrect validation error on the
argsproperty oflayout.updatemenu.Button()when value is alistthat starts with alist(#1265) - Fixed deadlock causing
plotly.io.write_imageto hang on Windows after exporting more than ~25 images (#1255) - Fixed plot display error for
scattergltrace withmode='lines'and more than 100k points (#1271) - Fixed responsive resizing error with
iplotin the classic notebook (#1263)
- Python
Published by jonmmease over 7 years ago
chart-studio - 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 using
plotly.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 thecreate_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
- Python
Published by jonmmease over 7 years ago
chart-studio - v3.3.0
[3.3.0] - 2018-09-28
Updated
- Updated Plotly.js to version 1.41.3. Select highlights included below, see the plotly.js CHANGELOG for more information.
- Do not create or check permissions on the
~/.plotlyconfiguration directory until a configuration write operation is performed (#1195). This change avoids some concurrency problems associated with running many instances of plotly.py simultaneously (#1068).
Added
- Enable selection by clicking on points via new layout attribute
clickmodeand flag'select'(#2944) - Added stacked area charts via new attributes
stackgroupandstackgapsin scatter traces (#2960) - Added
barpolartrace type - which replace and augment area traces (#2954) - Added
polar.holelayout parameter to punch hole at the middle of polar subplot offsetting the start of the radial range (#2977, #2996) - Figures may now be easily converted to and from JSON using the new
to_json,from_json,read_json, andwrite_jsonfunctions in theplotly.iopackage (#1188) - Figures and graph objects now support
deepcopyandpickleoperations (#1191) - The location of the
"~/.plotly"settings directory may now be customized using thePLOTLY_DIRenvironment variable (#1195) - Added optional
scaleratioargument to thecreate_quiverfigure factory. When specified, the axes are restricted to this ratio and the quiver arrows are computed to have consistent lengths across angles. (#1197)
Fixed
- Replace use of
pkg_resources.resource_stringwithpkgutil.get_datato improve compatibility withcx_Freeze(#1201) - An exception is no longer raised when an optional dependency raises an exception on import. The exception is logged and plotly.py continues as if the dependency were not installed (#1192)
- Fixed invalid dendrogram axis labels when the points being clustered contain duplicate values (#1186)
- Added missing LICENSE.txt file to PyPI source distribution (#765)
JupyterLab Versions
For use with JupyterLab, the following versions of the following packages must be installed:
Python Packages
- plotly==3.3.0
- ipywidgets>=7.2
- notebook>=5.3
- jupyterlab==0.34
JupyterLab Extensions
- plotlywidget@0.4.0
- @jupyter-widgets/jupyterlab-manager@0.37
- @jupyterlab/plotly-extension@0.17
- Python
Published by jonmmease over 7 years ago
chart-studio - v3.2.1
[3.2.1] - 2018-09-14
This is a patch release that fixes a few bugs and reintroduces a few version 2 features that were not supported in version 3.
The bundled version of plotly.js remains at 1.40.1
JupyterLab Versions
For use with JupyterLab, the following versions of the following packages must be installed:
Python Packages
- plotly==3.2.1
- ipywidgets>=7.2
- notebook>=5.3
- jupyterlab==0.34
JupyterLab Extensions
- plotlywidget@0.3.0
- @jupyter-widgets/jupyterlab-manager@0.37
- @jupyterlab/plotly-extension@0.17
Added
- An optional
skip_invalidargument has been added to theFigureandFigureWidgetconstructors. By default,skip_invalidisFalseand invalid figure properties will result in an exception (this is identical to the previous behavior). Whenskip_invalidis set toTrue, invalid properties will instead be silently ignored. This argument replaces the_raiseargument that was available in version 2, and makes it possible to import figure definitions from different plotly versions, where incompatible properties are ignored rather than causing an exception. - A
to_ordered_dictmethod has been added to theFigureandFigureWidgetclasses. This method returns a representation of the figure as a nested structure ofOrdererdDictandlistinstances where the keys in eachOrderedDictare sorted alphabetically. This method replaces theget_orderedmethod that was available in version 2, and makes it possible to traverse the nested structure of a figure in a deterministic order.
Fixed
- Pandas
SeriesandIndexobjects storingdatetimevalues were incorrectly cast to numeric arrays (plotly/plotly.py#1160, plotly/plotly.py#1163) - Numpy arrays with
uint64datatype caused aFigureWidgeterror, and no figure was displayed (plotly/plotly.py#1155, plotly/plotly.py#1163)
- Python
Published by jonmmease almost 8 years ago
chart-studio - v3.2.0
[3.2.0] - 2018-09-05
This release introduces the long-anticipated ability to programmatically export figures as high quality static images in both raster and vector formats.
JupyterLab Versions
For use with JupyterLab, the following versions of the following packages must be installed:
Python Packages
- plotly==3.2.0
- ipywidgets>=7.2
- notebook>=5.3
- jupyterlab==0.34
JupyterLab Extensions
- plotlywidget@0.3.0
- @jupyter-widgets/jupyterlab-manager@0.37
- @jupyterlab/plotly-extension@0.17
Added
- plotly.js version 1.40.1, which introduces the following features:
- Allow
contour,contourcarpetandhistogram2dcontourto have corresponding legend items usingshowlegend(plotly/plotly.js#2891, plotly/plotly.js#2914) - Add scatterpolar and scatterpolargl attributes
r0,dr,theta0anddtheta(plotly/plotly.js#2895) - Add layout attributes
piecolorwayandextendpiecolorsfor more control over pie colors (plotly/plotly.js#2870) - Add
splomattributedimensions[i].axis.typeto easily override axis type in splom-generated axes (plotly/plotly.js#2899) - Add support for on-graph text in
scatterpolargltraces (plotly/plotly.js#2895) - See the plotly.js CHANGELOG for bug fixes and more information.
- Allow
- Support for offline static image export with the
to_imageandwrite_imagefunctions in the newplotly.iopackage (#1120). - New documentation sections covering Static Image Export and Orca Management
- Support for displaying
FigureWidgetinstances in static contexts (e.g. nbviewer) just like the built-in ipywidgets (#1117) - Full integration of the Cividis colorscale (#883)
- conda packaging
- From here forward, new versions of plotly.py will be published to the plotly anaconda channel on the same day they are published to PyPI. (72ad0e4)
- The
READMEnow includes conda installation instructions alongside the pip instructions. - In addition to the existing installation approaches, orca is now also available as a conda package from the plotly anaconda channel.
Updated
- Show traces at the top of the Gantt chart's colorbar (#1110)
- Significantly improved validation performance for numeric pandas
Seriesobjects (#1149) - Specialize auto-generated docstrings for Python syntax
- More robust and specific logic for retrying requests to the plot.ly cloud service (#1146)
- Support basic authentication when using the streaming API behind a proxy server (#1133)
Fixed
- Validators for
dashproperties (e.g.scatter.line.dash) incorrectly rejected dash length lists (#1136) - Annotated heatmap error when custom colorscale was specified (#1151)
- Incorrect deprecation warning for deprecated
plotly.graph_objs.Annotationsclass (#1138) - Harmless JavaScript console error when opening an html file produced by
plotly.offline.plot(#1152) - Incorrect validation errors when writing data to the streaming API (#1145)
- Python
Published by jonmmease almost 8 years ago
chart-studio - v3.1.1
[3.1.1] - 2018-08-10
This release is a minor bug-fix update to version 3.1.0
JupyterLab Versions
For use with JupyterLab, the following versions of the following packages must be installed:
Python Packages
- plotly==3.1.1
- ipywidgets>=7.2
- notebook>=5.3
- jupyterlab==0.33
JupyterLab Extensions
- plotlywidget@0.2.1
- @jupyter-widgets/jupyterlab-manager@0.36
- @jupyterlab/plotly-extension@0.16
Updated
- Updated plotly.js to version 1.39.4.
- This is a bug-fix release of plotly.js
- See the plotly.js CHANGELOG for more information
Fixed
- Fixed error in validation of configkeys plotly/plotly.js#1065
- Fixed error in presentation of named colorscales plotly/plotly.js#1089
- Fixed numerical precision error when using
plotly.tools.make_subplotsto create figures with a large number of subplots plotly/plotly.js#1091 - Fixed problem that prevented the use of the
.updatemethod to initialize an array property (e.g.layout.shapes) plotly/plotly.js#1091 - Fixed
FigureWidgetproblem causing scroll zoom on 3D plots to stutter plotly/plotly.js#1094 - Fixed invalid
tickmodeproperty inmatplotlylibplotly/plotly.js#1101
- Python
Published by jonmmease almost 8 years ago
chart-studio - v3.1.0
[3.1.0] - 2018-07-20
JupyterLab Versions
For use with JupyterLab, the following versions of the following packages must be installed. See README.md for instructions.
Python Packages
- plotly==3.1.0
- ipywidgets>=7.2
- notebook>=5.3
- jupyterlab==0.32.1
JupyterLab Extensions
- plotlywidget@0.2.0
- @jupyter-widgets/jupyterlab-manager@0.35
- @jupyterlab/plotly-extension@0.16
Updated
- Updated Plotly.js to version 1.39.2
- See highlights below
- See the plotly.js CHANGELOG for more information.
Added
- Added 3D streamtube traces plotly/plotly.js#2658
- Added support for on-graph text in scattergl traces
- Added gridshape attribute to polar subplots with values 'circular' (the default) and 'linear' (to draw polygon grids) plotly/plotly.js#2739
- Python
Published by jonmmease almost 8 years ago
chart-studio - v3.0.0
[3.0.0] - 2018-07-05
This is a major version with many exciting updates. See the Introducing plotly.py 3.0.0 post for more information.
JupyterLab plotlywidget version: 0.1.1
Plotly.js version: 1.38.3
Added
- Full Jupyter ipywidgets integration with the new
graph_objs.FigureWidgetclass FigureWidgetfigures can be updated interactively using property assignment syntax- The full trace and layout API is generated from the plotly schema to provide a great experience for interactive use in the notebook
- Support for setting array properties as numpy arrays. When numpy arrays are used, ipywidgets binary serialization protocol is used to avoid converting these to JSON strings.
- Context manager API for animation. Run
help(go.Figure().batch_animate)for the full doc string. - Perform automatic retries when communicating with plot.ly services. This introduces a new required dependency on the retrying library.
- Improved data validation covering the full API with clear, informative error messages. This means that incorrect properties and/or values now always raise a
ValueErrorwith a description of the error, the invalid property, and the available properties on the level that it was placed in the graph object. Eg.go.Scatter(foo=123)raises a validation error. See https://plot.ly/python/reference/ for a reference to all valid properties and values in the Python API. - Error message for
plotly.figure_factory.create_choroplethis now helpful to Anaconda users who do not have the correct modules installed for the County Choropleth figure factory.
Changed / Deprecated
Please see the migration guid for a full list of the changes and deprecations in version 3.0.0
- Python
Published by jonmmease almost 8 years ago
chart-studio - v3.0.2
[3.0.2] - 2018-07-17
This is a minor bug-fix release to 3.0.0
JupyterLab plotlywidget version: 0.1.1
Plotly.js version: 1.38.3
Fixed
- Several errors related to numbered subplot labels (e.g. xaxis2, polar3, etc.) GH1057
- Error where the
vproperty was ignored inconetraces GH1060 - Assorted performance improvements when constructing graph objects GH1061
- Python
Published by jonmmease almost 8 years ago
chart-studio - v2.0.0
Same as the pre-release, but this one corresponds to the 2.0.0 on PyPI and is the first official 2.x release. Please note the deprecation section from the changelog (copied below for convenience).
[2.0.0] - 2017-01-25
Changed
plotly.exceptions.PlotlyRequestExceptionis always raised for network failures. Previously either aPlotlyError,PlotlyRequestException, or arequests.exceptions.ReqestExceptioncould be raised. In particular, scripts which depend ontry-exceptblocks containing network requests should be revisited.plotly.py:sign_innow validates to the plotly server specified in your config. If it cannot make a successful request, it raises aPlotlyError.plotly.figure_factorywill raise anImportErrorifnumpyis not installed.plotly.figure_factory.create_violin()now has arugplotparameter which determines whether or not a rugplot is draw beside each violin plot.
Deprecated
plotly.tools.FigureFactory. Useplotly.figure_factory.*.- (optional imports)
plotly.tools._*_importedIt was private anyhow, but now it's gone. (e.g.,_numpy_imported) - (plotly v2 helper)
plotly.py._api_v2It was private anyhow, but now it's gone.
- Python
Published by theengineear over 9 years ago
chart-studio - v2.0.0-pre
[2.0.0]
Most notably, this changes how exceptions are handled and raised for all network requests. See CHANGELOG.md for more details (copied below for convenience).
Changed
plotly.exceptions.PlotlyRequestExceptionis always raised for network failures. Previously either aPlotlyError,PlotlyRequestException, or arequests.exceptions.ReqestExceptioncould be raised. In particular, scripts which depend ontry-exceptblocks containing network requests should be revisited.plotly.py:sign_innow validates to the plotly server specified in your config. If it cannot make a successful request, it raises aPlotlyError.plotly.figure_factorywill raise anImportErrorifnumpyis not installed.
Deprecated
plotly.tools.FigureFactory. Useplotly.figure_factory.*.- (optional imports)
plotly.tools._*_importedIt was private anyhow, but now it's gone. (e.g.,_numpy_imported) - (plotly v2 helper)
plotly.py._api_v2It was private anyhow, but now it's gone.
- Python
Published by theengineear over 9 years ago
chart-studio - v1.13.0
[1.13.0] - 2016-01-17
Added
- Python 3.5 has been added as a tested environment for this package.
Updated
plotly.plotly.create_animationsandplotly.plotly.icreate_animationsnow return appropriate error messages if the response is not successful.framesare now integrated into GRAPH_REFERENCE and figure validation.
Changed
- The plot-schema from
https://api.plot.ly/plot-schemais no longer updated on import.
- Python
Published by theengineear over 9 years ago
chart-studio - 1.6.12 - stable strict json encoder, ci fixes
- Previous version (1.6.11) of custom json encoder only supported python 2.7.
- Previous PATH env variable in circle needed adjusting to properly run python versions
- Python
Published by theengineear over 11 years ago
chart-studio - 1.6.8 - Remove fullData from IPython widget callbacks
https://github.com/plotly/python-api/pull/196
- Python
Published by chriddyp over 11 years ago
chart-studio - 1.6.7
Adding plotly.widget.GraphWidget.plot method for folks to use their existing graph objects with the graph widget.
- Python
Published by chriddyp over 11 years ago