Update dependency plotly to v6 #377
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
<5.0
-><6.2
Release Notes
plotly/plotly.py (plotly)
v6.1.0
Compare Source
Updated
Fixed
jupyterlab
ornotebook
is not installed [#5104]v6.0.1
Compare Source
Updated
Fixed
TypeError
when usingorjson
to serializepandas.NA
[#5040].category_orders
onpx.pie
raisedColumnNotFoundError
[#5000].DeprecationWarning
shown when creating apx
chart [#5080, #5086]v6.0.0
Compare Source
Added
plotly[express]
extra for easily installing Plotly Express dependencies [#4644]subtitle
attribute to all Plotly Express traces [#4830].Removed
pointcloud
andheatmapgl
traces from the API [#4815]tenacity
dependency [#4831]Updated
plotly.graph_objects
module. Notable changes include:titlefont
,titleposition
,titleside
, andtitleoffset
[#7212].bardir
attribute (useorientation
instead) [#7214]annotation.ref
attribute (useannotation.xref
andannotation.yref
instead) [#7215]opacity
attribute (use alpha channel of error barcolor
attribute instead) [#7214]gl3d.cameraposition
(usegl3d.camera
instead) [#7217]plot3dPixelRatio
from config [#7231]zauto
,zmin
andzmax
from the surface trace [#7234]autotick
attributes from cartesian axes [#7236]transforms
from the API [#7240, #7254]go.FigureWidget
to useanywidget
[#4823]Fixed
go.FigureWidget.show
to returnFigureWidget
instead of displayingFigure
[#4869]v5.24.1
Compare Source
Updated
v5.24.0
Compare Source
Added
px
functions for maps:scatter_map
,line_map
,choropleth_map
, anddensity_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
plotly.graph_objects
module. Notable changes include:subtitle
attribute tolayout.title
to enable adding subtitles to plots [#7012]category_order
on cartesian axes [#6223],with thanks to @acxz and @prabhathc for the contribution!
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]
ticklabelstandoff
andticklabelshift
to cartesian axes to adjust positioning of tick labels,with thanks to @my-tien for the contribution! [#7006]
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]
pytest
at version 8.1.1 to match.IntegerValidator
to handleextras
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
plotly.graph_objects
module. Notable changes include:v5.21.0
Compare Source
Updated
plotly.graph_objects
module. Notable changes include: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!
with thanks to @my-tien for the contribution!
sizemode
to cone trace [#6938]layout.hoversubplots
to enable hover effects across multiple cartesian suplots sharing one axis [#6947, #6950]Fixed
orjson
loading issue [#4562]v5.20.0
Compare Source
Updated
plotly.graph_objects
module. Notable changes include:indentation
to legend [#6874], with thanks to @my-tien for the contribution!v5.19.0
Compare Source
Updated
plotly.graph_objects
module. Notable changes include:layout.barcornerradius
andtrace.marker.cornerradius
properties to support rounding the corners of bar traces [#6761],with thanks to Displayr for sponsoring development!
autotickangles
to cartesian and radial axes [#6790], with thanks to @my-tien for the contribution!align
option to sankey nodes to control horizontal alignment [#6800],with thanks to @adamreeve for the contribution!
bdata
) andshape
(for 2 dimensional arrays) to declare various typed arrays i.e.dtype=(float64|float32|int32|int16|int8|uint32|uint16|uint8)
[#5230]stadiamaps.com
, the users may also need to provide their own API_KEY viaconfig.mapboxAccessToken
[#6776, #6778]Fixed
mode
is deterministic frompx
[#4429]pd.Categorical
dtype with unobserved categories [#4437]column_names
returns an unmaterialized object: generator, iterator, etc. [#4442]FutureWarning
being displayed when setting thecolor
argument inplotly.express
[#4519]v5.18.0
Compare Source
Updated
plotly.graph_objects
module. Notable changes include: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!with thanks to @bhavinpatel1109 for the contribution!
with thanks to @adamjhawley for the contribution!
candlestick
using react [#6757]Fixed
pandas.Series.dt.to_pydatetime()
calls and suppress theFutureWarning
they currently emit. [#4379]v5.17.0
Compare Source
Updated
BasePlotlyType.to_json()
method [#4301]plotly.graph_objects
module. Notable changes include:autorangeoptions
(clipmin
,clipmax
,minallowed
,maxallowed
,include
) as well asminallowed
andmaxallowed
to cartesian, gl3d and radial axes [#6547]scaleanchor
to allow removing a constraint that is set by default [#6712], with thanks to @lvlte for the contribution!Fixed
v5.16.1
Compare Source
Fixed
v5.16.0
Compare Source
Updated
plotly.graph_objects
module. Notable changes include:with thanks to @apparebit for the contribution!
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 onto_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 atoPandas()
method, such as Spark DataFrames, or ato_pandas_df()
method, such as Vaex DataFrames.Fixed
frame.insert
[#4246]v5.15.0
Compare Source
Updated
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!
with thanks to @CallumNZ for the contribution!
legend
references to traces andlegend2
,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!
legend.xref
andlegend.yref
to enable container-referenced positioning of legends [#6589], with thanks to Gamma Technologies for sponsoring the related development.colorbar.xref
andcolorbar.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 ato_pandas()
method, such as polars, cudf, vaex etc [#4244], [#4286]Fixed
px.*(line_close=True)
[#4190]make_subplots
function to handle situations where the user-input specs cause the domain to exceed 1 by small amounts [#4153]yref
parameter [#4177]use_2to3
setuptools arg, which is invalid in the latest Python and setuptools versions [#4206]colors.n_colors
where generated RGB color values were not being constrained to stay between 0 and 255 [#4110]v5.14.1
Compare Source
Fixed
v5.14.0
Compare Source
Updated
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.
label
attribute to shapes [#6454], with thanks to the Volkswagen Center of Excellence for Battery Systems for sponsoring development!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!
Fixed
charset="utf-8"
to scripts into_html
[#4114]packaging
to install requirements, fixing aNo module named 'packaging
error on Python 3.6 [#4113]Added
str
inhover_data
andcustom_data
inplotly.express
[4083]v5.13.1
Compare Source
Updated
plotly.graph_objects
module.v5.13.0
Compare Source
Updated
sync
tickmode option [#6356, #6443], with thanks to @filipesantiagoAM and @VictorBezak for the contribution!Fixed
write_html()
now explicitly encodes output as UTF-8 because Plotly.js' bundle contains such characters [#4021] and [#4022]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
shift
andautoshift
to cartesian y axes to help avoid overlapping of multiple axes [#6334],with thanks to Gamma Technologies for sponsoring the related development!
scatter
trace i.e.alignmentgroup
,offsetgroup
,scattermode
andscattergap
[#6381],this feature was anonymously sponsored: thank you to our sponsor!
marker.cornerradius
attribute totreemap
trace [#6351]Fixed
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
scattermapbox
[#5827],with thanks to @elben10 for the contribution!
angle
,angleref
andstandoff
tomarker
and addbackoff
toline
; also introduce new arrow symbols to facilitate drawing networks [#6297]minreducedwidth
andminreducedheight
to layout for increasing control over automargin [#6307]entrywidth
andentrywidthmode
to legend [#6202, #6324]v5.10.0
Compare Source
Updated
sankey
links with arrowsselections
,newselection
andactiveselection
layout attributes to have persistent and editable selections over cartesian subplotsunselected.line.color
andunselected.line.opacity
options toparcoords
tracev5.9.0
Compare Source
Added
pattern_shape
options now available inpx.timeline()
#3774facet_*
andcategory_orders
now available inpx.pie()
#3775Performance
px
methods no longer callgroupby
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 @jvddUpdated
flaglist
attributes, to support upcoming changes toax.automargin
in plotly.js plotly.js#6193, #3749v5.8.2
Compare Source
Fixed
v5.8.1
Compare Source
(no changes, due to a mixup with the build process!)
v5.8.0
Compare Source
Fixed
10px 2px
are accepted #3722six
, with thanks to @maresb, @hugovk, @tirkarthi, @martinRenou, and @BjoernLudwigPTBAdded
go.Figure
methods, for better IDE auto-completion #3708Updated
minor
ticks to cartesian axesgriddash
option to most axesv5.7.0
Compare Source
Added
pattern_shape
options topx.area()
#3668Updated
fillpattern
options toscatter
tracev5.6.0
Compare Source
Updated
ticklabelstep
to reduce labels on cartesian axes and colorbarsv5.5.0
Compare Source
Added
text_auto
argument topx.bar
,px.histogram
,px.density_heatmap
,px.imshow
#3518ff.create_annotated_heatmap
,ff.create_county_choropleth
,ff.create_gantt
#3518div_id
argument topio.to_html
,pio.write_html
,fig.to_html
andfig.write_html
to optionally make its IDs deterministic #3487 with thanks to @Skn0ttFixed
ff.create_annotated_heatmap
passesrgba()
colors intoto_rgb_color_list
#3478 with thanks to @janoshUpdated
texttemplate
for histogram-like and heatmap-like tracesv5.4.0
Compare Source
Fixed
Updated
smith
that supportsscattersmith
trace types for visualizing data in the complex domainv5.3.1
Compare Source
Updated
plotly.graph_objects
module. Notable changes include:v5.3.0
Compare Source
Updated
plotly.graph_objects
module. Notable changes include:legend.groupclick
optionsv5.2.2
Compare Source
Fixed
v5.2.1
Compare Source
Updated
plotly.graph_objects
module. Notable changes include:geo
subplots from a more recent version ofd3-geo
d3-format
scattergl
,splom
andparcoords
by implementingplotGlPixelRatio
for those tracesAdded
gapminder
andstocks
dataset to facilitate testing, documentation and demos #3305markers
argument to display markers, and all butline_mapbox
acceptsymbol
to map a field to the symbol attribute, similar to scatter-like functions #3326px.scatter
andpx.density_contours
now support newtrendline
types'rolling'
,'expanding'
and'ewm'
#2997px.scatter
andpx.density_contours
now support newtrendline_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'
#2997px.scatter
andpx.density_contours
now support newtrendline_scope
argument that accepts the value'overall'
to request a single trendline for all traces, including across facets and animation frames #2997px.ecdf()
function for Empirical Cumulative Distribution Functions #3330Fixed
dtype
of Object were being converted tolist
values when added to a Figure (#3292, #3293)v5.2.0
Compare Source
v5.1.0
Compare Source
plotly.graph_objects
module. Notable changes include:<trace>.legendgrouptitle
attribute for legend group titles%h
text formatting directive for half-yearsv5.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.
plotly.graph_objects
module. Notable changes include:graph_objects
likearea
traces andscatter.(t|r)
andlayout.(radial|angular)axis
attributesfig.update_layout(modebar_add=["v1hovermode", "toggleSpikeLines"])
)mode="text"
bar
traces,textposition
now defaults to"auto"
heatmapgl
,pointcloud
traces as well as alltransform
attributesplotlywidget
intojupyterlab-plotly
and packaged them as a federated extension #3142 with massive thanks to @fcollonval for the contributioninclude_plotlyjs='cdn'
and for "connected" renderers. #2961 with thanks to @adehad for the contributionretrying
dependency withtenacity
#2911 with thanks to @jmsmdy for the contributioncategory_orders
when computing discrete mappings (color, symbol, line-dash, pattern-shapes) as well as facets, even those values which are absent in the data #3247Added
icicle
trace type, with thanks to @Kully and @mtwichan of Zyphr for their contribution!marker.pattern
options forbar
-like trace types with thanks to @s417-lama for the contribution!legendrank
attribute to control rank of traces within legendspx.bar()
,px.histogram()
andpx.bar_polar()
now support thepattern_shape
argument #3252px.icicle()
function, with thanks to @Kully and @mtwichan of Zyphr for their contribution! #3256plotly.colors
:get_colorscale()
andsample_colorscale()
#3136 and #3186 with thanks to @CarlAndersson for the contributionsorjson
is present #2955Fixed
layout.(width|height)
#3240plotly.tools.mpl_to_plotly()
with thanks to @fdion #3143Configuration
📅 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.
This PR was generated by Mend Renovate. View the repository job log.