Menu

[r372]: / trunk / htdocs / examples / multiline.py  Maximize  Restore  History

Download this file

15 lines (13 with data), 391 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
from matplotlib.matlab import *
plot(arange(10))
xlabel('this is a xlabel\n(with newlines!)')
ylabel('this is vertical\ntest', multialignment='center')
#ylabel('this is another!')
text(2, 7,'this is\nyet another test',
rotation=45,
horizontalalignment = 'center',
verticalalignment = 'top',
multialignment = 'center')
#savefig('multiline')
grid(True)
show()
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.