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: notebooks/templates.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -22,13 +22,15 @@ jupyter:
22
22
pygments_lexer:ipython3
23
23
version:3.7.3
24
24
plotly:
25
-
description:Theming plotly with Python
25
+
description:Themingand templates withplotly with Python
26
26
v4upgrade:true
27
27
---
28
28
29
-
#Theming
29
+
#Theming and templates
30
30
The Plotly Python library comes pre-loaded with several themes that you can get started using right away, and it also provides support for creating and registering your own themes.
31
31
32
+
>Note on terminology: Theming generally refers to the process of defining default styles for visual elements. Themes in plotly are implemented using objects called templates. Templates are slightly more general than traditional themes because in addition to defining default styles, templates can pre-populate a figure with visual elements like annotations, shapes, images, and more. In the documentation we will refer to the overall process of defining default styles as theming, and when in comes to the plotly API we will talk about how themes are implemented using templates.
33
+
32
34
##Using built-in themes
33
35
###View available themes
34
36
To see information about the available themes and the current default theme, display the`plotly.io.templates` configuration object like this.