Skip to content

Commit c4068d1

Browse files
authored
assign Figure object to a variable
1 parent 30f5523 commit c4068d1

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
))
@@ -88,7 +88,7 @@ For more formatting types, see: https://github.com/d3/d3-format/blob/master/READ
8888
```python
8989
import plotly.graph_objects as go
9090

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

0 commit comments

Comments
 (0)