You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+53-3
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,59 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
4
5
5
## [Unreleased]
6
6
7
-
## [1.9.4] - 2015-01-11
7
+
## [1.9.5] - 2016-01-17
8
8
### Added
9
-
- Offline plotting now works outside of the IPython/Juypter notebook. Here's an example:
9
+
- Offline matplotlib to Plotly figure conversion. Use `offline.plot_mpl` to convert and plot a matplotlib figure as a Plotly figure independently of IPython/Jupyter notebooks or use `offline.iplot_mpl` to convert and plot inside of IPython/Jupyter notebooks. Additionally, use `offline.enable_mpl_offline` to convert and plot all matplotlib figures as plotly figures inside an IPython/Jupyter notebook. See examples below:
10
+
11
+
An example independent of IPython/Jupyter notebooks:
12
+
```
13
+
from plotly.offline import init_notebook_mode, plot_mpl
14
+
import matplotlib.pyplot as plt
15
+
16
+
init_notebook_mode()
17
+
18
+
fig = plt.figure()
19
+
x = [10, 15, 20]
20
+
y = [100, 150, 200]
21
+
plt.plot(x, y, "o")
22
+
23
+
plot_mpl(fig)
24
+
```
25
+
26
+
An example inside of an IPython/Jupyter notebook:
27
+
```
28
+
from plotly.offline import init_notebook_mode, iplot_mpl
29
+
import matplotlib.pyplot as plt
30
+
31
+
init_notebook_mode()
32
+
33
+
fig = plt.figure()
34
+
x = [10, 15, 20]
35
+
y = [100, 150, 200]
36
+
plt.plot(x, y, "o")
37
+
38
+
iplot_mpl(fig)
39
+
```
40
+
41
+
An example of enabling all matplotlib figures to be converted to
42
+
Plotly figures inside of an IPython/Jupyter notebook:
43
+
```
44
+
from plotly.offline import init_notebook_mode, enable_mpl_offline
45
+
import matplotlib.pyplot as plt
46
+
47
+
init_notebook_mode()
48
+
enable_mpl_offline()
49
+
50
+
fig = plt.figure()
51
+
x = [10, 15, 20, 25, 30]
52
+
y = [100, 250, 200, 150, 300]
53
+
plt.plot(x, y, "o")
54
+
fig
55
+
```
56
+
57
+
## [1.9.4] - 2016-01-11
58
+
### Added
59
+
- Offline plotting now works outside of the IPython/Jupyter notebook. Here's an example:
10
60
```
11
61
from plotly.offline import plot
12
62
from plotly.graph_objs import Scatter
@@ -31,7 +81,7 @@ This will upload the graph to your online plotly account.
31
81
32
82
## [1.9.3] - 2015-12-08
33
83
### Added
34
-
- Check for `no_proxy` when determining if the streaming request should pass through a proxy in the chunked_requests submodule. Example: `no_proxy='my_stream_url'` and `http_proxy=my.proxy.ip:1234`, then `my_stream_url` will not get proxied. Previously it would.
84
+
- Check for `no_proxy` when determining if the streaming request should pass through a proxy in the chunked_requests submodule. Example: `no_proxy='my_stream_url'` and `http_proxy=my.proxy.ip:1234`, then `my_stream_url` will not get proxied. Previously it would.
35
85
36
86
## [1.9.2] - 2015-11-30
37
87
**Bug Fix**: Previously, the "Export to plot.ly" link on
0 commit comments