pypi plotly 7.2.0rc0
v7.2.0rc0

one hour ago

Added

  • Add support for converting matplotlib reference lines (axhline, axvline, and horizontal/vertical axline) as well as axes-coordinate lines into Plotly layout shapes in mpl_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 example DisplayHandle.update), which also kept animations in other kernels on their first frame [#5865], with thanks to @AllenDowney for the contribution!
  • Fix mpl_to_plotly tick marker mirroring, axis positioning, and trace visibility for twinned and overlaid subplots (such as twinx and twiny) [#5310], with thanks to @robertoffmoura for the contribution!
  • Fix mpl_to_plotly losing matplotlib axis line colors by exporting the color of each axis's displayed spine to the plotly x and y axis linecolor [#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_plotly crashing on touching bars (such as plt.hist) due to floating-point noise producing negative bargap values by clamping bargap to [0, 1] [#5696], with thanks to @robertoffmoura for the contribution!
  • Fix mpl_to_plotly drawing 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_plotly dropping matplotlib stairs plots by rendering StepPatch artists 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_plotly showing unwanted legends with placeholder or internal label entries (_nolegend_, _childN) by defaulting layout.showlegend=False unless the matplotlib figure explicitly defines a legend [#5699], with thanks to @robertoffmoura for the contribution!
  • Fix mpl_to_plotly crashing on figures with fully transparent or alpha-carrying colors, such as boxplot outlier markers (facecolor="none"), rgba line colors, and color="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_dash mapping 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 x or y arguments in wide mode [#5727], with thanks to @cpruijsen for the contribution!
  • Fix px.sunburst, px.treemap and px.icicle listing sectors in a different order on every run when path is 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 the marginal_x/marginal_y subplots 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_hrect and add_vrect dropping the shape on an empty subplot when row and col select a single subplot [#5871], with thanks to @LukeTheoJohnson for the contribution!
  • Fix mpl_to_plotly conversion of matplotlib contour lines and line collections: close contour rings ending with Z codes, support dash styles, convert date x-axes, separate disjoint subpaths with None separators, 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_images ignoring layout.width/layout.height (and the template's) and exporting every figure at the default 700x500 size; it now uses the same width/height priority as write_image and to_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) ignoring facet_row_spacing=0 and facet_col_spacing=0 and using the default spacing between facets instead [#5881], with thanks to @rishi02102017 for the contribution!

Don't miss a new plotly release

NewReleases is sending notifications on new releases.