Skip to content
Snippets Groups Projects
Commit 91d9f428 authored by Jon Mease's avatar Jon Mease
Browse files

Added Hello World FigureWidget example

parent 909d2145
Branches master
No related tags found
No related merge requests found
%% Cell type:code id: tags:
``` python
import plotly.graph_objs as go
```
%% Cell type:code id: tags:
``` python
fig = go.FigureWidget()
fig
```
%% Output
%% Cell type:code id: tags:
``` python
fig.add_scatter(y=[2, 1, 4, 3])
```
%% Output
Scatter({
'uid': 'a180e8c2-a0d9-11e8-93e4-645aede86e5b', 'y': [2, 1, 4, 3]
})
%% Cell type:code id: tags:
``` python
fig.add_bar(y=[1, 4, 3, 2])
```
%% Output
Bar({
'uid': 'a194600a-a0d9-11e8-854b-645aede86e5b', 'y': [1, 4, 3, 2]
})
%% Cell type:code id: tags:
``` python
fig.layout.title = 'Hello FigureWidget'
```
%% Cell type:code id: tags:
``` python
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment