Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaskruchten committed Dec 21, 2021
1 parent 26fa4e0 commit 7aaaaff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Inside [Jupyter](https://jupyter.org/install) (installable with `pip install "ju

```python
import plotly.express as px
fig = px.bar(x=["a", "b", "c"], y=[1,2,3])
fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2])
fig.show()
```

Expand Down
10 changes: 5 additions & 5 deletions doc/python/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ This package contains everything you need to write figures to standalone HTML fi

```python
import plotly.express as px
fig = px.bar(x=["a", "b", "c"], y=[1,2,3])
fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2])
fig.write_html('first_figure.html', auto_open=True)
```

Expand Down Expand Up @@ -129,15 +129,15 @@ and display plotly figures inline using the `plotly_mimetype` renderer...

```python
import plotly.express as px
fig = px.bar(x=["a", "b", "c"], y=[1,2,3])
fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2])
fig.show()
```

or using `FigureWidget` objects.

```python
import plotly.express as px
fig = px.bar(x=["a", "b", "c"], y=[1,2,3])
fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2])

import plotly.graph_objects as go
fig_widget = go.FigureWidget(fig)
Expand Down Expand Up @@ -184,15 +184,15 @@ and display plotly figures inline using the notebook renderer...

```python
import plotly.express as px
fig = px.bar(x=["a", "b", "c"], y=[1,2,3])
fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2])
fig.show()
```

or using `FigureWidget` objects.

```python
import plotly.express as px
fig = px.bar(x=["a", "b", "c"], y=[1,2,3])
fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2])

import plotly.graph_objects as go
fig_widget = go.FigureWidget(fig)
Expand Down

0 comments on commit 7aaaaff

Please sign in to comment.