Created
November 25, 2009 11:02
-
-
Save jgomezdans/242637 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import numpy, pylab | |
pylab.plot (numpy.arange(10), numpy.arange(10,0,-1), 'o') | |
ax = pylab.gca() | |
ax.set_xticks( (2, 4, 6, 8) ) | |
labels = ax.set_xticklabels(('Martin', 'deKauwe', 'Jose', 'Gomez')) | |
for l in labels: | |
l.set_rotation(45) | |
l.set_fontsize(12) | |
ax.set_yticks ( (1, 3, 5, 7, 9)) | |
labels = ax.set_yticklabels(('tedious','boring','dull','tiresome','drab')) | |
for l in labels: | |
l.set_rotation(5) | |
l.set_fontsize(12) | |
ax.set_xlim (0,10) | |
ax.set_ylim ( 0, 10) | |
pylab.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment