Skip to content

Commit d32d856

Browse files
committed
remove deprecated Figure Factory functions
1 parent 50bb20b commit d32d856

15 files changed

Lines changed: 6 additions & 7054 deletions

plotly/figure_factory/README.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ The inside of the `__init__.py` looks like:
6868
# Require that numpy exists for figure_factory
6969
import numpy
7070
71-
from plotly.figure_factory._2d_density import create_2d_density
72-
from plotly.figure_factory._annotated_heatmap import create_annotated_heatmap
73-
from plotly.figure_factory._candlestick import create_candlestick
71+
from plotly.figure_factory._dendrogram import create_dendrogram
72+
from plotly.figure_factory._quiver import create_quiver
73+
from plotly.figure_factory._streamline import create_streamline
7474
...
7575
```
7676

@@ -166,17 +166,10 @@ Go check out your newly pushed branch at https://github.com/plotly/plotly.py. If
166166
### Table of Current Figure Factories
167167
| Name | Documentation | In GitHub |
168168
| ----------------- | ----------------------------------------- | ------------- |
169-
| 2D Density | https://plot.ly/python/density-plots/ |https://github.com/plotly/plotly.py/blob/master/plotly/figure_factory/_2d_density.py|
170-
| Annotated Heatmap | https://plot.ly/python/annotated_heatmap/ |https://github.com/plotly/plotly.py/blob/master/plotly/figure_factory/_annotated_heatmap.py|
171-
| Candlestick | https://plot.ly/python/candlestick-charts/|https://github.com/plotly/plotly.py/blob/master/plotly/figure_factory/_candlestick.py|
172169
| Dendrogram | https://plot.ly/python/dendrogram/ |https://github.com/plotly/plotly.py/blob/master/plotly/figure_factory/_dendrogram.py|
173-
| Distplot | https://plot.ly/python/distplot/ |https://github.com/plotly/plotly.py/blob/master/plotly/figure_factory/_distplot.py|
174-
| Facet Grid | https://plot.ly/python/facet-plots/ |https://github.com/plotly/plotly.py/blob/master/plotly/figure_factory/_facet_grid.py|
175-
| Gantt | https://plot.ly/python/gantt/ |https://github.com/plotly/plotly.py/blob/master/plotly/figure_factory/_gantt.py|
176-
| Ohlc | https://plot.ly/python/ohlc-charts/ |https://github.com/plotly/plotly.py/blob/master/plotly/figure_factory/_ohlc.py|
170+
| Hexbin Map | https://plot.ly/python/hexbin-mapbox/ |https://github.com/plotly/plotly.py/blob/master/plotly/figure_factory/_hexbin_map.py|
177171
| Quiver | https://plot.ly/python/quiver-plots/ |https://github.com/plotly/plotly.py/blob/master/plotly/figure_factory/_quiver.py|
178-
| Scatterplot Matrix| https://plot.ly/python/scatterplot-matrix/|https://github.com/plotly/plotly.py/blob/master/plotly/figure_factory/_scatterplot.py|
179172
| Streamline | https://plot.ly/python/streamline-plots/ |https://github.com/plotly/plotly.py/blob/master/plotly/figure_factory/_streamline.py|
180173
| Table | https://plot.ly/python/table/ |https://github.com/plotly/plotly.py/blob/master/plotly/figure_factory/_table.py|
174+
| Ternary Contour | https://plot.ly/python/ternary-contour/ |https://github.com/plotly/plotly.py/blob/master/plotly/figure_factory/_ternary_contour.py|
181175
| Trisurf | https://plot.ly/python/trisurf/ |https://github.com/plotly/plotly.py/blob/master/plotly/figure_factory/_trisurf.py|
182-
| Violin | https://plot.ly/python/violin-plot/ |https://github.com/plotly/plotly.py/blob/master/plotly/figure_factory/_violin.py|

plotly/figure_factory/_2d_density.py

Lines changed: 0 additions & 155 deletions
This file was deleted.

plotly/figure_factory/__init__.py

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,19 @@
1111
)
1212

1313

14-
from plotly.figure_factory._2d_density import create_2d_density
15-
from plotly.figure_factory._annotated_heatmap import create_annotated_heatmap
16-
from plotly.figure_factory._bullet import create_bullet
17-
from plotly.figure_factory._candlestick import create_candlestick
1814
from plotly.figure_factory._dendrogram import create_dendrogram
19-
from plotly.figure_factory._distplot import create_distplot
20-
from plotly.figure_factory._facet_grid import create_facet_grid
21-
from plotly.figure_factory._gantt import create_gantt
22-
from plotly.figure_factory._ohlc import create_ohlc
2315
from plotly.figure_factory._quiver import create_quiver
24-
from plotly.figure_factory._scatterplot import create_scatterplotmatrix
2516
from plotly.figure_factory._streamline import create_streamline
2617
from plotly.figure_factory._table import create_table
2718
from plotly.figure_factory._trisurf import create_trisurf
28-
from plotly.figure_factory._violin import create_violin
2919

3020
if optional_imports.get_module("pandas") is not None:
31-
from plotly.figure_factory._county_choropleth import create_choropleth
32-
from plotly.figure_factory._hexbin_map import (
33-
create_hexbin_map,
34-
create_hexbin_mapbox,
35-
)
21+
from plotly.figure_factory._hexbin_map import create_hexbin_map
3622
else:
3723

38-
def create_choropleth(*args, **kwargs):
39-
raise ImportError("Please install pandas to use `create_choropleth`")
40-
4124
def create_hexbin_map(*args, **kwargs):
4225
raise ImportError("Please install pandas to use `create_hexbin_map`")
4326

44-
def create_hexbin_mapbox(*args, **kwargs):
45-
raise ImportError("Please install pandas to use `create_hexbin_mapbox`")
46-
4727

4828
if optional_imports.get_module("skimage") is not None:
4929
from plotly.figure_factory._ternary_contour import create_ternary_contour
@@ -54,23 +34,11 @@ def create_ternary_contour(*args, **kwargs):
5434

5535

5636
__all__ = [
57-
"create_2d_density",
58-
"create_annotated_heatmap",
59-
"create_bullet",
60-
"create_candlestick",
61-
"create_choropleth",
6237
"create_dendrogram",
63-
"create_distplot",
64-
"create_facet_grid",
65-
"create_gantt",
6638
"create_hexbin_map",
67-
"create_hexbin_mapbox",
68-
"create_ohlc",
6939
"create_quiver",
70-
"create_scatterplotmatrix",
7140
"create_streamline",
7241
"create_table",
7342
"create_ternary_contour",
7443
"create_trisurf",
75-
"create_violin",
7644
]

0 commit comments

Comments
 (0)