Releases: plotly/plotly.py
Releases · plotly/plotly.py
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
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
v4.4.1
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_mapboxand
px.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!
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)
v4.2.1
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
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-bg
that do not require a Mapbox access token (plotly/plotly.js#3987, plotly/plotly.js#4068) - Added support for
sourcetypevaluerasterandimageandtyperaster
for 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)
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)
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)