Skip to content

Update dependency plotly to v6 #377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Update dependency plotly to v6 #377

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 1, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
plotly (changelog) <5.0 -> <6.2 age adoption passing confidence

Release Notes

plotly/plotly.py (plotly)

v6.1.0

Compare Source

Updated
  • Add support for Kaleido>=v1.0.0 for image generation [#​5062, #​5177]
  • Reduce package bundle size by 18-24% via changes to code generation [#​4978]
Fixed
  • Fix third-party widget display issues in v6 [#​5102]
  • Add handling for case where jupyterlab or notebook is not installed [#​5104]
  • Fix issue causing Plotly.js script to be embedded multiple times in Jupyter notebooks [#​5112]
  • Re-add MIME renderer JupyterLab extension with JupyterLab 4 support to reduce file sizes for offline notebooks [#​5096]
  • Fix issue preventing plots from rendering in HTML notebook export when using 'vscode+notebook' renderer [#​5154]

v6.0.1

Compare Source

Updated
  • Updated Plotly.js from version 3.0.0 to version 3.0.1. See the plotly.js CHANGELOG for more information.
Fixed
  • Fix TypeError when using orjson to serialize pandas.NA [#​5040].
  • Fix issue where using category_orders on px.pie raised ColumnNotFoundError [#​5000].
  • Fix incorrect DeprecationWarning shown when creating a px chart [#​5080, #​5086]

v6.0.0

Compare Source

Added
  • Add plotly[express] extra for easily installing Plotly Express dependencies [#​4644]
  • Add subtitle attribute to all Plotly Express traces [#​4830].
Removed
  • Drop deprecated pointcloud and heatmapgl traces from the API [#​4815]
  • Drop tenacity dependency [#​4831]
  • Drop support for Jupyter Notebook version 6 and earlier [#​4822]. The minimum supported version is now 7.0.0.
Updated
  • Update Plotly.js from version 2.34.2 to version 3.0.0 See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include:
    • Make offsetgroup work with barmode "stacked" and "relative" for bar traces [#​7009]
    • Drop support for deprecated attributes titlefont, titleposition, titleside, and titleoffset [#​7212].
    • Drop deprecated pointcloud and heatmapgl traces and gl2d subplots [#​7213]
    • Drop support for deprecated bardir attribute (use orientation instead) [#​7214]
    • Drop support for deprecated annotation.ref attribute (use annotation.xref and annotation.yref instead) [#​7215]
    • Drop support for deprecated error bar opacity attribute (use alpha channel of error bar color attribute instead) [#​7214]
    • Drop support for deprecated attribute gl3d.cameraposition (use gl3d.camera instead) [#​7217]
    • Drop deprecated plot3dPixelRatio from config [#​7231]
    • Drop deprecated zauto, zmin and zmax from the surface trace [#​7234]
    • Drop deprecated autotick attributes from cartesian axes [#​7236]
    • Drop transforms from the API [#​7240, #​7254]
  • Deprecate Mapbox-based traces.[#​4900]. See the MapLibre Migration page for details on migrating from Mapbox to Maplibre.
  • Update plotly.py to use base64 encoding of typed arrays e.g. numpy in plotly JSON to keep precision intact and improve performance [#​4470].
  • Make plotly-express dataframe agnostic via Narwhals [#​4790].
  • Update go.FigureWidget to use anywidget [#​4823]
  • Use modern native ES6 import to load plotly.js bundle instead of requirejs which is no longer under active development [#​4736]
Fixed
  • Fix a bug in JupyterLab >= 4 and Jupyter Notebook >= 7 that caused LaTeX to not render in plotly charts [#​4763].
  • Fix go.FigureWidget.show to return FigureWidget instead of displaying Figure [#​4869]

v5.24.1

Compare Source

Updated
  • Updated Plotly.js from version 2.35.0 to version 3.0.0-rc.0. See the plotly.js CHANGELOG for more information.

v5.24.0

Compare Source

Added
  • New px functions for maps: scatter_map, line_map, choropleth_map, and density_map.
Updated
  • Updated Plotly.js from version 2.34.0 to version 2.35.0. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include:

  • Fixed a bug in integer validation of arrays that threw an error when an array contained a mix of strings and integers.

v5.23.0

Compare Source

Updated
  • Updated Plotly.js from version 2.32.0 to version 2.34.0. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include:
    • Add subtitle attribute to layout.title to enable adding subtitles to plots [#​7012]
    • Introduce "u" and "s" pseudo html tags to add partial underline and strike-through styles to SVG text elements [#​7043]
    • Add geometric mean functionality and 'geometric mean ascending' + 'geometric mean descending' to category_order on cartesian axes [#​6223],
      with thanks to @​acxz and @​prabhathc for the contribution!
    • Add axis property ticklabelindex for drawing the label for each minor tick n positions away from a major tick,
      with thanks to @​my-tien for the contribution! [#​7036]
    • Add property ticklabelstandoff and ticklabelshift to cartesian axes to adjust positioning of tick labels,
      with thanks to @​my-tien for the contribution! [#​7006]
    • Add x0shift, x1shift, y0shift, y1shift to shapes to add control over positioning of shape vertices on (multi-)category axes,
      with thanks to @​my-tien for the contribution! [#​7005]
  • Specify Python version 3.8-3.11 for development virtual environments and pin pytest at version 8.1.1 to match.
  • Update IntegerValidator to handle extras option to allow supporting additional keyword values. For example, 'bold' and 'normal' as well as integers as used in font weights [#​4612].

v5.22.0

Compare Source

Updated
  • Updated Plotly.js from version 2.31.1 to version 2.32.0. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include:
    • Add "bold" weight, "italic" style and "small-caps" variant options to fonts [#​6956]
    • Fix applying autotickangles on axes with showdividers as well as cases where tickson is set to "boundaries" [#​6967], with thanks to @​my-tien for the contribution!
    • Fix positioning of multi-line axis titles with standoff [#​6970], with thanks to @​my-tien for the contribution!

v5.21.0

Compare Source

Updated
  • Updated Plotly.js from version 2.30.0 to version 2.31.1. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include:
    • Add zorder attribute to various cartesian traces for controlling stacking order of SVG traces drawn into a subplot [#​6918, #​6953],
      This feature was anonymously sponsored: thank you to our sponsor!
    • Add "between" option to shape layer for placing them above grid lines and below traces [#​6927],
      with thanks to @​my-tien for the contribution!
    • Add "raw" sizemode to cone trace [#​6938]
    • Add layout.hoversubplots to enable hover effects across multiple cartesian suplots sharing one axis [#​6947, #​6950]
Fixed

v5.20.0

Compare Source

Updated
  • Updated Plotly.js from version 2.29.1 to version 2.30.0. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include:
    • Add fill gradients for scatter traces [#​6905], with thanks to @​lumip for the contribution!
    • Add indentation to legend [#​6874], with thanks to @​my-tien for the contribution!

v5.19.0

Compare Source

Updated
  • Updated Plotly.js from version 2.27.0 to version 2.29.1. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include:
    • Add layout.barcornerradius and trace.marker.cornerradius properties to support rounding the corners of bar traces [#​6761],
      with thanks to Displayr for sponsoring development!
    • Add autotickangles to cartesian and radial axes [#​6790], with thanks to @​my-tien for the contribution!
    • Add align option to sankey nodes to control horizontal alignment [#​6800],
      with thanks to @​adamreeve for the contribution!
    • Add the possibility of loading "virtual-webgl" script for WebGL 1 to help display several WebGL contexts on a page [#​6784], with thanks to @​greggman for the contribution!
    • Add options to use base64 encoding (bdata) and shape (for 2 dimensional arrays) to declare various typed arrays i.e. dtype=(float64|float32|int32|int16|int8|uint32|uint16|uint8) [#​5230]
    • Adjust stamen styles to point to stadiamaps.com, the users may also need to provide their own API_KEY via config.mapboxAccessToken [#​6776, #​6778]
  • Removed Python 3.6 and Python 3.7 support [#​4492]
Fixed
  • Ensure scatter mode is deterministic from px [#​4429]
  • Fix issue with creating dendrogram in subplots [#​4411],
  • Fix issue with px.line not accepting "spline" line shape [#​2812]
  • Fix KeyError when using column of pd.Categorical dtype with unobserved categories [#​4437]
  • Fix dataframe interchange in case column_names returns an unmaterialized object: generator, iterator, etc. [#​4442]
  • Fix issue with FutureWarning being displayed when setting the color argument in plotly.express [#​4519]

v5.18.0

Compare Source

Updated
  • Updated Plotly.js from version 2.26.0 to version 2.27.0. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include:
    • Add insiderange to cartesian axes to help avoid overlap between visible grid lines and tick labels of the counter axis when they are positioned inside [#​6735], this feature was anonymously sponsored: thank you to our sponsor!
    • Fix column order changes on hover [#​6718],
      with thanks to @​bhavinpatel1109 for the contribution!
    • Fix hover at timestamp '1970-01-01 00:00:00' [#​6752],
      with thanks to @​adamjhawley for the contribution!
    • Fix clearing empty candlestick using react [#​6757]
Fixed
  • Repair crash on Matplotlib 3.8 related to get_offset_position [#​4372],
  • Handle deprecation of pandas.Series.dt.to_pydatetime() calls and suppress the FutureWarning they currently emit. [#​4379]

v5.17.0

Compare Source

Updated
  • Improved json docstrings, added BasePlotlyType.to_json() method [#​4301]
  • Updated Plotly.js from version 2.25.2 to version 2.26.0. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include:
    • Add "min", "max", "min reversed" and "max reversed" autorange options and handle partial ranges (i.e. one end being null), add autorangeoptions (clipmin, clipmax, minallowed, maxallowed, include) as well as minallowed and maxallowed to cartesian, gl3d and radial axes [#​6547]
    • Add [n]-sigma (std deviations) box plots as an alternative to quartiles [#​6697], with thanks to @​28raining for the contribution!
    • Add "top left" & "top center" side options to legend title [#​6711], with thanks to @​28raining for the contribution!
    • Add "false" option to scaleanchor to allow removing a constraint that is set by default [#​6712], with thanks to @​lvlte for the contribution!
Fixed
  • Fixed two issues with px.imshow: [#​4330] when facet_col is an earlier dimension than animation_frame for xarrays and [#​4329] when facet_col has string coordinates in xarrays [#​4331]

v5.16.1

Compare Source

Fixed
  • Fixed issue with necessary columns from complex arguments dropped when interchanging dataframes [#​4324]

v5.16.0

Compare Source

Updated
  • Updated Plotly.js from version 2.24.1 to version 2.25.2. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include:
    • Add "Equal Earth" projection to geo subplots [#​6670],
      with thanks to @​apparebit for the contribution!
    • Add options to include legends for shapes and newshape [#​6653]
  • px methods now accept data-frame-like objects that support a dataframe interchange protocol, such as polars, vaex, modin etc. This protocol has priority on to_pandas call, but will only be used if pandas>=2.0.2 is installed in the environment.
  • px methods now accept data-frame-like objects that support a toPandas() method, such as Spark DataFrames, or a to_pandas_df() method, such as Vaex DataFrames.
Fixed
  • Fixed Pandas performance warning issue caused by multiple frame.insert [#​4246]

v5.15.0

Compare Source

Updated
  • Updated Plotly.js from version 2.20.0 to version 2.24.1. See the plotly.js CHANGELOG for more information. Notable changes include:
    • Add pattern to pie, funnelarea, sunburst, icicle and treemap traces [#​6601, #​6619, #​6622, #​6626, #​6627, #​6628, #​6629], with thanks to @​thierryVergult for the contribution!
    • Add texttemplate to shape.label for parametric shapes i.e. line, rect and circle [#​6527],
      with thanks to the Volkswagen Center of Excellence for Battery Systems for sponsoring development!
    • Add strict option to custom bundle command [#​6557],
      with thanks to @​CallumNZ for the contribution!
    • Add legend references to traces and legend2, legend3, etc. to layout,
      also add visible to legend i.e. to allow positioning multiple legends on a graph [#​6535],
      this feature was anonymously sponsored: thank you to our sponsor!
    • Add legend.xref and legend.yref to enable container-referenced positioning of legends [#​6589], with thanks to Gamma Technologies for sponsoring the related development.
    • Add colorbar.xref and colorbar.yref to enable container-referenced positioning of colorbars [#​6593], with thanks to Gamma Technologies for sponsoring the related development.
  • px methods now accept data-frame-like objects that support a to_pandas() method, such as polars, cudf, vaex etc [#​4244], [#​4286]
Fixed
  • Fixed another compatibility issue with Pandas 2.0, just affecting px.*(line_close=True) [#​4190]
  • Empty pandas dataframe with facet row/column set no longer fails [#​4038]
  • Added some rounding to the make_subplots function to handle situations where the user-input specs cause the domain to exceed 1 by small amounts [#​4153]
  • Sanitize JSON output to prevent an XSS vector when graphs are inserted directly into HTML [#​4196]
  • Fixed issue with shapes and annotations plotting on the wrong y axis when supplied with a specific axis in the yref parameter [#​4177]
  • Remove use_2to3 setuptools arg, which is invalid in the latest Python and setuptools versions [#​4206]
  • Fix #​4066 JupyterLab v4 giving tiny default graph height [#​4227]
  • Fixed issue with colors.n_colors where generated RGB color values were not being constrained to stay between 0 and 255 [#​4110]
  • Fix streamline figure factory with recent versions of Numpy
  • Fix issue with shapes and annotations not drawing on correct axis [#​4177]

v5.14.1

Compare Source

Fixed
  • Fixed compatibility issue with Pandas 2.0 [#​4103]

v5.14.0

Compare Source

Updated
  • Updated Plotly.js from version 2.18.2 to version 2.20.0. See the plotly.js CHANGELOG for more information. Notable changes include:
    • Add title.automargin to enable automatic top and bottom margining for both container and paper referenced titles [#​6428],
      with thanks to Gamma Technologies for sponsoring the related development.
    • Add label attribute to shapes [#​6454], with thanks to the Volkswagen Center of Excellence for Battery Systems for sponsoring development!
    • Add labelalias to various axes namely cartesian, gl3d, polar, smith, ternary, carpet,
      indicator and colorbar [#​6481],
      this feature was anonymously sponsored: thank you to our sponsor!
  • Key errors no longer precalculated when performing updates on plots [#​4101]
Fixed
  • Fixed an issue with characters displaying incorrectly, by adding charset="utf-8" to scripts in to_html [#​4114]
  • Added packaging to install requirements, fixing a No module named 'packaging error on Python 3.6 [#​4113]
Added
  • Added option to allow passing a column name as a str in hover_data and custom_data in plotly.express [4083]

v5.13.1

Compare Source

Updated
  • Updated Plotly.js to from version 2.18.0 to version 2.18.2. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module.
  • Updated distutils.Version to packaging.Version #​3897] and #​4055]

v5.13.0

Compare Source

Updated
Fixed
  • write_html() now explicitly encodes output as UTF-8 because Plotly.js' bundle contains such characters [#​4021] and [#​4022]
  • fixed iframe renderer regression from 5.12 and also fixed error when this renderer was used in the very first cell in a notebook [#​4036]

v5.12.0

Compare Source

Updated
  • Support for ipywidgets 8 [#​3930]
  • Updated Plotly.js to from version 2.16.1 to version 2.17.1. See the plotly.js CHANGELOG for more information. Notable changes include:
    • Add shift and autoshift to cartesian y axes to help avoid overlapping of multiple axes [#​6334],
      with thanks to Gamma Technologies for sponsoring the related development!
    • Introduce group attributes for scatter trace i.e. alignmentgroup, offsetgroup, scattermode and scattergap [#​6381],
      this feature was anonymously sponsored: thank you to our sponsor!
    • Add marker.cornerradius attribute to treemap trace [#​6351]
Fixed
  • Fixed the usage of some deprecated NumPy types which were removed in NumPy 1.24 [#​3997]
  • Fixed bug for trendlines with datetime axes [#​3683]
  • marker.angle attribute now accepts iterables where appropriate [#​4013]
  • selector=0 now correctly returns the first trace in .select_traces() and related methods [#​3817]

v5.11.0

Compare Source

Updated
  • Updated Plotly.js to from version 2.14.0 to version 2.16.1. See the plotly.js CHANGELOG for more information. Notable changes include:
    • Add clustering options to scattermapbox [#​5827],
      with thanks to @​elben10 for the contribution!
    • Add bounds to mapbox suplots [6339]
    • Add angle, angleref and standoff to marker and add backoff to line; also introduce new arrow symbols to facilitate drawing networks [#​6297]
    • Add minreducedwidth and minreducedheight to layout for increasing control over automargin [#​6307]
    • Add entrywidth and entrywidthmode to legend [#​6202, #​6324]

v5.10.0

Compare Source

Updated
  • Updated Plotly.js to from version 2.12.1 to version 2.14.0. See the plotly.js CHANGELOG for more information. Notable changes include:
    • Add support for sankey links with arrows
    • Add selections, newselection and activeselection layout attributes to have persistent and editable selections over cartesian subplots
    • Add unselected.line.color and unselected.line.opacity options to parcoords trace
    • Display Plotly's new logo in the modebar

v5.9.0

Compare Source

Added
  • pattern_shape options now available in px.timeline() #​3774
  • facet_* and category_orders now available in px.pie() #​3775
Performance
  • px methods no longer call groupby on the input dataframe when the result would be a single group, and no longer groups by a lambda, for significant speedups #​3765 with thanks to @​jvdd
Updated
  • Allow non-string extras in flaglist attributes, to support upcoming changes to ax.automargin in plotly.js plotly.js#6193, #​3749

v5.8.2

Compare Source

Fixed
  • Fixed a syntax error that caused rendering issues in Databricks notebooks and likely elsewhere. #​3763 with thanks to @​fwetdb

v5.8.1

Compare Source

(no changes, due to a mixup with the build process!)

v5.8.0

Compare Source

Fixed
  • Improve support for type checking and IDE auto-completion by bypassing lazy-loading when type checking. #​3425 with thanks to @​JP-Ellis
  • line dash-style validators are now correctly used everywhere so that values like 10px 2px are accepted #​3722
  • Resolved various deprecation warning messages and compatibility issues with upstream dependencies and Python 3.11, plus removed dependency on six, with thanks to @​maresb, @​hugovk, @​tirkarthi, @​martinRenou, and @​BjoernLudwigPTB
  • Better support for MathJax 3 #​3706
Added
  • Type annotations for Plotly Express functions and chainable go.Figure methods, for better IDE auto-completion #​3708
Updated
  • Updated Plotly.js to from version 2.11.1 to version 2.12.1. See the plotly.js CHANGELOG for more information. Notable changes include:
    • Add minor ticks to cartesian axes
    • Add griddash option to most axes

v5.7.0

Compare Source

Added
  • added pattern_shape options to px.area() #​3668
Updated
  • Updated Plotly.js to from version 2.9.0 to version 2.11.1. See the plotly.js CHANGELOG for more information. Notable changes include:
    • Add fillpattern options to scatter trace
    • Various JS-specific improvements such as MathJax 3.0 support

v5.6.0

Compare Source

Updated
  • Updated Plotly.js to from version 2.8.3 to version 2.9.0. See the plotly.js CHANGELOG for more information. Notable changes include:
    • Implement ticklabelstep to reduce labels on cartesian axes and colorbars
    • Display the version of plotly.js when hovering over the modebar

v5.5.0

Compare Source

Added
  • text_auto argument to px.bar, px.histogram, px.density_heatmap, px.imshow #​3518
  • Deprecated ff.create_annotated_heatmap, ff.create_county_choropleth, ff.create_gantt #​3518
  • div_id argument to pio.to_html, pio.write_html, fig.to_html and fig.write_html to optionally make its IDs deterministic #​3487 with thanks to @​Skn0tt
Fixed
  • Fixed ValueError when ff.create_annotated_heatmap passes rgba() colors into to_rgb_color_list #​3478 with thanks to @​janosh
Updated
  • Updated Plotly.js to from version 2.6.3 to version 2.8.3. See the plotly.js CHANGELOG for more information. Notable changes include:
    • Horizontal color bars
    • texttemplate for histogram-like and heatmap-like traces

v5.4.0

Compare Source

Fixed
  • Fixed error when serializing dict with mix of string and non-string keys #​3380
Updated
  • The JSON serialization engines no longer sort their keys #​3380
  • Updated Plotly.js to from version 2.4.2 to version 2.6.3. See the plotly.js CHANGELOG for more information. Notable changes include:
    • New subplot type smith that supports scattersmith trace types for visualizing data in the complex domain
    • Changes to Plotly.js packaging

v5.3.1

Compare Source

Updated
  • Updated Plotly.js to from version 2.4.1 to version 2.4.2. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include:
    • Bug fix for rendering unified hover labels in classic Jupyter Notebooks

v5.3.0

Compare Source

Updated
  • Updated Plotly.js to from version 2.3.1 to version 2.4.1. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include:
    • Added legend.groupclick options
    • Provide bbox of hover items in event data

v5.2.2

Compare Source

Fixed
  • Fixed error when using the orjson engine with non-string keys #​3351

v5.2.1

Compare Source

Updated
  • Updated Plotly.js to from version 2.2.0 to version 2.3.1. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include:
    • new projections in geo subplots from a more recent version of d3-geo
    • new number-formatting directives from a more recent version of d3-format
    • Improve rendering of scattergl, splom and parcoords by implementing plotGlPixelRatio for those traces
    • performance improvements and bug fixes
Added
  • Extra flags were added to the gapminder and stocks dataset to facilitate testing, documentation and demos #​3305
  • All line-like Plotly Express functions now accept markers argument to display markers, and all but line_mapbox accept symbol to map a field to the symbol attribute, similar to scatter-like functions #​3326
  • px.scatter and px.density_contours now support new trendline types 'rolling', 'expanding' and 'ewm' #​2997
  • px.scatter and px.density_contours now support new trendline_options argument to parameterize trendlines, with support for constant control and log-scaling in 'ols' and specification of the fraction used for 'lowess', as well as pass-through to Pandas for 'rolling', 'expanding' and 'ewm' #​2997
  • px.scatter and px.density_contours now support new trendline_scope argument that accepts the value 'overall' to request a single trendline for all traces, including across facets and animation frames #​2997
  • A new px.ecdf() function for Empirical Cumulative Distribution Functions #​3330
Fixed
  • Fixed regression introduced in version 5.0.0 where pandas/numpy arrays with dtype of Object were being converted to list values when added to a Figure (#​3292, #​3293)
  • Better detection of Chrome and Chromium browsers in the Renderers framework, especially on Linux (#​3278) with thanks to @​c-chaitanya for the contribution

v5.2.0

Compare Source

v5.1.0

Compare Source

  • Updated Plotly.js to from version 2.1.0 to version 2.2.0. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include:
    • new <trace>.legendgrouptitle attribute for legend group titles
    • new %h text formatting directive for half-years
    • performance improvements and bug fixes

v5.0.0

Compare Source

Updated/Changed

Items in this section may be considered backwards-incompatible changes for the purposes of Semantic Versioning but we expect the vast majority of users to be able to upgrade to version 5.0 without encountering any issues.

  • Dropped support for Python older than 3.6 #​3160
  • Updated Plotly.js to from version 1.58.4 to version 2.1.0. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include:
    • dropped support for IE9 and IE10
    • dropped support for long-deprecated graph_objects like area traces and scatter.(t|r) and layout.(radial|angular)axis attributes
    • modebar no longer has hovermode or spikeline buttons by default (can be added back with fig.update_layout(modebar_add=["v1hovermode", "toggleSpikeLines"]))
    • "Aa" text no longer appears on legend items unless mode="text"
    • In bar traces, textposition now defaults to "auto"
    • Font size for legend and colorbar titles now matches axis title font size (slightly bigger)
    • deprecated heatmapgl, pointcloud traces as well as all transform attributes
  • Combined plotlywidget into jupyterlab-plotly and packaged them as a federated extension #​3142 with massive thanks to @​fcollonval for the contribution
    • In addition to this change, large Plotly.js bundles are now lazily loaded on-demand by JupyterLab
  • Plotly.js CDN url will now be versioned by default for HTML exports using include_plotlyjs='cdn' and for "connected" renderers. #​2961 with thanks to @​adehad for the contribution
  • Recommending Kaleido by default over Orca #​3094
  • Replaced retrying dependency with tenacity #​2911 with thanks to @​jmsmdy for the contribution
  • Plotly Express now always takes into account every value in category_orders when computing discrete mappings (color, symbol, line-dash, pattern-shapes) as well as facets, even those values which are absent in the data #​3247
Added
  • Additions due to bumping Plotly.js from 1.58.4 to 2.1.0 (see changelog):
    • New icicle trace type, with thanks to @​Kully and @​mtwichan of Zyphr for their contribution!
    • New marker.pattern options for bar-like trace types with thanks to @​s417-lama for the contribution!
    • New legendrank attribute to control rank of traces within legends
  • Plotly Express' px.bar(), px.histogram() and px.bar_polar() now support the pattern_shape argument #​3252
  • New Plotly Express px.icicle() function, with thanks to @​Kully and @​mtwichan of Zyphr for their contribution! #​3256
  • New functions in plotly.colors: get_colorscale() and sample_colorscale() #​3136 and #​3186 with thanks to @​CarlAndersson for the contributions
  • Faster JSON encoding when orjson is present #​2955
Fixed
  • Pandas and Numpy datetime serialization fixes #​3022
  • Fixed selected points of histograms in FigureWidget #​2771 with thanks to @​meffmadd for the contribution
  • Static image export now honors layout.(width|height)#​3240
  • Improvements to "matplotlylib" conversion utility in plotly.tools.mpl_to_plotly() with thanks to @​fdion #​3143

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@auto-assign auto-assign bot requested a review from MKoesters March 1, 2025 02:37
@renovate renovate bot force-pushed the renovate/plotly-6.x branch from b960a05 to 7bab0f8 Compare March 17, 2025 20:43
@renovate renovate bot force-pushed the renovate/plotly-6.x branch from 7bab0f8 to a5a10ac Compare March 28, 2025 13:06
@renovate renovate bot force-pushed the renovate/plotly-6.x branch from a5a10ac to bdc617c Compare May 15, 2025 20:30
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant