Logo Search packages:      
Sourcecode: matplotlib version File versions

multiline.py

#!/usr/bin/env python
from pylab 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()

Generated by  Doxygen 1.6.0   Back to index