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: doc/python/figure-labels.md
+41-2
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ jupyter:
6
6
extension: .md
7
7
format_name: markdown
8
8
format_version: '1.3'
9
-
jupytext_version: 1.16.1
9
+
jupytext_version: 1.16.3
10
10
kernelspec:
11
11
display_name: Python 3 (ipykernel)
12
12
language: python
@@ -20,7 +20,7 @@ jupyter:
20
20
name: python
21
21
nbconvert_exporter: python
22
22
pygments_lexer: ipython3
23
-
version: 3.10.11
23
+
version: 3.10.14
24
24
plotly:
25
25
description: How to set the global font, title, legend-entries, and axis-titles
26
26
in python.
@@ -236,5 +236,44 @@ fig.update_layout(
236
236
fig.show()
237
237
```
238
238
239
+
### Adding a Plot Subtitle
240
+
241
+
*New in 5.23*
242
+
243
+
Add a subtitle to a plot with `layout.title.subtitle`. In the following example, we set the subtitle's `text`, and configure the `font``color` and `size`. By default, if you don't set a font size for the subtitle, it will be `0.7` of the `title` font size.
244
+
245
+
```python
246
+
import plotly.graph_objects as go
247
+
from plotly import data
248
+
249
+
df = data.gapminder().query("continent == 'Europe' and (year == 1952 or year == 2002)")
0 commit comments