Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
assign Figure object to a variable
  • Loading branch information
Pascalco authored Sep 11, 2020
commit c4068d1ad859337d454f6c1edabfb4b487b7a423
4 changes: 2 additions & 2 deletions doc/python/tick-formatting.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ If `"array"`, the placement of the ticks is set via `tickvals` and the tick text
```python
import plotly.graph_objects as go

go.Figure(go.Scatter(
fig = go.Figure(go.Scatter(
x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
y = [28.8, 28.5, 37, 56.8, 69.7, 79.7, 78.5, 77.8, 74.1, 62.6, 45.3, 39.9]
))
Expand All @@ -88,7 +88,7 @@ For more formatting types, see: https://github.com/d3/d3-format/blob/master/READ
```python
import plotly.graph_objects as go

go.Figure(go.Scatter(
fig = go.Figure(go.Scatter(
x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
y = [28.8, 28.5, 37, 56.8, 69.7, 79.7, 78.5, 77.8, 74.1, 62.6, 45.3, 39.9]
))
Expand Down