Revision: 5391 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5391&view=rev Author: jdh2358 Date: 2008-06-04 12:11:39 -0700 (Wed, 04 Jun 2008)
Log Message: ----------- rename figure title demo Added Paths: ----------- trunk/matplotlib/examples/pylab_examples/figure_title.py Removed Paths: ------------- trunk/matplotlib/examples/pylab_examples/figtext.py Deleted: trunk/matplotlib/examples/pylab_examples/figtext.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/figtext.py 2008-06-04 19:11:16 UTC (rev 5390) +++ trunk/matplotlib/examples/pylab_examples/figtext.py 2008-06-04 19:11:39 UTC (rev 5391) @@ -1,30 +0,0 @@ -#!/usr/bin/env python -from matplotlib.font_manager import FontProperties -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) -t3 = arange(0.0, 2.0, 0.01) - - -subplot(121) -plot(t1, f(t1), 'bo', t2, f(t2), 'k') -title('subplot 1') -ylabel('Damped oscillation') -suptitle('This is a somewhat long figure title', fontsize=16) - - -subplot(122) -plot(t3, cos(2*pi*t3), 'r--') -xlabel('time (s)') -title('subplot 2') -ylabel('Undamped') - -#savefig('figtext') -show() - Copied: trunk/matplotlib/examples/pylab_examples/figure_title.py (from rev 5390, trunk/matplotlib/examples/pylab_examples/figtext.py) =================================================================== --- trunk/matplotlib/examples/pylab_examples/figure_title.py (rev 0) +++ trunk/matplotlib/examples/pylab_examples/figure_title.py 2008-06-04 19:11:39 UTC (rev 5391) @@ -0,0 +1,30 @@ +#!/usr/bin/env python +from matplotlib.font_manager import FontProperties +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) +t3 = arange(0.0, 2.0, 0.01) + + +subplot(121) +plot(t1, f(t1), 'bo', t2, f(t2), 'k') +title('subplot 1') +ylabel('Damped oscillation') +suptitle('This is a somewhat long figure title', fontsize=16) + + +subplot(122) +plot(t3, cos(2*pi*t3), 'r--') +xlabel('time (s)') +title('subplot 2') +ylabel('Undamped') + +#savefig('figtext') +show() + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins