Use the Format** functions as illustrated in the major-minor demo. e.g.
pylab.plot([0,1,2],[0,1,2])
major_formatter = pylab.FormatStrFormatter('%2.1f')
pylab.gca().xaxis.set_major_formatter(major_formatter)
pylab.gca().yaxis.set_major_formatter(major_formatter)
Comments
Post a Comment