Matplotlib's labeling algorithm
matplotlib(dmin, dmax, m)
minimum of the data range
maximum of the data range
number of axis labels
vector of axis label locations
http://matplotlib.sourceforge.net/