Skip to content

Remove deprecated Figure Factory functions - #5627

Merged
emilykl merged 9 commits into
v7.0from
remove-deprecated-ff
Jun 22, 2026
Merged

Remove deprecated Figure Factory functions#5627
emilykl merged 9 commits into
v7.0from
remove-deprecated-ff

Conversation

@emilykl

@emilyklemilykl commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Partially addresses #5622

Description of change

Remove the following deprecated Figure Factory functions. All of the removed functions have alternatives in figure_factory, graph_objects, or express which can be used instead.

  • create_2d_density — use plotly.express.density_heatmap instead
  • create_annotated_heatmap — use plotly.express.imshow instead
  • create_bullet — use plotly.graph_objects.Indicator instead
  • create_candlestick — use plotly.graph_objects.Candlestick instead
  • create_choropleth — use plotly.express.choropleth with custom GeoJSON instead
  • create_distplot — use plotly.express functions like plotly.express.histogram instead
  • create_facet_grid — use plotly.express functions with facet_row and facet_col arguments instead
  • create_gantt — use plotly.express.timeline instead
  • create_hexbin_mapbox — use create_hexbin_map instead
  • create_ohlc — use plotly.graph_objects.Ohlc instead
  • create_scatterplotmatrix — use plotly.graph_objects.Splom instead
  • create_violin — use plotly.graph_objects.Violin instead

Testing strategy

Ensure test suite is passing in CI.

Can also install the package from this branch and try executing:

fromplotly.figure_factoryimportcreate_2d_density# try the name of any removed function

to ensure that an error is raised.

Guidelines

@emilyklemilykl changed the title Remove deprecated ffRemove deprecated Figure Factory functionsJun 18, 2026

@camdecostercamdecoster left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I've got one really nitpicky suggestion.

Comment threadCHANGELOG.md Outdated
Co-authored-by: Cameron DeCoster <cameron.decoster@gmail.com>
Sign up for freeto 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.

2 participants

@emilykl@camdecoster