I've been having problems using the subplot command's comma notation for describing how many plots to use (e.g. subplot(2,1,1) instead of subplot(211)). Using the comma notation, all plots are overlaid in the first position and remaining positions are blank but sized correctly as if there should be a plots there. Here's an example demonstrating this problem. This code is a minimally modified version of that given in the online tutorial.
################################################## from pylab import * def f(t): s1 = cos(2*pi*t) e1 = exp(-t) return multiply(s1,e1) t1 = arange(0.0, 5.0, 0.1) t2 = arange(0.0, 5.0, 0.02) figure(1) subplot(2,1,1) plot(t1, f(t1), 'bo', t2, f(t2), 'k') subplot(2,1,2) plot(t2, cos(2*pi*t2), 'r--') show() ################################################## I will probably end up using the axes command, but it would be nice to know how to resolve this issue with subplot. I'm using Python 2.4 on Ubuntu 6.06 Thanks, Josh ------------------------------------------------------------------------- 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