@@ -217,7 +217,7 @@ def create_quiver(x, y, u, v, scale=.1, arrow_scale=.3,
217
217
Example 1: Trivial Quiver
218
218
```
219
219
import plotly.plotly as py
220
- from plotly.tools import FigureFactory as FF
220
+ from plotly.graph_objs.figure_factory import FigureFactory as FF
221
221
222
222
import math
223
223
@@ -232,7 +232,7 @@ def create_quiver(x, y, u, v, scale=.1, arrow_scale=.3,
232
232
Example 2: Quiver plot using meshgrid
233
233
```
234
234
import plotly.plotly as py
235
- from plotly.tools import FigureFactory as FF
235
+ from plotly.graph_objs.figure_factory import FigureFactory as FF
236
236
237
237
import numpy as np
238
238
import math
@@ -252,7 +252,7 @@ def create_quiver(x, y, u, v, scale=.1, arrow_scale=.3,
252
252
Example 3: Styling the quiver plot
253
253
```
254
254
import plotly.plotly as py
255
- from plotly.tools import FigureFactory as FF
255
+ from plotly.graph_objs.figure_factory import FigureFactory as FF
256
256
import numpy as np
257
257
import math
258
258
@@ -319,7 +319,7 @@ def create_streamline(x, y, u, v,
319
319
Example 1: Plot simple streamline and increase arrow size
320
320
```
321
321
import plotly.plotly as py
322
- from plotly.tools import FigureFactory as FF
322
+ from plotly.graph_objs.figure_factory import FigureFactory as FF
323
323
324
324
import numpy as np
325
325
import math
@@ -344,7 +344,7 @@ def create_streamline(x, y, u, v,
344
344
Example 2: from nbviewer.ipython.org/github/barbagroup/AeroPython
345
345
```
346
346
import plotly.plotly as py
347
- from plotly.tools import FigureFactory as FF
347
+ from plotly.graph_objs.figure_factory import FigureFactory as FF
348
348
349
349
import numpy as np
350
350
import math
@@ -504,7 +504,7 @@ def create_ohlc(open, high, low, close,
504
504
Example 1: Simple OHLC chart from a Pandas DataFrame
505
505
```
506
506
import plotly.plotly as py
507
- from plotly.tools import FigureFactory as FF
507
+ from plotly.graph_objs.figure_factory import FigureFactory as FF
508
508
from datetime import datetime
509
509
510
510
import pandas.io.data as web
@@ -520,7 +520,7 @@ def create_ohlc(open, high, low, close,
520
520
Example 2: Add text and annotations to the OHLC chart
521
521
```
522
522
import plotly.plotly as py
523
- from plotly.tools import FigureFactory as FF
523
+ from plotly.graph_objs.figure_factory import FigureFactory as FF
524
524
from datetime import datetime
525
525
526
526
import pandas.io.data as web
@@ -553,7 +553,7 @@ def create_ohlc(open, high, low, close,
553
553
Example 3: Customize the OHLC colors
554
554
```
555
555
import plotly.plotly as py
556
- from plotly.tools import FigureFactory as FF
556
+ from plotly.graph_objs.figure_factory import FigureFactory as FF
557
557
from plotly.graph_objs import Line, Marker
558
558
from datetime import datetime
559
559
@@ -586,7 +586,7 @@ def create_ohlc(open, high, low, close,
586
586
Example 4: OHLC chart with datetime objects
587
587
```
588
588
import plotly.plotly as py
589
- from plotly.tools import FigureFactory as FF
589
+ from plotly.graph_objs.figure_factory import FigureFactory as FF
590
590
591
591
from datetime import datetime
592
592
@@ -749,7 +749,7 @@ def create_candlestick(open, high, low, close,
749
749
Example 1: Simple candlestick chart from a Pandas DataFrame
750
750
```
751
751
import plotly.plotly as py
752
- from plotly.tools import FigureFactory as FF
752
+ from plotly.graph_objs.figure_factory import FigureFactory as FF
753
753
from datetime import datetime
754
754
755
755
import pandas.io.data as web
@@ -787,7 +787,7 @@ def create_candlestick(open, high, low, close,
787
787
Example 3: Customize the candlestick colors
788
788
```
789
789
import plotly.plotly as py
790
- from plotly.tools import FigureFactory as FF
790
+ from plotly.graph_objs.figure_factory import FigureFactory as FF
791
791
from plotly.graph_objs import Line, Marker
792
792
from datetime import datetime
793
793
@@ -824,7 +824,7 @@ def create_candlestick(open, high, low, close,
824
824
Example 4: Candlestick chart with datetime objects
825
825
```
826
826
import plotly.plotly as py
827
- from plotly.tools import FigureFactory as FF
827
+ from plotly.graph_objs.figure_factory import FigureFactory as FF
828
828
829
829
from datetime import datetime
830
830
@@ -899,7 +899,7 @@ def create_distplot(hist_data, group_labels,
899
899
Example 1: Simple distplot of 1 data set
900
900
```
901
901
import plotly.plotly as py
902
- from plotly.tools import FigureFactory as FF
902
+ from plotly.graph_objs.figure_factory import FigureFactory as FF
903
903
904
904
hist_data = [[1.1, 1.1, 2.5, 3.0, 3.5,
905
905
3.5, 4.1, 4.4, 4.5, 4.5,
@@ -916,7 +916,7 @@ def create_distplot(hist_data, group_labels,
916
916
Example 2: Two data sets and added rug text
917
917
```
918
918
import plotly.plotly as py
919
- from plotly.tools import FigureFactory as FF
919
+ from plotly.graph_objs.figure_factory import FigureFactory as FF
920
920
921
921
# Add histogram data
922
922
hist1_x = [0.8, 1.2, 0.2, 0.6, 1.6,
@@ -957,7 +957,7 @@ def create_distplot(hist_data, group_labels,
957
957
Example 3: Plot with normal curve and hide rug plot
958
958
```
959
959
import plotly.plotly as py
960
- from plotly.tools import FigureFactory as FF
960
+ from plotly.graph_objs.figure_factory import FigureFactory as FF
961
961
import numpy as np
962
962
963
963
x1 = np.random.randn(190)
@@ -977,7 +977,7 @@ def create_distplot(hist_data, group_labels,
977
977
Example 4: Distplot with Pandas
978
978
```
979
979
import plotly.plotly as py
980
- from plotly.tools import FigureFactory as FF
980
+ from plotly.graph_objs.figure_factory import FigureFactory as FF
981
981
import numpy as np
982
982
import pandas as pd
983
983
@@ -1067,7 +1067,7 @@ def create_dendrogram(X, orientation="bottom", labels=None,
1067
1067
import numpy as np
1068
1068
1069
1069
import plotly.plotly as py
1070
- from plotly.tools import FigureFactory as FF
1070
+ from plotly.graph_objs.figure_factory import FigureFactory as FF
1071
1071
1072
1072
X = np.random.rand(5,5)
1073
1073
dendro = FF.create_dendrogram(X)
0 commit comments