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:
==4.4.1
->==5.22.0
Release Notes
plotly/plotly.py (plotly)
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 #3143v4.14.3
Compare Source
px.timeline()
now allowshover_data
formatting of start and end times 3018plotlywidget
extension for JupyterLab 3 3021v4.14.2
Compare Source
Updated
plotly.graph_objects
module. Notable changes include:Fixed
px.histogram()
Y-axis labels now take into accounthistnorm
andbarnorm
2989px.histogram()
marginal
andfacet_*
now work correctly together 3014v4.14.1
Compare Source
Updated
plotly.graph_objects
module. Notable changes include:ticklabelposition
attributev4.14.0
Compare Source
Added
px.imshow
now supportsfacet_col
andanimation_frame
arguments for visualizing 3-d and 4-d images 2746px.defaults
now supportscolor_discrete_map
,symbol_map
,line_dash_map
,labels
andcategory_orders
as well as a.reset()
method 2957Fixed
Updated
plotly.graph_objects
module. Notable changes include:ticklabelposition
attribute to enable positioning tick labels inside the plotting areascaleanchor
andmatches
on cartesian axes for matched square subplotsautotypenumbers
attribute which is now set tostrict
in the default templatesautomargins
for small figuresv4.13.0
Compare Source
Added
px.choropleth
,px.scatter_geo
andpx.line_geo
now support faceting as well asfitbounds
andbasemap_visible
2923px.scatter_geo
andpx.line_geo
now supportgeojson
/featureidkey
input 2923px.scatter_geo
now supportssymbol
2923go.Figure
now has aset_subplots
method to set subplots on an alreadyexisting figure. 2866
Turbo
colorscale and fancier swatch display functions2882
image_array_to_data_uri
has been added inplotly.utils
, in order to transform NumPy arrays to data b64 URIs (whichcan be passed to the source parameter of
go.Image
, or to layout images).2879
selector
argument to updater/selector functions now acceptsint
s andstr
s2894
Updated
different handling of Infinity and NaN values. For example, a figure with a
1000x1000 Heatmap should now serialize 2x faster. 2880
messages 2843
2897
Fixed
px.scatter_geo
support fortext
is fixed 2923x
andy
parameters ofpx.imshow
are now used also in the case wherean 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
andy
). 2761v4.12.0
Compare Source
Added
add_trace
,add_shape
,add_annotation
andadd_layout_image
, therow
and/orcol
argument now also accept the string"all"
.row="all"
adds the object to all the subplot rows andcol="all"
adds the object to all the subplot columns. (#2840)add_hline
,add_vline
,add_hrect
,add_vrect
functions, which also support therow="all"
andcol="all"
arguments. (#2840)add_trace
,add_shape
,add_annotation
,add_layout_image
,add_hline
,add_vline
,add_hrect
,add_vrect
functions accept an argumentexclude_empty_subplots
which ifTrue
, only adds the object to subplots already containing traces or layout objects. This is useful in conjunction with therow="all"
andcol="all"
arguments. (#2840)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 ofselect_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
some_fig.update_layout(geo_ltaxis_showgrid=True)
showsBad property path:\ngeo_ltaxis_showgrid\n ^
and lists the valid properties forgeo
.Updated
plotly.graph_objects
module.v4.11.0
Compare Source
Updated
plotly.graph_objects
module.v4.10.0
Compare Source
Added
plotly.io.full_figure_for_development()
andplotly.graph_objects.Figure.full_figure_for_development()
(#2737)Updated
differently figures with and without NaN and Inf values (#2880).
Updated
plotly.graph_objects
module.px.imshow
has a newbinary_string
boolean argument, which passes theimage 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
andbinary_compression_level
controlhow to generate the b64 string (#2691
px.imshow
has a newcontrast_rescaling
argument in order to choose howto set data values corresponding to the bounds of the color range
(#2691
Fixed
hover_data
(#2749)FigureWidget
(#2711) with thanks to @meffmaddfull_html()
withhtml=False
(#2469) with thanks to @tallamjrff.distplot()
now only computes traces that will be shown (#2730) with thanks to @akbo.hist()
works with latest version of Pandas (#2713) with thanks to @Kerybasv4.9.0
Compare Source
Added
engine
argument toplotly.io.to_image
andplotly.io.write_image
. Theengine
argument may be set to"kaleido"
,"orca"
, or"auto"
. The default isengine="auto"
, in which case the Kaleido backend is enabled if thekaleido
package from PyPI is installed, otherwise Orca is used. (#2613).plotly.express.timeline()
added as an official alternative toplotly.figure_factories.create_gantt()
(#2626)create_hexbin_mapbox()
added to Figure Factories, with thanks to @RenaudLN for the impressive contribution!facet_row_spacing
andfacet_col_spacing
added to Plotly Express cartesian 2d functions (#2614)base
added to Plotly Expressbar
andbar_polar
functions (#2626)px.NO_COLOR
constant to override wide-form color assignment in Plotly Express (#2614)Fixed
scattergl
whenrender_mode="webgl"
in Plotly Express (#2614)"parent"
was not accepted as part ofpath
forpx.sunburst()
andpx.treemap()
(#2640)create_dendrogram()
figure factory now works correctly withscipy
1.5.1 (#2627)Updated
imshow
, to Pandas backend withkind
option (#2541)plotly.express.imshow
now uses data frame index and columns names and values to populate axis parameters by default (#2539)package-lock.json
with many fewer security warnings (#2636)v4.8.2
Compare Source
Updated
add_traces()
now accepts bareint
-like values forrows
/cols
as well as lists thereof (#2546), with thanks to @MCBoarder289 for the contribution!Fixed
row
/col
now acceptint
-like values, not strictlyint
values (#2451), with thanks to @MCBoarder289 for the contribution!px.sunburst
andpx.treemap
withpath
input (#2524)hover_data
argument ofpx
functions, when the column name is changed with labels andhover_data
is a dictionary setting up a specific format for the hover data (#2544).trendline
argument more robust and made it work with datetimex
values (#2554)px.sunburst
andpx.treemap
: when thecolor
andvalues
arguments correspond to the same column, a different aggregation function has to be used for the two arguments (#2591)range_(x|y)
should not impact the unlinked range of marginal subplots (#2600)px.line
now setsline_group=<variable>
in wide mode by default (#2599)v4.8.1
Compare Source
Fixed
plotly.colors
andplotly.express.colors
v4.8.0
Compare Source
Added
plotly
now provides a Plotly Express-backed Pandas-compatible plotting backend, which can be activated viapandas.options.plotting.backend = "plotly"
. Note that it is not intended to implement every Pandas plotting function, nor is it intended to replicate the behavioConfiguration
📅 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 has been generated by Mend Renovate. View repository job log here.