Skip to content

Commit 7813350

Browse files
authored
Update README.md
1 parent a8d2667 commit 7813350

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Diff for: README.md

+21
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# plotly.py
22

3+
## Quickstart
4+
5+
`pip install plotly`
6+
7+
Inside [Jupyter notebook](https://jupyter.org/install):
8+
```
9+
import plotly.graph_objs as go
10+
fig = go.FigureWidget()
11+
# Display an empty figure
12+
fig
13+
14+
# Add a scatter chart
15+
fig.add_scatter(y=[2, 1, 4, 3])
16+
# Add a bar chart
17+
fig.add_bar(y=[1, 4, 3, 2])
18+
# Add a title
19+
fig.layout.title = 'Hello FigureWidget'
20+
```
21+
22+
See the [Python documentation](https://plot.ly/python/) for more examples.
23+
324
## Overview
425
[plotly.py](https://plot.ly/d3-js-for-python-and-pandas-charts/) is an interactive, browser-based graphing library for Python :sparkles:
526

0 commit comments

Comments
 (0)