Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 889ec3f

Browse files
committed
Chris' comments
1 parent 924567c commit 889ec3f

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

CHANGELOG.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,26 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1111
- Please note that these configuration options are for offline plots ONLY. For configuration options when embedding online plots please see our [embed tutorial](http://help.plot.ly/embed-graphs-in-websites/#step-8-customize-the-iframe).
1212
- `colors.py` file which contains functions for manipulating and validating colors and arrays of colors
1313
- 'scale' param in `FF.create_trisurf` which now can set the interpolation on the colorscales
14-
- animations now work in offline mode. By running `plotly.offline.plot()` and `plotly.offline.iplot()` with a a `fig` with `frames`, the resulting plt will cycle through the figures defined in `frames` either in the browser or in an ipython notebook respectively.
14+
- animations now work in offline mode. By running `plotly.offline.plot()` and `plotly.offline.iplot()` with a `fig` with `frames`, the resulting plot will cycle through the figures defined in `frames` either in the browser or in an ipython notebook respectively. Here's an example
15+
```
16+
import IPython.display
17+
from IPython.display import display, HTML
18+
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
19+
init_notebook_mode(connected=True)
20+
21+
figure_or_data = {'data': [{'x': [1, 2], 'y': [0, 1]}],
22+
'layout': {'xaxis': {'range': [0, 3], 'autorange': False},
23+
'yaxis': {'range': [0, 20], 'autorange': False},
24+
'title': 'First Title'},
25+
'frames': [{'data': [{'x': [1, 2], 'y': [5, 7]}]},
26+
{'data': [{'x': [-1, 3], 'y': [3, 9]}]},
27+
{'data': [{'x': [2, 2.6], 'y': [7, 5]}]},
28+
{'data': [{'x': [1.5, 3], 'y': [7.5, 4]}]},
29+
{'data': [{'x': [1, 2], 'y': [0, 1]}],
30+
'layout': {'title': 'End Title'}}]}
31+
iplot(figure_or_data)
32+
```
33+
More examples can be found at https://plot.ly/python/animations/.
1534
- Upcoming animations in online mode: use `plotly.plotly.create_animations()` and `plotly.plotly.icreate_animations()` which animate a figure with the `frames` argument.
1635

1736
### Fixed

0 commit comments

Comments
 (0)