You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python/templates.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -50,15 +50,15 @@ From this, we can see that the default theme is `"plotly"`, and we can see the n
50
50
51
51
52
52
#### 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.
54
54
55
55
```python
56
56
import plotly.express as px
57
57
58
58
gapminder = px.data.gapminder()
59
59
gapminder_2007 = gapminder.query("year==2007")
60
60
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"]:
@@ -67,7 +67,7 @@ for template in ["plotly", "plotly_white", "plotly_dark", "ggplot2", "seaborn",
67
67
```
68
68
69
69
#### 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.
71
71
72
72
```python
73
73
import plotly.graph_objects as go
@@ -83,7 +83,7 @@ fig = go.Figure(
83
83
height=500,
84
84
))
85
85
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"]:
87
87
fig.update_layout(template=template, title="Mt Bruno Elevation: '%s' theme"% template)
0 commit comments