Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2dd00d4

Browse files
committed
fixed some problems with figure text that were outside the figure box
svn path=/trunk/matplotlib/; revision=24
1 parent d6dbe95 commit 2dd00d4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

examples/figtext.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ def f(t):
1414
plot(t1, f(t1), 'bo', t2, f(t2), 'k')
1515
title('subplot 1')
1616
ylabel('Damped oscillation')
17-
t = gcf().text(0.5, 0.95, 'Figure Title',
18-
fontsize=20, horizontalalignment='center')
17+
t = gcf().text(0.5, 0.95, 'Figure Title: A really, really, really, really long figure title', fontsize=20)
1918

2019

2120
subplot(122)

0 commit comments

Comments
 (0)