
The interactive graphing library for Python :sparkles:
Repo plotly/plotly.py, read from GitHub 1 min ago. plotly has not joined Take My Repo.
marginal_x/marginal_y="heatmap" in density_heatmap, drawing a single-row/column heatmap strip in the margin colored by the same z/histfunc aggregate as the main plot and sharing its color scale [#5706], with thanks to @lucasjamar for the contribution!mpl_to_plotly when the matplotlib tick positions don't follow an arithmetic progression, including custom tick labels and tick values on date axes [#5262], with thanks to @robertoffmoura for the contribution!uint8, uint16, uint32, uint64) in pandas DataFrames as categorical, which caused px.bar and other functions to pick the wrong orientation and render unexpected plots [#4291, #4344], with thanks to @Belagum for the contribution!mpl_to_plotly not setting paper_bgcolor and plot_bgcolor from the matplotlib figure and axes backgrounds, so converted figures match the source figure's background colors [#5285], with thanks to @robertoffmoura for the contribution!Figure.show() in Google Colab [#5718]fig.show() or displayed as the last expression of a code block [#5701], with thanks to @larsoner for the contribution!
legend.groupdoubleclick to set the group behavior for a legend double-click [#7997]scattergl, quiver traces [#8027]maplibre-gl to v6 to address CVE-2026-85061 [#8035]
hex_to_rgb function to raise error for invalid-length hex codes, and emit warning for hex codes containing alpha [#5729], with thanks to @dylanpulver for the contribution!hex_to_rgb parsing of 3-digit shorthand hexadecimal colors such as #FFF [#5662], with thanks to @genrichez for the contribution!px.*_map() auto-fitting behavior when zoom and center are not specified [#5686]<!doctype html> to the to_html() template to comply with modern web standards [#5693], with thanks to @mishrakushal for the contribution!histfunc/z aggregation to marginal_x/marginal_y="histogram" subplots in density_heatmap/density_contour, instead of always showing raw bin counts [#3521], with thanks to @lucasjamar for the contribution!mpl_to_plotly silently dropping matplotlib path collections in data coordinates (such as violin plots, pcolor, event plots, stack plots, fill_between, and stem plots) by rendering them as filled polygons or lines [#5702], with thanks to @robertoffmoura for the contribution!create_2d_density, create_annotated_heatmap, create_bullet, create_candlestick, create_choropleth, create_distplot, create_facet_grid, create_gantt, create_hexbin_mapbox, create_ohlc, create_scatterplotmatrix, and create_violin [#5627]engine argument from functions fig.write_image(),fig.to_image(), pio.write_image(), pio.write_images(), pio.to_image(), pio.full_figure_for_development(), and from renderer constructors [#5677]quiver trace type to visualize vector fields using arrows [#7710, #7945]scattermapbox, choroplethmapbox, densitymapbox trace types, the mapbox subplot, and the mapboxAccessToken config option [#7860]. Use the equivalent *map traces instead.
graph_objects and Plotly Express functions have also been removed in plotly.py; use the map versions insteadrgb()/rgba() strings with decimal 0–1 fractions are no longer supportedhsv() color strings are no longer supportedhsl(120, 50% 50%) are no longer supported'#ff0000aa', '#f00a', 'rgb(255 0 0)', 'rgba(255 0 0 / 0.5)', 'hsl(0 100% 50% / 0.5)', 'hsla(0, 100%, 50%, 0.5)', 'hwb(0, 0%, 0%)', lab(), lch(), oklab(), oklch(), color(), hsl(0.5turn 60% 40%), hsl(none 60% 40%)country-regex with country-iso-search to search for country names in choropleth, scattergeo traces [#7856]. Most country names are handled exactly the same; a small number of legacy entries have been removed.layout.geo.fitbounds default from false to 'locations' [#7895]. geo subplots will now auto-fit the initial view to the trace data by default.center and zoom values for scattermap and densitymap traces. The initial map view will now auto-fit to the trace data by default. Add layout.map.fitbounds attribute (default 'locations') to enable or disable auto-fitting behavior [#7884, #7913]choropleth and scattergeo traces whose geometry crosses the antimeridian [#7891]create_2d_density, create_annotated_heatmap, create_bullet, create_candlestick, create_choropleth, create_distplot, create_facet_grid, create_gantt, create_hexbin_mapbox, create_ohlc, create_scatterplotmatrix, and create_violin [#5627]engine argument from functions fig.write_image(),fig.to_image(), pio.write_image(), pio.write_images(), pio.to_image(), pio.full_figure_for_development(), and from renderer constructors [#5677]ValueError when an unsupported marginal plot type is passed to Plotly Express, instead of failing later with a cryptic 'NoneType' object has no attribute 'constructor' message [#5625], with thanks to @eugen-goebel for the contribution!quiver trace type to visualize vector fields using arrows [#7710], with thanks to @degzhaus for the contribution!scattermapbox, choroplethmapbox, densitymapbox trace types, the mapbox subplot, and the mapboxAccessToken config option [#7860]. Use the equivalent *map traces instead.
graph_objects and Plotly Express functions have also been removed in plotly.py; use the map versions insteadrgb()/rgba() strings with decimal 0–1 fractions are no longer supportedhsv() color strings are no longer supported'#ff0000aa', '#f00a', 'rgb(255 0 0)', 'rgba(255 0 0 / 0.5)', 'hsl(0 100% 50% / 0.5)', 'hsla(0, 100%, 50%, 0.5)', 'hwb(0, 0%, 0%)'country-regex with country-iso-search to search for country names in choropleth, scattergeo traces [#7856]. Most country names are handled exactly the same; a small number of legacy entries have been removed.layout.geo.fitbounds default from false to 'locations' [#7895]. geo subplots will now auto-fit the initial view to the trace data by default.center and zoom values for scattermap and densitymap traces. The initial map view will now auto-fit to the trace data by default. Add layout.map.fitbounds attribute (default 'locations') to enable or disable auto-fitting behavior [#7884, #7913], with thanks to @palmerusaf and @DhruvGarg111 for the contributions!choropleth and scattergeo traces whose geometry crosses the antimeridian [#7891]ValueError when an unsupported marginal plot type is passed to Plotly Express, instead of failing later with a cryptic 'NoneType' object has no attribute 'constructor' message [#5625], with thanks to @eugen-goebel for the contribution!sendDataToCloud modebar button to sendChartToCloud, and update to upload chart to Plotly Cloud [#7802, #7852, #7854]. NOTE: The Plotly Cloud endpoint for receiving charts is not yet functional, so this button won't complete the upload.scattergl error bars after toggling traces with mixed error bar visibility [#7773], with thanks to @JulienIcon for the contribution!fitbounds to choose a compact longitude range when point data straddles the antimeridian [#7837], with thanks to @SharadhNaidu for the contribution!Full Changelog: v6.8.0...v6.9.0
color_continuous_scale was ignored when template had autocolorscale=True [#5439], with thanks to @antonymilne for the contribution!COLAB_NOTEBOOK_ID env var to enable Colab renderer instead of testing import of google.colab [#5473], with thanks to @kevineger for the contribution!add_vline, add_hline, add_vrect, and add_hrect on datetime axes [#5508], with thanks to @mosh3eb for the contribution!js/ directory was unintentionally installed as a top-level Python package when installing plotly [#5587]default_height/default_width to the outer wrapper div produced by to_html so that responsive (percentage) dimensions inherit from a sized parent container instead of collapsing to the plotly.js 450px fallback [#5591], with thanks to @SharadhNaidu for the contribution!__eq__ method for graph_objects classes now returns NotImplemented to give the other operand an opportunity to handle the comparison [#5547], with thanks to @RazerM for the contribution!facet_row support to px.imshow for creating subplots along an additional dimension [#5445], with thanks to @FBumann for the contribution!numpy.percentile syntax to stop using deprecated alias [#5483], with thanks to @Mr-Neutr0n for the contribution!
numpy with a version less than 1.22 is no longer supported.px.histogram by skipping None label in hover template [#5535], with thanks to @tysoncung for the contribution!hoveranywhere and clickanywhere layout attributes to enable emitting hover and click events anywhere in the plot area, not just over traces [#7707]displayNotifier configuration property to set the display of notifier in the top right area of the viewport [#7730]scattergeo and choropleth traces to use both location names and abbreviations [#7731]