Menu

[r303]: / trunk / htdocs / examples / vertical_ticklabels.py  Maximize  Restore  History

Download this file

9 lines (7 with data), 219 Bytes

1
2
3
4
5
6
7
8
#!/usr/bin/env python
from matplotlib.matlab import *
plot([1,2,3,4], [1,4,9,16])
set(gca(), 'xticks', [1,2,3,4])
t = set(gca(), 'xticklabels', ['Frogs', 'Hogs', 'Bogs', 'Slogs'])
set(t, 'rotation', 'vertical')
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.