Skip to content

Commit be196c5

Browse files
committed
wrap title text
1 parent 5b0fdc8 commit be196c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

WrightTools/artists/_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ def _title(fig, title, subtitle="", *, margin=1, fontsize=20, subfontsize=18):
7070
subfontsize : number (optional)
7171
Subtitle fontsize. Default is 18.
7272
"""
73-
fig.suptitle(title, fontsize=fontsize)
73+
fig.suptitle(title, fontsize=fontsize, wrap=True)
7474
height = fig.get_figheight() # inches
7575
distance = margin / 2.0 # distance from top of plot, in inches
7676
ratio = 1 - distance / height
77-
return fig.text(0.5, ratio, subtitle, fontsize=subfontsize, ha="center", va="top")
77+
return fig.text(0.5, ratio, subtitle, fontsize=subfontsize, ha="center", va="top", wrap=True)
7878

7979

8080
def add_sideplot(

0 commit comments

Comments
 (0)