Skip to content

Releases: plotly/plotly.py

v5.0.0rc2

07 Jun 17:24
Compare
Choose a tag to compare
v5.0.0rc2 Pre-release
Pre-release

Find out more about the RC process on our Forum: https://community.plotly.com/t/plotly-py-5-0-is-coming-soon-try-the-release-candidate-today/53470

Updated

  • Updated Plotly.js to version 2.0.0. See the plotly.js 2.0.0 CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include:
    • new marker.pattern options for bar-like trace types
    • 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
    • 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
  • 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
  • Dropped support for Python older than 3.6 #3160
  • Recommending Kaleido by default over Orca #3094
  • Replaced retrying dependency with tenacity #2911 with thanks to @jmsmdy for the contribution

Added

  • 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

v5.0.0rc1

07 Jun 17:23
Compare
Choose a tag to compare
v5.0.0rc1 Pre-release
Pre-release

Find out more about the RC process on our Forum: https://community.plotly.com/t/plotly-py-5-0-is-coming-soon-try-the-release-candidate-today/53470

Updated

  • Updated Plotly.js to version 2.0.0-rc.2. See the plotly.js 2.0.0 CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include:
    • new marker.pattern options for bar-like trace types
    • 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
    • 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
  • 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
  • Dropped support for Python older than 3.6 #3160
  • Recommending Kaleido by default over Orca #3094
  • Replaced retrying dependency with tenacity #2911 with thanks to @jmsmdy for the contribution

Added

  • 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

v4.14.3

12 Jan 17:01
Compare
Choose a tag to compare
  • px.timeline() now allows hover_data formatting of start and end times 3018
  • Small change to packaging of plotlywidget extension for JupyterLab 3 3021

v4.14.2

11 Jan 20:31
Compare
Choose a tag to compare

Updated

  • JupyterLab extensions now compatible with JupyterLab 3.x 3016
  • Updated Plotly.js to version 1.58.4. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include:
    • fixes for rendering 3d plots on recent Safari versions
    • fixes to inside ticklabels
    • regression fixes

Fixed

  • px.histogram() Y-axis labels now take into account histnorm and barnorm 2989
  • px.histogram() marginal and facet_* now work correctly together 3014

v4.14.1

09 Dec 13:48
Compare
Choose a tag to compare

See the full announcement at https://community.plotly.com/t/announcing-plotly-py-4-14-faceted-and-animated-images-and-heatmaps-inside-tick-labels-better-axis-type-detection/48079

Updated

  • Updated Plotly.js to version 1.58.2. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include:
    • fixes for new ticklabelposition attribute
    • fixes for a regression related to treemaps in the previous version

v4.14.0 - Faceted and Animated Images and Heatmaps, Inside Tick Labels, Better Axis Type Detection

07 Dec 15:01
Compare
Choose a tag to compare

See the full announcement at https://community.plotly.com/t/announcing-plotly-py-4-14-faceted-and-animated-images-and-heatmaps-inside-tick-labels-better-axis-type-detection/48079

Added

  • px.imshow now supports facet_col and animation_frame arguments for visualizing 3-d and 4-d images 2746
  • px.defaults now supports color_discrete_map, symbol_map, line_dash_map, labels and category_orders as well as a .reset() method 2957

Fixed

  • axes will now auto-type numeric strings as categorical data rather than linear in the default templates 2951

Updated

  • Updated Plotly.js to version 1.58.1. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include:
    • a new ticklabelposition attribute to enable positioning tick labels inside the plotting area
    • better support for scaleanchor and matches on cartesian axes for matched square subplots
    • a new autotypenumbers attribute which is now set to strict in the default templates
    • various fixes relating to automargins for small figures

v4.13.0 - Magical Error Messages and Documentation, plus Speedups and Faceted Maps

23 Nov 13:51
Compare
Choose a tag to compare

See the fully release announcement at https://community.plotly.com/t/announcing-plotly-py-4-13-magical-error-messages-and-documentation-plus-speedups-and-faceted-maps/47497

