Skip to content

Instantly share code, notes, and snippets.

@jgomezdans
Created November 25, 2009 11:02
Show Gist options
  • Save jgomezdans/242637 to your computer and use it in GitHub Desktop.
Save jgomezdans/242637 to your computer and use it in GitHub Desktop.
# -*- 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