Skip to content

Commit 73291c0

Browse files
Merge pull request #2766 from Pascalco/patch-1
assign Figure object to a variable
2 parents 388d9e4 + c4068d1 commit 73291c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: doc/python/tick-formatting.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ If `"array"`, the placement of the ticks is set via `tickvals` and the tick text
6464
```python
6565
import plotly.graph_objects as go
6666

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

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

0 commit comments

Comments
 (0)