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

@emilykl emilykl 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:

from plotly.figure_factory import create_2d_density  # try the name of any removed function

to ensure that an error is raised.

Guidelines

@emilykl emilykl changed the title Remove deprecated ff Remove deprecated Figure Factory functions Jun 18, 2026

@camdecoster camdecoster 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 thread CHANGELOG.md Outdated
Co-authored-by: Cameron DeCoster <cameron.decoster@gmail.com>
@emilykl emilykl merged commit 09dc038 into v7.0 Jun 22, 2026
20 of 21 checks passed
@emilykl emilykl deleted the remove-deprecated-ff branch June 22, 2026 22:58
Sign up for free to 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