Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

yticks(fontsize=SIZE) should work:

import pylab
import matplotlib
pylab.clf()
#pylab.rc('text', fontsize=18) #This is a 'bad' but effective way to change the default font size
pylab.plot(xdata, ydata, '--')
pylab.xlabel(r"$x$",fontsize=24)
pylab.ylabel(r"$y$",fontsize=24)
pylab.yticks(fontsize=40)
pylab.yticks(fontsize=40)
pylab.savefig('transspeclin.pdf', format='pdf')
pylab.savefig('transspeclin')
pylab.show()