I have a figure with two subplots as below. However, everything breaks when I try to rotate the x-labels as indicated in the two commented out lines. I obtain a small empty plot embedded in a large empty plot with no x-labels and no legend either. I got this code from the tutorial; it works perfectly fine for the same data/commands if only using a single main plot.
pylab.subplot(211) pylab.plot(historicalScore, label='blah') pylab.setp(pylab.gca(), xticklabels=[]) pylab.ylabel('blah') pylab.title('Historical Statistics') pylab.legend(loc='upper left') pylab.subplot(212) pylab.plot(numBlah, label='#') pylab.plot(historicalNum, label='blah') pylab.xticks(dates) #xlabels = pylab.axes().get_xticklabels() #pylab.setp(xlabels, 'rotation', 90) pylab.xlabel('blah') pylab.ylabel('blah') pylab.legend(loc='upper left') Any idea what is wrong? Thanks, Suresh ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users