Skip to content

Commit f1eb58c

Browse files
committed
Increase default theme linespacing from 0.9 to 1.2
1 parent 79c9d8e commit f1eb58c

23 files changed

+7
-2
lines changed

doc/changelog.qmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ title: Changelog
4848
[](:class:`~plotnine.geom_point`) when the shape is mapped to variable with missing
4949
values.
5050

51+
### Enhancements
52+
53+
- Increased the default linespacing used by themes from `0.9` to `1.2`.
54+
This gives multiline titles, subtitles and captions a better balance between looking compact and looking crumpled.
55+
5156
## v0.15.3
5257
(2025-01-28)
5358

plotnine/themes/theme_gray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(self, base_size=11, base_family=None):
4747
color="black",
4848
ma="center",
4949
size=base_size,
50-
linespacing=0.9,
50+
linespacing=1.2,
5151
rotation=0,
5252
margin=margin(),
5353
),

plotnine/themes/theme_void.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self, base_size=11, base_family=None):
3636
style="normal",
3737
color="black",
3838
size=base_size,
39-
linespacing=0.9,
39+
linespacing=1.2,
4040
rotation=0,
4141
margin=margin(),
4242
),
27 Bytes
Loading
-3.8 KB
Loading
-3.73 KB
Loading
-3.79 KB
Loading
-3.79 KB
Loading
-3.92 KB
Loading
40 Bytes
Loading

0 commit comments

Comments
 (0)