On Wednesday 28 February 2007 02:59:08 pm Suresh Pillai wrote: > Ooop, sorry I corrupted the pylab.xticks() line in the second part when > editing. Should read: > > pylab.subplot(211) > pylab.plot(historicalScore05, label='Score 2005') > pylab.plot(historialNum05, 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(historicalScore06, label='Score 06') > pylab.plot(historicalNum06, label='Num 06') > pylab.xticks(pylab.arange(numDatapoints),xLabels) > #xlabels = pylab.axes().get_xticklabels()
That line right there, you are creating a new set of axes, and getting its xticklabels, rather than getting the xticklabels of the existing axes. Try: xlabels = pylab.gca().get_xticklabels() > #pylab.setp(xlabels, 'rotation', 90) > pylab.xlabel('Player') > pylab.ylabel('Score 1') > pylab.legend(loc='upper left') Darren ------------------------------------------------------------------------- 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