Releases: plotly/plotly.py
Releases · plotly/plotly.py
v4.5.3
Updated
- Removed development dependency on
nose
testing framework #2217
Fixed
- JupyterLab extension now compatible with JupyterLab 2.0 #2245 with thanks to @consideRatio for the contribution!
v4.5.2
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_shapes
andupdate_layout_images
now no longer require thepatch
argument, as per the docstring #2167px.defaults
no longer accepts arbitrary keys #2168- better error message when
pandas
is not installed #2125 - support columns of numerical type in
path
argument ofpx.sunburst
/px.treemap
and add values ofcolor
column 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.title
attribute and so now has shorter tracename
s #2051 - The heuristic used by
px.parallel_categories
to determine which columns of the data frame to draw has been changed and made more configurable with thedimensions_max_cardinality
argument #2102 - The
simple_white
colorbar styling has been streamlined #2110 - The
jupyterlab-plotly
andplotlywidget
JupyterLab extensions should now share code when installed together, resulting in smaller JupyterLab vendor bundle sizes #2103
Fixed
- Plotly Express
category_orders
are now respected independent of the contents of the data set #2084 go.Scattergl
symbols now accept numeric specification #1928px.scatter
trendline coefficients are now more readable #1984- Built-in cyclical color scales now all have identical start and end points #2016
Added
px.sunburst
andpx.treemap
now accept apath
argument for passing
columns of a rectangular dataframe to build the charts #2006px.choropleth
now accepts a user-suppliedgeojson
attribute #2057px.choropleth
andpx.choropleth_mapbox
now acceptfeatureidkey
to specify the GeoJSON field to use to matchlocations
#2057px.choropleth
andpx.choropleth_mapbox
now accept discrete color #2057px.bar_polar
now accepts continuous color #2017- New
layout.uniformtext
attribute 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_mapbox
and
px.choropleth_mapbox
#1937. - plotly.express mapbox functions in plotly.express have new arguments
center
andmapbox_style
#1937. - plotly.express polar plots (
scatter_polar
,line_polar
,bar_polar
) now
have arange_theta
keyword argument for representing only an angular
section #1969. - All continuous colorscales now accept a
_r
suffix 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.express
generated 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=600
once per session, or set theheight
keyword 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/zmax
parameter inpx.imshow
for 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_images
methods 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.imshow
convenience function to display images and heatmaps (#1855, #1885) - Added matplotlib-style
simple_white
template (#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_wrap
argument (#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
treemap
trace 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
overwrite
kwarg toupdate*
figure methods to fully replace property values, rather than update them recursively (#1726) - Added
texttemplate
attribute to all traces that support on-graph text (plotly.js#4071, plotly.js#4179) - Added date custom formatting in
hovertemplate
andtexttemplate
e.g.'%{x|%b %-d, %Y}'
(plotly.js#4071) - Added transition support to
bar
trace 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_gantt
figure 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
indicator
traces (plotly/plotly.js#3978) - Added
choroplethmapbox
traces (plotly/plotly.js#3988) - Added
densitymapbox
traces (plotly/plotly.js#3993) - Added new mapbox
style
values:open-street-map
,carto-positron
,carto-darkmatter
,
stamen-terrain
,stamen-toner
,stamen-watercolor
andwhite-bg
that do not require a Mapbox access token (plotly/plotly.js#3987, plotly/plotly.js#4068) - Added support for
sourcetype
valueraster
andimage
andtype
raster
for mapbox layout layers (plotly/plotly.js#4006) - Added
below
attribute toscattermapbox
traces (plotly/plotly.js#4058) - Added support for
below: 'traces'
in mapbox layout layers (plotly/plotly.js#4058) - Added
sourceattribution
attribute to mapbox layout layers (plotly/plotly.js#4069) - Added
labelangle
andlabelside
attributes toparcoords
traces (plotly/plotly.js#3966) - Added
doubleClickDelay
config option (plotly/plotly.js#3991) - Added
showEditInChartStudio
config 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_3d
plotly express function was not visible by default when importing*
fromplotly.express
(#1667)