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
->==4.14.3
Release Notes
plotly/plotly.py (plotly)
v4.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 behaviour of every argument, although per the changes below,x
andy
should behave similarly. (#2336)plotly.express.data
:stocks
,experiment
,medals_wide
andmedals_long
. (#2336)go.Figure
andgo.FigureWidget
now have a_repr_html_
and a_repr_mimebundle_
method, which are standard hooks for integration in systems based on IPython. In particular, with_repr_html_
plotly figures can now be used within sphinx-gallery without any scraper. These additions should not change anything to the way plotly figures are displayed in notebook environments, since the_ipython_display_
method (already present in earlier versions) takes precedence over the new methods.Updated
x
,y
,orientation
,histfunc
,violinmode
,boxmode
andstripmode
arguments for 2d-cartesian functions in Plotly Express (i.e.scatter
,line
,area
,bar
,histogram
,violin
,box
,strip
,funnel
,density_heatmap
anddensity_contour
) has been refined (#2336):x
ory
is missing, it is inferred to be the index ofdata_frame
ifdata_frame
provided, otherwise a stable index of integers starting at 0. In the case ofpx.bar
, if the provided value is not continuous, the missing value is treated as a column of 1s named "count", so as to behave more likepx.histogram
and to avoid sizing the resulting bars differently based on their position in the column. Previously, missing values defaulted to integers starting at 0 per trace which made it potentially inconsistent or misleading.x
(y
) is missing,orientation
now defaults tov
(h
). Previously it always defaulted tov
but this is not considered a breaking change, as the cases in which it now defaults toh
caused unreadable output if set tov
.x
andy
are provided and one of them does not contain continuous values,orientation
defaults to the value perpendicular to that axis. Previously it always defaulted tov
but this is not considered a breaking change, as the cases in which it now defaults toh
caused unreadable output if set tov
.x
ory
(but not both) may now be provided as a list of column references intodata_frame
or columns of data, in which case the imputed data frame will be treated as "wide" data andmelt()
ed internally before applying the usual mapping rules, with function-specific defaults.x
nory
is provided butdata_frame
is, the data frame will be treated as "wide" with defaults depending on the value oforientation
(andorientation
has accordingly been added toscatter
,line
,density_heatmap
, anddensity_contour
for this purpose). Previously this would have resulted in an empty figure.x
andy
are provided tohistogram
, and ifx
,y
andz
are provided todensity_heatmap
ordensity_contour
, thenhistfunc
now defaults tosum
so as to avoid ignoring the provided data, and to causehistogram
andbar
to behave more similarly.violinmode
,boxmode
andstripmode
now default tooverlay
ifx
(y
) in inv
(h
) orientation is also mapped tocolor
, to avoid strange spacing issues with the previous default ofgroup
in all cases.color_discrete_map
,symbol_map
andline_dash_map
now accept the string"identity"
which causes the corresponding input data to be used as-is rather than mapped intocolor_discrete_sequence
,symbol_sequence
orline_dash_sequence
, respectively. (#2336)px.Constant
orpx.Range
objects in the place of column references so as to express constant or increasing integer values. (#2336)v4.7.1
Compare Source
Fixed
AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget'
exception onfrom plotly.graph_objs import *
whenipywidgets
is not installed. Error also occurred when importingplotly.figure_factor
. It is now possible to importplotly.graph_objs.FigureWidget
whenipywidgets
is not installed, and an informativeImportError
exception will be raised in theFigureWidget
constructor (#2443, #1111).TypeError: unhashable type: 'Template'
duringFigure
construction whenplotly.io.templates.default
is set to aTemplate
object rather than a string.v4.7.0
Compare Source
Updated
Added
hover_data
parameter ofpx
functions can now be a dictionary. This makes it possible to skip hover information for some arguments or to change the formatting of hover information #2377.master
branch of Plotly.js, which makes for faster QA and development cycles #2349. Thanks @zouhairm for this Pull Request!Fixed
Performance
This version includes several performance improvements (#2368, #2403).
figure.layout.xaxis
) are no longer created eagerly during graph object construction. Instead, they are created lazily the first time the property is accessed.v4.6.0
Compare Source
Updated
layout.xaxis.rangebreaks
layout.hovermode="x unified"
), in which the hover box shows the information for all traces at a given x (or y) positionnode.customdata
andlink.customdata
to sankey tracesAdded
px.imshow
now acceptsxarray
inputs, with metadata being used for axis labels, hover and colorbar #2166Fixed
opacity
inpx.pie
,px.funnel_area
,px.density_mapbox
,px.funnel
#2317, with thanks to @tvaucher for the contribution!v4.5.4
Compare Source
Updated
documents the full API #2243
Thanks to @SylwiaOliwia2 for all these great
examples!
Fixed
v4.5.3
Compare Source
Updated
nose
testing framework #2217Fixed
v4.5.2
Compare Source
Fixed
@types/plotly.js
#2223v4.5.1
Compare Source
Updated
Fixed
update_annotations
,update_shapes
andupdate_layout_images
now no longer require thepatch
argument, as per the docstring #2167px.defaults
no longer accepts arbitrary keys #2168pandas
is not installed #2125path
argument ofpx.sunburst
/px.treemap
and add values ofcolor
column in hoverlabel forpx.sunburst
/px.treemap
#2133v4.5.0
Compare Source
Updated
legend.title
attribute and so now has shorter tracename
s #2051px.parallel_categories
to determine which columns of the data frame to draw has been changed and made more configurable with thedimensions_max_cardinality
argument #2102simple_white
colorbar styling has been streamlined #2110jupyterlab-plotly
andplotlywidget
JupyterLab extensions should now share code when installed together, resulting in smaller JupyterLab vendor bundle sizes #2103Fixed
category_orders
are now respected independent of the contents of the data set #2084go.Scattergl
symbols now accept numeric specification #1928px.scatter
trendline coefficients are now more readable #1984Added
px.sunburst
andpx.treemap
now accept apath
argument for passingcolumns of a rectangular dataframe to build the charts #2006
px.choropleth
now accepts a user-suppliedgeojson
attribute #2057px.choropleth
andpx.choropleth_mapbox
now acceptfeatureidkey
to specify the GeoJSON field to use to matchlocations
#2057px.choropleth
andpx.choropleth_mapbox
now accept discrete color #2057px.bar_polar
now accepts continuous color #2017layout.uniformtext
attribute allows for automatic standardization of font sizes across bar-like and hierarchical traces. See theplotly.js CHANGELOG
for more information
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.
This PR has been generated by Mend Renovate. View repository job log here.