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?
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to