From: Suresh P. <sto...@ya...> - 2007-02-28 20:07:00
|
import pylab data1=[1,2,3,4,5,6,7] data2=[8,9,10,11,12,13,14] dates=['01','02','03','04','05','06','07'] pylab.subplot(211) pylab.plot(data1, label='Score 2005') pylab.plot(data2, label='Num 2006') pylab.setp(pylab.gca(), xticklabels=[]) pylab.ylabel('Score 2') pylab.title('Historical Statistics') pylab.legend(loc='upper left') pylab.subplot(212) pylab.plot(data1, label='Score 06') pylab.plot(data2, label='Num 06') pylab.xticks(pylab.arange(7),dates) #xlabels = pylab.axes().get_xticklabels() #pylab.setp(xlabels, 'rotation', 90) pylab.xlabel('Player') pylab.ylabel('Score 1') pylab.legend(loc='upper left') pylab.show() So, if you run with the two lines commented out, everything is fine. If you uncomment the lines, then you get a broken figure. Thanks, Suresh On Wed, 28 Feb 2007, Darren Dale wrote: > Would you post an example that we can actually run? > |