Added

  • px.choropleth, px.scatter_geo and px.line_geo now support faceting as well as fitbounds and basemap_visible 2923
  • px.scatter_geo and px.line_geo now support geojson/featureidkey input 2923
  • px.scatter_geo now supports symbol 2923
  • go.Figure now has a set_subplots method to set subplots on an already
    existing figure. 2866
  • Added Turbo colorscale and fancier swatch display functions
    2882
  • A utility function image_array_to_data_uri has been added in
    plotly.utils, in order to transform NumPy arrays to data b64 URIs (which
    can be passed to the source parameter of go.Image, or to layout images).
    2879
  • the selector argument to updater/selector functions now accepts ints and strs
    2894

Updated

  • the JSON serialization of plotly figures has been accelerated thanks to a
    different handling of Infinity and NaN values. For example, a figure with a
    1000x1000 Heatmap should now serialize 2x faster. 2880
  • Coding mistakes with "magic underscores" now return significantly more ergonomic error
    messages 2843
  • Error messages related to impossible subplot geometries are now much more helpful
    2897

Fixed

  • px.scatter_geo support for text is fixed 2923
  • the x and y parameters of px.imshow are now used also in the case where
    an Image trace is used (for RGB data or with binary_string=True). However,
    only numerical values are accepted (while the Heatmap trace allows date or
    string values for x and y). 2761

v4.12.0 - Horizontal and Vertical Lines and Rectangles

23 Oct 13:32
Compare
Choose a tag to compare

See the full release announcement at https://community.plotly.com/t/announcing-plotly-py-4-12-horizontal-and-vertical-lines-and-rectangles/46783

Added

  • For add_trace, add_shape, add_annotation and add_layout_image, the row and/or col argument now also accept the string "all". row="all" adds the object to all the subplot rows and col="all" adds the object to all the subplot columns. (#2840)
  • Shapes that reference the plot axes in one dimension and the data in another dimension can be added with the new add_hline, add_vline, add_hrect, add_vrect functions, which also support the row="all" and col="all" arguments. (#2840)
  • The add_trace, add_shape, add_annotation, add_layout_image, add_hline, add_vline, add_hrect, add_vrect functions accept an argument exclude_empty_subplots which if True, only adds the object to subplots already containing traces or layout objects. This is useful in conjunction with the row="all" and col="all" arguments. (#2840)
  • For all go.Figure functions accepting a selector argument (e.g., select_traces), this argument can now also be a function which is passed each relevant graph object (in the case of select_traces, it is passed every trace in the figure). For graph objects where this function returns true, the graph object is included in the selection. (#2844)

Updated

  • Updated Plotly.js to version 1.57.1. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module.

v4.11.0 - Period positioning on date axes

01 Oct 14:11
Compare
Choose a tag to compare

See the full release announcement at https://community.plotly.com/t/announcing-plotly-py-4-12-horizontal-and-vertical-lines-and-rectangles/46783

Updated

  • Updated Plotly.js to version 1.56.0. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module.

v4.10.0 - date-axis improvements, a Faster px.imshow() and Full Figures for Development

10 Sep 13:15
Compare
Choose a tag to compare

See the full announcement at https://community.plotly.com/t/announcing-plotly-py-4-10-date-axis-improvements-a-faster-px-imshow-and-full-figures-for-development/44685

Added

  • Added plotly.io.full_figure_for_development() and plotly.graph_objects.Figure.full_figure_for_development() (#2737)

Updated

  • Updated Plotly.js to version 1.55.2. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module.
  • px.imshow has a new binary_string boolean argument, which passes the
    image data as a b64 binary string when True. Using binary strings allow for
    faster image rendering and smaller figure size. Additional optional arguments
    binary_backend, binary_format and binary_compression_level control
    how to generate the b64 string (#2691
  • px.imshow has a new constrast_rescaling argument in order to choose how
    to set data values corresponding to the bounds of the color range
    (#2691

Fixed

  • Plotly Express no longer converts datetime columns of input dataframes to UTC (#2749)
  • Plotly Express has more complete support for datetimes as additional hover_data (#2749)
  • Histogram selection behaviour with FigureWidget (#2711) with thanks to @meffmadd
  • Behaviour of full_html() with html=False (#2469) with thanks to @tallamjr
  • ff.distplot() now only computes traces that will be shown (#2730) with thanks to @akbo
  • Pandas backend .hist() works with latest version of Pandas (#2713) with thanks to @Kerybas