Skip to content
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

Update dependency plotly to v5 #56

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

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jun 21, 2021

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
plotly (source, changelog) ==4.4.1 -> ==5.22.0 age adoption passing confidence

Release Notes

plotly/plotly.py (plotly)

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

v4.14.3

Compare Source

  • 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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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)
Added
  • Better magic underscore error messages. For example, some_fig.update_layout(geo_ltaxis_showgrid=True) shows Bad property path:\ngeo_ltaxis_showgrid\n ^ and lists the valid properties for geo.
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

Compare Source

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

Compare Source

Added
  • Added plotly.io.full_figure_for_development() and plotly.graph_objects.Figure.full_figure_for_development() (#​2737)
Updated
  • The JSON serialization of plotly figures had been accelerated by handling
    differently figures with and without NaN and Inf values (#​2880).
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 contrast_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

v4.9.0

Compare Source

Added
  • Added image export support using Kaleido. The image export backend can be configured using the new engine argument to plotly.io.to_image and plotly.io.write_image. The engine argument may be set to "kaleido", "orca", or "auto". The default is engine="auto", in which case the Kaleido backend is enabled if the kaleido package from PyPI is installed, otherwise Orca is used. (#​2613).
  • plotly.express.timeline() added as an official alternative to plotly.figure_factories.create_gantt() (#​2626)
  • create_hexbin_mapbox() added to Figure Factories, with thanks to @​RenaudLN for the impressive contribution!
  • facet_row_spacing and facet_col_spacing added to Plotly Express cartesian 2d functions (#​2614)
  • base added to Plotly Express bar and bar_polar functions (#​2626)
  • px.NO_COLOR constant to override wide-form color assignment in Plotly Express (#​2614)
Fixed
  • trendline traces are now of type scattergl when render_mode="webgl" in Plotly Express (#​2614)
  • regression from 4.8.1 whereby "parent" was not accepted as part of path for px.sunburst() and px.treemap() (#​2640)
  • create_dendrogram() figure factory now works correctly with scipy 1.5.1 (#​2627)
Updated
  • Updated Plotly.js to version 1.54.6. See the plotly.js CHANGELOG for more information.
  • Added all cartesian-2d Plotly Express functions, plus imshow, to Pandas backend with kind option (#​2541)
  • plotly.express.imshow now uses data frame index and columns names and values to populate axis parameters by default (#​2539)
  • Javascript extensions are now build using Node 12, and have an updated package-lock.json with many fewer security warnings (#​2636)

v4.8.2

Compare Source

Updated
  • Updated Plotly.js to version 1.54.5. See the plotly.js CHANGELOG for more information.
  • add_traces() now accepts bare int-like values for rows/cols as well as lists thereof (#​2546), with thanks to @​MCBoarder289 for the contribution!
Fixed
  • row/col now accept int-like values, not strictly int values (#​2451), with thanks to @​MCBoarder289 for the contribution!
  • Fixed special cases with px.sunburst and px.treemap with path input (#​2524)
  • Fixed bug in hover_data argument of px functions, when the column name is changed with labels and hover_data is a dictionary setting up a specific format for the hover data (#​2544).
  • Made the Plotly Express trendline argument more robust and made it work with datetime x values (#​2554)
  • Fixed bug in px.sunburst and px.treemap: when the color and values arguments correspond to the same column, a different aggregation function has to be used for the two arguments (#​2591)
  • Plotly Express wide mode now accepts mixed integer and float columns (#​2598)
  • Plotly Express range_(x|y) should not impact the unlinked range of marginal subplots (#​2600)
  • px.line now sets line_group=<variable> in wide mode by default (#​2599)
  • Corrected some regex warnings (#​2577), with thanks to @​georgevdd for the contribution!

v4.8.1

Compare Source

Fixed
  • Fixed the accidental removal of some functions and submodules from plotly.colors and plotly.express.colors

v4.8.0

Compare Source

Added
  • plotly now provides a Plotly Express-backed Pandas-compatible plotting backend, which can be activated via pandas.options.plotting.backend = "plotly". Note that it is not intended to implement every Pandas plotting function, nor is it intended to replicate the behavio

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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/plotly-5.x branch 2 times, most recently from 6d71436 to f481fb9 Compare August 17, 2023 02:47
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.

None yet

0 participants