Skip to content

Commit 1aa14f0

Browse files
Merge pull request #169 from joelostblom/Document-simple_white-template
Document simple_white template
2 parents 5a83e13 + dbbfad2 commit 1aa14f0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: python/templates.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ From this, we can see that the default theme is `"plotly"`, and we can see the n
5050

5151

5252
#### Specifying themes in Plotly Express
53-
All Plotly Express functions accept a `template` argument that can be set to the name of a registered theme (or to a `Template` object as discussed later in this section). Here is an example of using Plotly Express to build and display the same scatter plot with five different themes.
53+
All Plotly Express functions accept a `template` argument that can be set to the name of a registered theme (or to a `Template` object as discussed later in this section). Here is an example of using Plotly Express to build and display the same scatter plot with six different themes.
5454

5555
```python
5656
import plotly.express as px
5757

5858
gapminder = px.data.gapminder()
5959
gapminder_2007 = gapminder.query("year==2007")
6060

61-
for template in ["plotly", "plotly_white", "plotly_dark", "ggplot2", "seaborn", "none"]:
61+
for template in ["plotly", "plotly_white", "plotly_dark", "ggplot2", "seaborn", "simple_white", "none"]:
6262
fig = px.scatter(gapminder_2007,
6363
x="gdpPercap", y="lifeExp", size="pop", color="continent",
6464
log_x=True, size_max=60,
@@ -67,7 +67,7 @@ for template in ["plotly", "plotly_white", "plotly_dark", "ggplot2", "seaborn",
6767
```
6868

6969
#### Specifying themes in graph object figures
70-
The theme for a particular graph object figure can be specified by setting the `template` property of the figure's `layout` to the name of a registered theme (or to a `Template` object as discussed later in this section). Here is an example of constructing a surface plot and then displaying it with each of five themes.
70+
The theme for a particular graph object figure can be specified by setting the `template` property of the figure's `layout` to the name of a registered theme (or to a `Template` object as discussed later in this section). Here is an example of constructing a surface plot and then displaying it with each of six themes.
7171

7272
```python
7373
import plotly.graph_objects as go
@@ -83,7 +83,7 @@ fig = go.Figure(
8383
height=500,
8484
))
8585

86-
for template in ["plotly", "plotly_white", "plotly_dark", "ggplot2", "seaborn", "none"]:
86+
for template in ["plotly", "plotly_white", "plotly_dark", "ggplot2", "seaborn", "simple_white", "none"]:
8787
fig.update_layout(template=template, title="Mt Bruno Elevation: '%s' theme" % template)
8888
fig.show()
8989
```

0 commit comments

Comments
 (0)