Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 136ee59

Browse filesBrowse files
committed
typo in enable_mpl_offline example and update CHANGELOG
1 parent 7f6298a commit 136ee59
Copy full SHA for 136ee59

File tree

2 files changed

+54
-4
lines changed
Filter options

2 files changed

+54
-4
lines changed

‎CHANGELOG.md

Copy file name to clipboardExpand all lines: CHANGELOG.md
+53-3Lines changed: 53 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,59 @@ This project adheres to [Semantic Versioning](http://semver.org/).
44

55
## [Unreleased]
66

7-
## [1.9.4] - 2015-01-11
7+
## [1.9.5] - 2016-01-11
88
### 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:
1060
```
1161
from plotly.offline import plot
1262
from plotly.graph_objs import Scatter
@@ -31,7 +81,7 @@ This will upload the graph to your online plotly account.
3181

3282
## [1.9.3] - 2015-12-08
3383
### 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.
3585

3686
## [1.9.2] - 2015-11-30
3787
**Bug Fix**: Previously, the "Export to plot.ly" link on

‎plotly/offline/offline.py

Copy file name to clipboardExpand all lines: plotly/offline/offline.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def enable_mpl_offline(resize=False, strip_style=False,
449449
450450
Example:
451451
```
452-
from plotly.offline import init_notebook_mode, plotly_takeover
452+
from plotly.offline import init_notebook_mode, enable_mpl_offline
453453
import matplotlib.pyplot as plt
454454
455455
init_notebook_mode()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.