Skip to content

Commit f6a6ce6

Browse files
committed
More consistent code whitespace
1 parent 81c774b commit f6a6ce6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

notebooks/templates.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ All plotly express functions accept a `template` argument that can be set to the
4848

4949
```python
5050
import plotly.express as px
51-
gapminder = px.data.gapminder()
5251

52+
gapminder = px.data.gapminder()
5353
gapminder_2007 = gapminder.query("year==2007")
5454

5555
for template in ["plotly", "plotly_white", "plotly_dark", "ggplot2", "seaborn", "none"]:
@@ -164,6 +164,7 @@ symbol_template.data.scatter = [
164164
go.Scatter(marker=dict(symbol="square", size=10)),
165165
go.Scatter(marker=dict(symbol="circle", size=10)),
166166
]
167+
167168
fig = go.Figure()
168169
fig.update_layout(template=symbol_template)
169170
fig.add_scatter(y=[1, 2, 3], mode="markers", name="first")
@@ -188,6 +189,7 @@ import plotly.graph_objects as go
188189

189190
annotation_template = go.layout.Template()
190191
annotation_template.layout.annotationdefaults = go.layout.Annotation(font=dict(color="crimson"))
192+
191193
fig = go.Figure()
192194
fig.update_layout(
193195
template=annotation_template,
@@ -388,6 +390,7 @@ pio.templates.default = "plotly+draft"
388390

389391
gapminder = px.data.gapminder()
390392
gapminder_2007 = gapminder.query("year==2007")
393+
391394
fig = px.scatter(gapminder_2007,
392395
x="gdpPercap", y="lifeExp", size="pop", color="continent",
393396
log_x=True, size_max=60,

0 commit comments

Comments
 (0)