I posed the question below back in Nov, but never received a response.
Thought I'd try again, as I really do need this kind of plot, and I don't
want to leave the world of matplotlib, which has improved my efficiency
greatly in plotting.
Thanks,
Suresh
---------- Forwarded message ----------
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(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(dates)
#xlabels = pylab.axes().get_xticklabels()
#pylab.setp(xlabels, 'rotation', 90)
pylab.xlabel('Player')
pylab.ylabel('Score 1')
pylab.legend(loc='upper left')
Any idea what is wrong?
numpy-1.0
matplotlib-0.87.7
Thanks,
Suresh
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users