Skip to content

Commit 095f749

Browse files
Update README.md
1 parent 83d67d6 commit 095f749

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

Diff for: README.md

+8-14
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,12 @@
3030

3131
Inside [Jupyter notebook](https://jupyter.org/install):
3232
```python
33-
import plotly.graph_objs as go
34-
fig = go.FigureWidget()
35-
# Display an empty figure
36-
fig
37-
```
38-
```python
39-
# Add a scatter chart
40-
fig.add_scatter(y=[2, 1, 4, 3])
41-
# Add a bar chart
42-
fig.add_bar(y=[1, 4, 3, 2])
43-
# Add a title
44-
fig.layout.title = 'Hello FigureWidget'
33+
import plotly.graph_objects as go
34+
fig = go.Figure()
35+
fig.add_trace(go.Scatter(y=[2, 1, 4, 3]))
36+
fig.add_trace(go.Bar(y=[1, 4, 3, 2]))
37+
fig.update_layout(title = 'Hello Figure')
38+
fig.show()
4539
```
4640

4741
See the [Python documentation](https://plot.ly/python/) for more examples.
@@ -53,9 +47,9 @@ Read about what's new in [plotly.py v4](https://medium.com/plotly/plotly-py-4-0-
5347

5448
Built on top of [plotly.js](https://github.com/plotly/plotly.js), `plotly.py` is a high-level, declarative charting library. plotly.js ships with over 30 chart types, including scientific charts, 3D graphs, statistical charts, SVG maps, financial charts, and more.
5549

56-
`plotly.py` is [MIT Licensed](packages/python/chart-studio/LICENSE.txt). Plotly graphs can be viewed in Jupyter notebooks, standalone HTML files, or hosted online on [plot.ly](https://plot.ly).
50+
`plotly.py` is [MIT Licensed](packages/python/chart-studio/LICENSE.txt). Plotly graphs can be viewed in Jupyter notebooks, standalone HTML files, or hosted online using [Chart Studio Cloud](https://chart-studio.plot.ly/feed/).
5751

58-
[Contact us](https://plot.ly/products/consulting-and-oem/) for Plotly.js consulting, dashboard development, application integration, and feature additions. Sharing your graphs online or in dashboards? Consider a [plot.ly subscription](https://plot.ly/products/cloud).
52+
[Contact us](https://plot.ly/products/consulting-and-oem/) for consulting, dashboard development, application integration, and feature additions.
5953

6054
<p align="center">
6155
<a href="https://plot.ly/python" target="_blank">

0 commit comments

Comments
 (0)