@nicolaskruchten wrote:
(cross-post from the Plotly.py channel)
Hi everyone! This week we released Plotly.py 4.4.1 to PyPI and Conda. This was a Python-only release which doesn’t include a new big version of Plotly.js, and we hope you enjoy the new features and bug-fixes! The changelog remains the complete reference for this release, but read on for the highlights!
Get it now with
pip install plotly==4.4.1
orconda install -c plotly plotly=4.4.1
7 New Plotly Express Functions
As part of our long-term project to make Plotly Express a more complete high-level interface for making figures of all kinds, we’re continuing to add top-level
px
functions:
px.pie
by popular demandpx.sunburst
andpx.treemap
for hierarchical part-of-whole visualizationspx.funnel
andpx.funnel_area
for two ways of visualizing process stagespx.choropleth_mapbox
andpx.density_mapbox
to match this summer’s new mapping tracesSome New Plotly Express Arguments
All of the
px.*_polar
functions now accept arange_theta
argument, for when you want to plot less than a full circle. Also, all of thepx.*_mapbox
functions now acceptcenter
just like thepx.*_geo
functions, and in addition, they acceptmapbox_style
so you can more-easily make tile maps without needing a Mapbox.com token.Reversible Colorscales
You can now add
_r
to the name of any of our built-in continuous colorscales to get a reversed version of the colorscale e.g.Viridis
/Viridis_r
orReds
/Reds_r
etc.Documentation Improvements
Our docstrings are now doc-tested, so you can be sure that code snippets within docstrings will run correctly. In addition, we’ve moved all of the https://plot.ly/python documentation source files into the main Plotly.py repo so as to be able to keep code and docs in closer sync. This should allow us to avoid some regressions and ensure faster turnaround on documentation for new features.
Plotly Express Default Height Change
We discovered that Dash users were encountering problems using Plotly Express in their apps because
px.defaults.height
was set to600
, so we decided to change this toNone
by default. This means thatpx
-generated figures will generally auto-size themselves to be 450 pixels tall in Notebooks and other contexts by default. You can get the old behaviour back by settingpx.defaults.height=600
once per session, or passingheight=600
as an argument to anypx
function.Thanks
Thanks to community contributors dev-dsp and joelostblom!
Posts: 2
Participants: 2