From: <jd...@us...> - 2008-12-09 12:27:55
|
Revision: 6535 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6535&view=rev Author: jdh2358 Date: 2008-12-09 12:27:51 +0000 (Tue, 09 Dec 2008) Log Message: ----------- removed extraneous savefig calls from examples Modified Paths: -------------- trunk/matplotlib/CHANGELOG trunk/matplotlib/examples/api/barchart_demo.py trunk/matplotlib/examples/api/histogram_demo.py trunk/matplotlib/examples/api/logo2.py trunk/matplotlib/examples/api/watermark_image.py trunk/matplotlib/examples/api/watermark_text.py trunk/matplotlib/examples/pylab_examples/agg_buffer_to_array.py trunk/matplotlib/examples/pylab_examples/alignment_test.py trunk/matplotlib/examples/pylab_examples/annotation_demo.py trunk/matplotlib/examples/pylab_examples/annotation_demo2.py trunk/matplotlib/examples/pylab_examples/arctest.py trunk/matplotlib/examples/pylab_examples/arrow_demo.py trunk/matplotlib/examples/pylab_examples/axes_demo.py trunk/matplotlib/examples/pylab_examples/axes_props.py trunk/matplotlib/examples/pylab_examples/barchart_demo.py trunk/matplotlib/examples/pylab_examples/barcode_demo.py trunk/matplotlib/examples/pylab_examples/boxplot_demo.py trunk/matplotlib/examples/pylab_examples/broken_barh.py trunk/matplotlib/examples/pylab_examples/contour_demo.py trunk/matplotlib/examples/pylab_examples/contour_image.py trunk/matplotlib/examples/pylab_examples/contourf_demo.py trunk/matplotlib/examples/pylab_examples/custom_figure_class.py trunk/matplotlib/examples/pylab_examples/customize_rc.py trunk/matplotlib/examples/pylab_examples/dannys_example.py trunk/matplotlib/examples/pylab_examples/dash_control.py trunk/matplotlib/examples/pylab_examples/dashpointlabel.py trunk/matplotlib/examples/pylab_examples/date_demo2.py trunk/matplotlib/examples/pylab_examples/date_demo_rrule.py trunk/matplotlib/examples/pylab_examples/ellipse_demo.py trunk/matplotlib/examples/pylab_examples/equal_aspect_ratio.py trunk/matplotlib/examples/pylab_examples/errorbar_demo.py trunk/matplotlib/examples/pylab_examples/figimage_demo.py trunk/matplotlib/examples/pylab_examples/figure_title.py trunk/matplotlib/examples/pylab_examples/fonts_demo.py trunk/matplotlib/examples/pylab_examples/fonts_demo_kw.py trunk/matplotlib/examples/pylab_examples/hline_demo.py trunk/matplotlib/examples/pylab_examples/image_demo2.py trunk/matplotlib/examples/pylab_examples/image_demo3.py trunk/matplotlib/examples/pylab_examples/image_interp.py trunk/matplotlib/examples/pylab_examples/image_origin.py trunk/matplotlib/examples/pylab_examples/integral_demo.py trunk/matplotlib/examples/pylab_examples/layer_images.py trunk/matplotlib/examples/pylab_examples/legend_demo.py trunk/matplotlib/examples/pylab_examples/legend_demo2.py trunk/matplotlib/examples/pylab_examples/legend_demo3.py trunk/matplotlib/examples/pylab_examples/logo.py trunk/matplotlib/examples/pylab_examples/manual_axis.py trunk/matplotlib/examples/pylab_examples/mathtext_demo.py trunk/matplotlib/examples/pylab_examples/matplotlib_icon.py trunk/matplotlib/examples/pylab_examples/mri_demo.py trunk/matplotlib/examples/pylab_examples/multiline.py trunk/matplotlib/examples/pylab_examples/multiple_figs_demo.py trunk/matplotlib/examples/pylab_examples/pcolor_demo.py trunk/matplotlib/examples/pylab_examples/pcolor_demo2.py trunk/matplotlib/examples/pylab_examples/pcolor_log.py trunk/matplotlib/examples/pylab_examples/polar_legend.py trunk/matplotlib/examples/pylab_examples/polar_scatter.py trunk/matplotlib/examples/pylab_examples/poormans_contour.py trunk/matplotlib/examples/pylab_examples/pstest.py trunk/matplotlib/examples/pylab_examples/quadmesh_demo.py trunk/matplotlib/examples/pylab_examples/scatter_demo.py trunk/matplotlib/examples/pylab_examples/scatter_profile.py trunk/matplotlib/examples/pylab_examples/simple_plot_fps.py trunk/matplotlib/examples/pylab_examples/stock_demo.py trunk/matplotlib/examples/pylab_examples/symlog_demo.py trunk/matplotlib/examples/pylab_examples/table_demo.py trunk/matplotlib/examples/pylab_examples/tex_demo.py trunk/matplotlib/examples/pylab_examples/tex_unicode_demo.py trunk/matplotlib/examples/pylab_examples/text_themes.py trunk/matplotlib/examples/pylab_examples/toggle_images.py trunk/matplotlib/examples/pylab_examples/unicode_demo.py trunk/matplotlib/examples/pylab_examples/webapp_demo.py trunk/matplotlib/examples/tests/backend_driver.py Modified: trunk/matplotlib/CHANGELOG =================================================================== --- trunk/matplotlib/CHANGELOG 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/CHANGELOG 2008-12-09 12:27:51 UTC (rev 6535) @@ -1,7 +1,7 @@ -2008-12-08 Added mdehoon's native macosx backend from sf patch 2179017 +2008-12-08 Added mdehoon's native macosx backend from sf patch 2179017 - JDH 2008-12-08 Removed the prints in the set_*style commands. Return the - list of pprinted strings instead + list of pprinted strings instead - JDH 2008-12-08 Some of the changes Michael made to improve the output of the property tables in the rest docs broke of made Modified: trunk/matplotlib/examples/api/barchart_demo.py =================================================================== --- trunk/matplotlib/examples/api/barchart_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/api/barchart_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -36,5 +36,5 @@ autolabel(rects1) autolabel(rects2) -#fig.savefig('barchart_demo') + plt.show() Modified: trunk/matplotlib/examples/api/histogram_demo.py =================================================================== --- trunk/matplotlib/examples/api/histogram_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/api/histogram_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -31,5 +31,4 @@ ax.set_ylim(0, 0.03) ax.grid(True) -#fig.savefig('histogram_demo',dpi=72) plt.show() Modified: trunk/matplotlib/examples/api/logo2.py =================================================================== --- trunk/matplotlib/examples/api/logo2.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/api/logo2.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -67,10 +67,10 @@ for line in ax.get_ygridlines() + ax.get_xgridlines(): line.set_lw(0.8) - line.set_alpha(0.9) + line.set_alpha(0.9) line.set_ls('-') line.set_color('0.5') - + ax.set_yticks(np.arange(1, 9, 2)) ax.set_rmax(9) @@ -78,7 +78,6 @@ main_axes = add_math_background() add_polar_bar() add_matplotlib_text(main_axes) - fig.savefig('logo2.png', facecolor=figcolor, edgecolor=figcolor, dpi=dpi) plt.show() Modified: trunk/matplotlib/examples/api/watermark_image.py =================================================================== --- trunk/matplotlib/examples/api/watermark_image.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/api/watermark_image.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -18,6 +18,4 @@ ax.grid() fig.figimage(im, 10, 10) -#fig.savefig('watermarked', transparent=True) - plt.show() Modified: trunk/matplotlib/examples/api/watermark_text.py =================================================================== --- trunk/matplotlib/examples/api/watermark_text.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/api/watermark_text.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -18,7 +18,4 @@ fontsize=50, color='gray', ha='right', va='bottom', alpha=0.5) -#fig.savefig('watermarked_text', transparent=True) - - plt.show() Modified: trunk/matplotlib/examples/pylab_examples/agg_buffer_to_array.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/agg_buffer_to_array.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/agg_buffer_to_array.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -20,5 +20,4 @@ fig2 = figure() ax2 = fig2.add_subplot(111, frameon=False) ax2.imshow(X) -fig2.savefig('simple.png') show() Modified: trunk/matplotlib/examples/pylab_examples/alignment_test.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/alignment_test.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/alignment_test.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -78,5 +78,5 @@ transform=ax.transAxes) axis('off') -#savefig('alignment_test', dpi=100) + show() Modified: trunk/matplotlib/examples/pylab_examples/annotation_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/annotation_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/annotation_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -82,7 +82,6 @@ horizontalalignment='right', verticalalignment='bottom', fontsize=20) - #fig.savefig('annotation_coords') if 1: # you can specify the xypoint and the xytext in different @@ -111,8 +110,8 @@ horizontalalignment='left', verticalalignment='bottom', ) - #fig.savefig('annotation_polar') + if 1: # You can also use polar notation on a catesian axes. Here the # native coordinate system ('data') is cartesian, so you need to @@ -138,9 +137,5 @@ ax.set_xlim(-20, 20) ax.set_ylim(-20, 20) - #fig.savefig('annotation_ellipse') - - -#fig.savefig('annotation_demo.png') show() Modified: trunk/matplotlib/examples/pylab_examples/annotation_demo2.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/annotation_demo2.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/annotation_demo2.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -72,9 +72,7 @@ - #fig.savefig('annotation_connection') - if 1: fig = figure(2) fig.clf() @@ -146,6 +144,4 @@ ) ) - #fig.savefig('annotation_arrowstyle') - show() Modified: trunk/matplotlib/examples/pylab_examples/arctest.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/arctest.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/arctest.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -13,6 +13,6 @@ l = plot(t1, f(t1), 'ro') setp(l, 'markersize', 30) setp(l, 'markerfacecolor', 'b') -#savefig('arctest', dpi=150) + show() Modified: trunk/matplotlib/examples/pylab_examples/arrow_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/arrow_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/arrow_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -308,6 +308,5 @@ normalize_data=scaled, head_starts_at_zero=True, size=size) draw() - #savefig('arrows.png') - #print 'Example saved to file "arrows.png"' + show() Modified: trunk/matplotlib/examples/pylab_examples/axes_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/axes_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/axes_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -28,6 +28,5 @@ title('Impulse response') setp(a, xlim=(0,.2), xticks=[], yticks=[]) -#savefig('../figures/axes_demo.eps') -#savefig('../figures/axes_demo.png') + show() Modified: trunk/matplotlib/examples/pylab_examples/axes_props.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/axes_props.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/axes_props.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -26,7 +26,7 @@ setp(xticklabels, 'color', 'r', fontsize='medium') -#savefig('axprops_demo') + show() @@ -57,7 +57,6 @@ label.set_color('r') label.set_fontsize('medium') -#savefig('axprops_demo') show() """ Modified: trunk/matplotlib/examples/pylab_examples/barchart_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/barchart_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/barchart_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -34,5 +34,5 @@ autolabel(rects1) autolabel(rects2) -#savefig('barchart_demo') + plt.show() Modified: trunk/matplotlib/examples/pylab_examples/barcode_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/barcode_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/barcode_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -21,6 +21,6 @@ ax = fig.add_axes([0.3, 0.1, 0.6, 0.1], **axprops) ax.imshow(x, **barprops) -#fig.savefig('barcode.png', dpi=100) + show() Modified: trunk/matplotlib/examples/pylab_examples/boxplot_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/boxplot_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/boxplot_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -15,32 +15,26 @@ # basic plot boxplot(data) -#savefig('box1') # notched plot figure() boxplot(data,1) -#savefig('box2') # change outlier point symbols figure() boxplot(data,0,'gD') -#savefig('box3') # don't show outlier points figure() boxplot(data,0,'') -#savefig('box4') # horizontal boxes figure() boxplot(data,0,'rs',0) -#savefig('box5') # change whisker length figure() boxplot(data,0,'rs',0,0.75) -#savefig('box6') # fake up some more data spread= rand(50) * 100 @@ -59,7 +53,6 @@ # multiple box plots on one figure figure() boxplot(data) -#savefig('box7') show() Modified: trunk/matplotlib/examples/pylab_examples/broken_barh.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/broken_barh.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/broken_barh.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -20,5 +20,4 @@ fontsize=16, horizontalalignment='right', verticalalignment='top') -#fig.savefig('broken_barh', dpi=100) plt.show() Modified: trunk/matplotlib/examples/pylab_examples/contour_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/contour_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/contour_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -101,5 +101,4 @@ CB.ax.set_position([ll, b+0.1*h, ww, h*0.8]) -#savefig('contour_demo') plt.show() Modified: trunk/matplotlib/examples/pylab_examples/contour_image.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/contour_image.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/contour_image.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -98,6 +98,5 @@ setp(gca(), ylim=ylim[::-1]) title("Image, origin from rc, reversed y-axis") colorbar(im) -#savefig('contour_image') show() Modified: trunk/matplotlib/examples/pylab_examples/contourf_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/contourf_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/contourf_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -76,6 +76,5 @@ clabel(CS4, fmt = '%2.1f', colors = 'w', fontsize=14) colorbar(CS3) -#savefig('contourf_demo') show() Modified: trunk/matplotlib/examples/pylab_examples/custom_figure_class.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/custom_figure_class.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/custom_figure_class.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -16,7 +16,6 @@ fig = figure(FigureClass=MyFigure, figtitle='my title') ax = fig.add_subplot(111) ax.plot([1,2,3]) -fig.savefig('test.png') -fig.savefig('test.ps') + show() Modified: trunk/matplotlib/examples/pylab_examples/customize_rc.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/customize_rc.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/customize_rc.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -1,4 +1,4 @@ -#!/usr/bin/env python + """ I'm not trying to make a good liking figure here, but just to show some examples of customizing rc params on the fly @@ -13,7 +13,7 @@ rc('tick', labelsize=15) # tick labels bigger rc('lines', lw=1, color='k') # thicker black lines (no budget for color!) rc('grid', c='0.5', ls='-', lw=0.5) # solid gray grid lines - rc('#savefig', dpi=300) # higher res outputs + rc('savefig', dpi=300) # higher res outputs @@ -22,7 +22,7 @@ >>> set_pub() >>> subplot(111) >>> plot([1,2,3]) ->>> #savefig('myfig') +>>> savefig('myfig') >>> rcdefaults() # restore the defaults """ Modified: trunk/matplotlib/examples/pylab_examples/dannys_example.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/dannys_example.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/dannys_example.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -56,5 +56,4 @@ pylab.text(0.2, 0.15, r'$\mathcal{F} = \int f\left( \phi, c \right) dV,$ \newline $ \frac{ \partial \phi } { \partial t } = -M_{ \phi } \frac{ \delta \mathcal{F} } { \delta \phi }$', {'color' : 'b', 'fontsize' : 20}) -pylab.savefig('pfm-lsm.png') pylab.show() Modified: trunk/matplotlib/examples/pylab_examples/dash_control.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/dash_control.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/dash_control.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -10,5 +10,5 @@ l, = plot(arange(20), '--') l.set_dashes(dashes) -savefig('dash_control') + show() Modified: trunk/matplotlib/examples/pylab_examples/dashpointlabel.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/dashpointlabel.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/dashpointlabel.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -35,7 +35,6 @@ ax.set_xlim((0.0, 5.0)) ax.set_ylim((0.0, 5.0)) -#if save: -# pylab.savefig('dashpointlabel') + pylab.show() Modified: trunk/matplotlib/examples/pylab_examples/date_demo2.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/date_demo2.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/date_demo2.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -43,5 +43,4 @@ fig.autofmt_xdate() -#fig.savefig('date_demo2') show() Modified: trunk/matplotlib/examples/pylab_examples/date_demo_rrule.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/date_demo_rrule.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/date_demo_rrule.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -28,5 +28,4 @@ labels = ax.get_xticklabels() setp(labels, rotation=30, fontsize=10) -savefig('date_demo_rrule') show() Modified: trunk/matplotlib/examples/pylab_examples/ellipse_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/ellipse_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/ellipse_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -17,7 +17,4 @@ ax.set_xlim(0, 10) ax.set_ylim(0, 10) -#fig.savefig('ellipse_demo.eps') -#fig.savefig('ellipse_demo.png') - show() Modified: trunk/matplotlib/examples/pylab_examples/equal_aspect_ratio.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/equal_aspect_ratio.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/equal_aspect_ratio.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -17,7 +17,4 @@ axes().set_aspect('equal', 'datalim') -#savefig('simple_plot.png') -savefig('equal_aspect') - show() Modified: trunk/matplotlib/examples/pylab_examples/errorbar_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/errorbar_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/errorbar_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -43,5 +43,4 @@ ax.set_yscale('log') errorbar(t, s+2, e, f, fmt='o') # both symmetric -#savefig('errorbar_demo') show() Modified: trunk/matplotlib/examples/pylab_examples/figimage_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/figimage_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/figimage_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -15,9 +15,6 @@ im1 = plt.figimage(Z, xo=50, yo=0, cmap=cm.jet, origin='lower') im2 = plt.figimage(Z, xo=100, yo=100, alpha=.8, cmap=cm.jet, origin='lower') -#fig.savefig('figimage_demo.png') -#fig.savefig('figimage_demo.svg') -#fig.savefig('figimage_demo.pdf') plt.show() Modified: trunk/matplotlib/examples/pylab_examples/figure_title.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/figure_title.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/figure_title.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -25,6 +25,5 @@ title('subplot 2') ylabel('Undamped') -#savefig('figtext') show() Modified: trunk/matplotlib/examples/pylab_examples/fonts_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/fonts_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/fonts_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -111,5 +111,5 @@ **alignment) axis([-1,1,0,1]) -#savefig('fonts_demo') + show() Modified: trunk/matplotlib/examples/pylab_examples/fonts_demo_kw.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/fonts_demo_kw.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/fonts_demo_kw.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -80,5 +80,5 @@ **alignment) axis([-1, 1, 0, 1]) -#savefig('fonts_demo_kw') + show() Modified: trunk/matplotlib/examples/pylab_examples/hline_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/hline_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/hline_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -17,7 +17,7 @@ plt.hlines(t, [0], s, lw=2) plt.xlabel('time (s)') plt.title('Comparison of model with data') -plt.savefig('test') + plt.xlim(xmin=0) plt.show() Modified: trunk/matplotlib/examples/pylab_examples/image_demo2.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/image_demo2.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/image_demo2.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -28,6 +28,5 @@ ylabel('density') setp(gca(), 'xticklabels', []) -#savefig('image_demo2') show() Modified: trunk/matplotlib/examples/pylab_examples/image_demo3.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/image_demo3.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/image_demo3.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -14,6 +14,5 @@ ax.set_axis_off() im = imshow(lena, origin='lower') -#savefig('image_demo3') show() Modified: trunk/matplotlib/examples/pylab_examples/image_interp.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/image_interp.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/image_interp.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -50,17 +50,14 @@ A = rand(5,5) figure(1) imshow(A, interpolation='nearest') -savefig('agg_nearest') grid(True) figure(2) imshow(A, interpolation='bilinear') -savefig('agg_bilinear') grid(True) figure(3) imshow(A, interpolation='bicubic') -savefig('agg_bicubic') grid(True) show() Modified: trunk/matplotlib/examples/pylab_examples/image_origin.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/image_origin.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/image_origin.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -21,5 +21,4 @@ title('blue should be down') imshow(x, origin='lower', interpolation=interp) #axis(lim) -savefig('image_origin') show() Modified: trunk/matplotlib/examples/pylab_examples/integral_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/integral_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/integral_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -31,5 +31,4 @@ ax.set_xticks((a,b)) ax.set_xticklabels(('a','b')) ax.set_yticks([]) -#savefig('integral_demo') show() Modified: trunk/matplotlib/examples/pylab_examples/layer_images.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/layer_images.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/layer_images.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -38,11 +38,6 @@ extent=extent) #axis([xmin, xmax, ymin, ymax]) - -savefig('layer_images.png') -savefig('layer_images.svg') -savefig('layer_images.pdf') - show() Modified: trunk/matplotlib/examples/pylab_examples/legend_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/legend_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/legend_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -39,7 +39,6 @@ plt.setp(ltext, fontsize='small') # the legend text fontsize plt.setp(llines, linewidth=1.5) # the legend linewidth #leg.draw_frame(False) # don't draw the legend frame -#plt.savefig('legend_demo') plt.show() Modified: trunk/matplotlib/examples/pylab_examples/legend_demo2.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/legend_demo2.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/legend_demo2.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -17,7 +17,6 @@ xlabel('time') ylabel('volts') title('Damped oscillation') -#savefig('legend_demo2') #axis([0,2,-1,1]) show() Modified: trunk/matplotlib/examples/pylab_examples/legend_demo3.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/legend_demo3.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/legend_demo3.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -31,6 +31,5 @@ plt.draw() plt.show() -#plt.savefig("legend_demo3") Modified: trunk/matplotlib/examples/pylab_examples/logo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/logo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/logo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -20,5 +20,5 @@ axis([1, 1.72,-60, 10]) setp(gca(), 'xticklabels', []) setp(gca(), 'yticklabels', []) -#savefig('logo2.png', dpi=300) + show() Modified: trunk/matplotlib/examples/pylab_examples/manual_axis.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/manual_axis.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/manual_axis.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -52,6 +52,6 @@ ax.set_ylim(-1.5, 1.5) make_xaxis(ax, 0, offset=0.1, **props) make_yaxis(ax, 0, offset=5, **props) -#fig.savefig('manual_axis.png', dpi=100, facecolor='white', edgecolor='white') + show() Modified: trunk/matplotlib/examples/pylab_examples/mathtext_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/mathtext_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/mathtext_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -23,7 +23,7 @@ ax.legend([r"$\sqrt{x^2}$"]) ax.set_title(r'$\Delta_i^j \hspace{0.4} \mathrm{versus} \hspace{0.4} \Delta_{i+1}^j$', fontsize=20) -fig.savefig('mathtext_demo') + show() Modified: trunk/matplotlib/examples/pylab_examples/matplotlib_icon.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/matplotlib_icon.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/matplotlib_icon.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -17,5 +17,5 @@ # grid(True) setp(gca(), xticklabels=[], yticklabels=[]) -savefig('matplotlib.svg', facecolor='0.75') +savefig('matplotlib', facecolor='0.75') Modified: trunk/matplotlib/examples/pylab_examples/mri_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/mri_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/mri_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -9,5 +9,5 @@ #imshow(im, ColormapJet(256)) imshow(im, cmap=cm.jet) axis('off') -#savefig('mri_demo') + show() Modified: trunk/matplotlib/examples/pylab_examples/multiline.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/multiline.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/multiline.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -10,6 +10,6 @@ horizontalalignment = 'center', verticalalignment = 'top', multialignment = 'center') -#savefig('multiline') + grid(True) show() Modified: trunk/matplotlib/examples/pylab_examples/multiple_figs_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/multiple_figs_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/multiple_figs_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -21,9 +21,9 @@ plot(t,s2, 'gs') setp(gca(), 'xticklabels', []) -#figure(1) -#savefig('fig1') -#figure(2) -#savefig('fig2') +figure(1) +savefig('fig1') +figure(2) +savefig('fig2') show() Modified: trunk/matplotlib/examples/pylab_examples/pcolor_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/pcolor_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/pcolor_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -22,7 +22,7 @@ pcolor(X, Y, Z) colorbar() axis([-3,3,-3,3]) -savefig('pcolor_demo') + show() Modified: trunk/matplotlib/examples/pylab_examples/pcolor_demo2.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/pcolor_demo2.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/pcolor_demo2.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -25,7 +25,7 @@ #im.set_interpolation('bicubic') im.set_interpolation('bilinear') #ax.set_image_extent(-3, 3, -3, 3) -#savefig('pcolor_demo2') + show() Modified: trunk/matplotlib/examples/pylab_examples/pcolor_log.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/pcolor_log.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/pcolor_log.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -24,4 +24,4 @@ show() -#savefig('pcolor_log.png') + Modified: trunk/matplotlib/examples/pylab_examples/polar_legend.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/polar_legend.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/polar_legend.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -17,5 +17,5 @@ ax.plot(theta, r, color='#ee8d18', lw=3, label='a line') ax.plot(0.5*theta, r, color='blue', ls='--', lw=3, label='another line') ax.legend() -fig.savefig('polar_legend') + show() Modified: trunk/matplotlib/examples/pylab_examples/polar_scatter.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/polar_scatter.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/polar_scatter.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -14,5 +14,5 @@ c = scatter(theta, r, c=colors, s=area) c.set_alpha(0.75) -#savefig('polar_test2') + show() Modified: trunk/matplotlib/examples/pylab_examples/poormans_contour.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/poormans_contour.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/poormans_contour.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -23,6 +23,6 @@ im = imshow(Z, cmap=cmap, interpolation='bilinear') axis('off') colorbar() -#savefig('test') + show() Modified: trunk/matplotlib/examples/pylab_examples/pstest.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/pstest.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/pstest.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -25,6 +25,6 @@ ylabel('Signal 2', fontsize=12) xlabel('time (s)', fontsize=12) -#savefig('pstest') + show() Modified: trunk/matplotlib/examples/pylab_examples/quadmesh_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/quadmesh_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/quadmesh_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -42,5 +42,4 @@ ax.set_title('With masked values') -savefig("quadmesh_demo") show() Modified: trunk/matplotlib/examples/pylab_examples/scatter_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/scatter_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/scatter_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -6,6 +6,5 @@ y = 0.9*rand(N) area = pi*(10 * rand(N))**2 # 0 to 10 point radiuses scatter(x,y,s=area, marker='^', c='r') -savefig('test.ps') -savefig('test.pdf') + show() Modified: trunk/matplotlib/examples/pylab_examples/scatter_profile.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/scatter_profile.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/scatter_profile.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -19,5 +19,4 @@ y = 0.9*rand(N) s = 20*rand(N) scatter(x,y,s) - #savefig('scatter_demo') print '%d symbols in %1.2f s' % (N, time.time()-tstart) Modified: trunk/matplotlib/examples/pylab_examples/simple_plot_fps.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/simple_plot_fps.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/simple_plot_fps.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -17,9 +17,6 @@ title('About as simple as it gets, folks') grid(True) -#savefig('simple_plot.png') -#savefig('simple_plot') - import time frames = 100.0 Modified: trunk/matplotlib/examples/pylab_examples/stock_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/stock_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/stock_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -15,5 +15,5 @@ title('INTC vs AAPL') legend( ('INTC', 'AAPL') ) -#savefig('stock_demo') + show() Modified: trunk/matplotlib/examples/pylab_examples/symlog_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/symlog_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/symlog_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -25,5 +25,4 @@ grid(True) ylabel('symlog both') -savefig('symlog_demo') show() Modified: trunk/matplotlib/examples/pylab_examples/table_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/table_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/table_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -88,7 +88,5 @@ yticks(vals*1000, ['%d' % val for val in vals]) xticks([]) title('Loss by Disaster') -#savefig('table_demo_small', dpi=75) -#savefig('table_demo_large', dpi=300) show() Modified: trunk/matplotlib/examples/pylab_examples/tex_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/tex_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/tex_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -29,7 +29,5 @@ title(r"\TeX\ is Number $\displaystyle\sum_{n=1}^\infty\frac{-e^{i\pi}}{2^n}$!", fontsize=16, color='r') grid(True) -savefig('tex_demo') - show() Modified: trunk/matplotlib/examples/pylab_examples/tex_unicode_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/tex_unicode_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/tex_unicode_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -22,7 +22,4 @@ title(r"\TeX\ is Number $\displaystyle\sum_{n=1}^\infty\frac{-e^{i\pi}}{2^n}$!", fontsize=16, color='r') grid(True) -savefig('tex_demo') - - show() Modified: trunk/matplotlib/examples/pylab_examples/text_themes.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/text_themes.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/text_themes.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -21,5 +21,4 @@ xlabel('time (s)', font, style='italic') ylabel('voltage (mV)', font) -#savefig('text_themes') show() Modified: trunk/matplotlib/examples/pylab_examples/toggle_images.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/toggle_images.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/toggle_images.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -40,5 +40,5 @@ draw() connect('key_press_event', toggle_images) -#savefig('toggle_images') + show() Modified: trunk/matplotlib/examples/pylab_examples/unicode_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/unicode_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/unicode_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -9,5 +9,4 @@ text( 0.5, 2.5, u'Institut für Festkörperphysik', rotation=45) text( 1, 1.5, u'AVA (check kerning)') -savefig('test') show() Modified: trunk/matplotlib/examples/pylab_examples/webapp_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/webapp_demo.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/pylab_examples/webapp_demo.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -61,6 +61,6 @@ l.set_fontsize(12) canvas = FigureCanvasAgg(fig) - canvas.print_figure('webapp.png', dpi=150) + canvas.print_figure('webapp', dpi=150) make_fig() Modified: trunk/matplotlib/examples/tests/backend_driver.py =================================================================== --- trunk/matplotlib/examples/tests/backend_driver.py 2008-12-09 10:23:53 UTC (rev 6534) +++ trunk/matplotlib/examples/tests/backend_driver.py 2008-12-09 12:27:51 UTC (rev 6535) @@ -123,7 +123,6 @@ 'legend_demo.py', 'legend_demo2.py', 'legend_demo3.py', - 'legend_demo3.py', 'legend_scatter.py', 'line_collection.py', 'line_collection2.py', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |