Skip to content

Commit cda3d67

Browse files
committed
Use magic underscore notation
1 parent 22d394f commit cda3d67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notebooks/creating-updating-figures.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ Graph object figures support an `update_layout` method that may be used to updat
252252
```python
253253
import plotly.graph_objects as go
254254
fig = go.Figure(data=go.Bar(x=[1, 2, 3], y=[1, 3, 2]))
255-
fig.update_layout(title={"text": "A Bar Chart",
256-
"font": {"size": 30}})
255+
fig.update_layout(title_text="A Bar Chart",
256+
title_font_size=30)
257257
fig.show()
258258
```
259259

0 commit comments

Comments
 (0)