Skip to content

Releases: plotly/plotly.py

v6.0.0rc0

27 Nov 20:25
Compare
Choose a tag to compare
v6.0.0rc0 Pre-release
Pre-release

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

  • 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]
  • Update Plotly.js from version 2.34.2 to version 3.0.0-rc1 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]

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

12 Sep 15:42
Compare
Choose a tag to compare

Updated

  • Updated Plotly.js from version 2.35.0 to version 2.35.2. See the plotly.js CHANGELOG for more information.

v5.24.0

29 Aug 17:58
Compare
Choose a tag to compare

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

  • 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

23 Jul 13:47
Compare
Choose a tag to compare

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]

v5.22.0

01 May 14:04
Compare
Choose a tag to compare

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

17 Apr 15:27
Compare
Choose a tag to compare

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

  • Fixed orjson loading issue [#4562]

v5.20.0

13 Mar 16:27
Compare
Choose a tag to compare

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

15 Feb 15:49
Compare
Choose a tag to compare

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

25 Oct 19:52
Compare
Choose a tag to compare

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

15 Sep 15:44
Compare
Choose a tag to compare

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]