Repository navigation
v7.2.0rc0
Pre-release
Pre-release
Added
- Add support for converting matplotlib reference lines (
axhline,axvline, and horizontal/verticalaxline) as well as axes-coordinate lines into Plotly layout shapes inmpl_to_plotly, including support for date axes [#5719], with thanks to @robertoffmoura for the contribution!
Changed
- Remove Python 3.8 and Python 3.9 support. plotly.py now requires Python 3.10 or later. [#5883]
Fixed
- Fix figures in JupyterLab not redrawing when their output is updated with
update_display_data(for exampleDisplayHandle.update), which also kept animations in other kernels on their first frame [#5865], with thanks to @AllenDowney for the contribution! - Fix
mpl_to_plotlytick marker mirroring, axis positioning, and trace visibility for twinned and overlaid subplots (such astwinxandtwiny) [#5310], with thanks to @robertoffmoura for the contribution! - Fix
mpl_to_plotlylosing matplotlib axis line colors by exporting the color of each axis's displayed spine to the plotly x and y axislinecolor[#5311], with thanks to @robertoffmoura for the contribution! - Fix concurrent first access to lazily initialized graph object properties, which could raise
ValueError("Invalid value")[#5691], with thanks to @hb1915 for the contribution! - Fix
mpl_to_plotlycrashing on touching bars (such asplt.hist) due to floating-point noise producing negativebargapvalues by clampingbargapto[0, 1][#5696], with thanks to @robertoffmoura for the contribution! - Fix
mpl_to_plotlydrawing step plots with diagonal lines instead of vertical/horizontal step segments by mapping matplotlib step drawstyles (steps-pre,steps-post,steps-mid) to plotly line shapes [#5697], with thanks to @robertoffmoura for the contribution! - Fix
mpl_to_plotlydropping matplotlib stairs plots by renderingStepPatchartists as step lines or filled step areas from their path vertices and edge style [#5698], with thanks to @robertoffmoura for the contribution! - Fix
mpl_to_plotlyshowing unwanted legends with placeholder or internal label entries (_nolegend_,_childN) by defaultinglayout.showlegend=Falseunless the matplotlib figure explicitly defines a legend [#5699], with thanks to @robertoffmoura for the contribution! - Fix
mpl_to_plotlycrashing on figures with fully transparent or alpha-carrying colors, such as boxplot outlier markers (facecolor="none"), rgba line colors, andcolor="none"text and axis labels; all matplotlib colors are now exported through a single helper that maps"none"to transparent rgba and keeps or overrides alpha as matplotlib does [#5700], with thanks to @robertoffmoura for the contribution! - Fix serialization of box/lasso select data for figures with multiple subplots [#5710], with thanks to @flpi-sun for the contribution!
- Export tick label colors to the plotly tickfont in
mpl_to_plotly[#5716], with thanks to @robertoffmoura for the contribution! - Fix
convert_dashmapping dotted lines (linestyle=':') to invalid'circle'in Plotly, correctly converting them to'dot'and preserving custom dash patterns as pixel lists [#5719], with thanks to @robertoffmoura for the contribution! - Fix Plotly Express mutating lists passed to the
xoryarguments in wide mode [#5727], with thanks to @cpruijsen for the contribution! - Fix
px.sunburst,px.treemapandpx.iciclelisting sectors in a different order on every run whenpathis used with a Polars DataFrame; sectors now follow their order of first appearance for all dataframe backends [#5766], with thanks to @Irahan2 for the contribution! - Fix
trendline_scope="overall"drawing the overall trendline on themarginal_x/marginal_ysubplots as well as the main plot; it is now drawn only on the main subplots [#5780], with thanks to @jayzhou2309 for the contribution! - Fix
add_hline,add_vline,add_hrectandadd_vrectdropping the shape on an empty subplot whenrowandcolselect a single subplot [#5871], with thanks to @LukeTheoJohnson for the contribution! - Fix
mpl_to_plotlyconversion of matplotlib contour lines and line collections: close contour rings ending withZcodes, support dash styles, convert date x-axes, separate disjoint subpaths withNoneseparators, hide line collection traces from the legend by default, and group consecutive same-style lines into single traces [#5770], with thanks to @robertoffmoura for the contribution! - Fix
plotly.io.write_imagesignoringlayout.width/layout.height(and the template's) and exporting every figure at the default 700x500 size; it now uses the same width/height priority aswrite_imageandto_image[#5784], with thanks to @breken-ai for the contribution! - Fix color utilities mutating the list of colors passed to them [#5836], with thanks to @Enesuygurs for the contribution!
- Fix Plotly Express (including
px.imshow) ignoringfacet_row_spacing=0andfacet_col_spacing=0and using the default spacing between facets instead [#5881], with thanks to @rishi02102017 for the contribution!