Revision: 6527
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6527&view=rev
Author: jdh2358
Date: 2008-12-09 03:24:44 +0000 (Tue, 09 Dec 2008)
Log Message:
-----------
added more examples to backend driver
Modified Paths:
--------------
trunk/matplotlib/examples/api/watermark_image.py
trunk/matplotlib/examples/api/watermark_text.py
trunk/matplotlib/examples/pylab_examples/annotation_demo.py
trunk/matplotlib/examples/pylab_examples/histogram_demo_extended.py
trunk/matplotlib/examples/pylab_examples/manual_axis.py
trunk/matplotlib/examples/tests/backend_driver.py
Modified: trunk/matplotlib/examples/api/watermark_image.py
===================================================================
--- trunk/matplotlib/examples/api/watermark_image.py 2008-12-08 23:28:55 UTC
(rev 6526)
+++ trunk/matplotlib/examples/api/watermark_image.py 2008-12-09 03:24:44 UTC
(rev 6527)
@@ -18,5 +18,6 @@
ax.grid()
fig.figimage(im, 10, 10)
-fig.savefig('watermarked', transparent=True)
+#fig.savefig('watermarked', transparent=True)
+plt.show()
Modified: trunk/matplotlib/examples/api/watermark_text.py
===================================================================
--- trunk/matplotlib/examples/api/watermark_text.py 2008-12-08 23:28:55 UTC
(rev 6526)
+++ trunk/matplotlib/examples/api/watermark_text.py 2008-12-09 03:24:44 UTC
(rev 6527)
@@ -2,8 +2,8 @@
Use a Text as a watermark
"""
import numpy as np
-import matplotlib
-matplotlib.use('Agg')
+#import matplotlib
+#matplotlib.use('Agg')
import matplotlib.pyplot as plt
@@ -18,5 +18,7 @@
fontsize=50, color='gray',
ha='right', va='bottom', alpha=0.5)
-fig.savefig('watermarked_text', transparent=True)
+#fig.savefig('watermarked_text', transparent=True)
+
+plt.show()
Modified: trunk/matplotlib/examples/pylab_examples/annotation_demo.py
===================================================================
--- trunk/matplotlib/examples/pylab_examples/annotation_demo.py 2008-12-08
23:28:55 UTC (rev 6526)
+++ trunk/matplotlib/examples/pylab_examples/annotation_demo.py 2008-12-09
03:24:44 UTC (rev 6527)
@@ -82,7 +82,7 @@
horizontalalignment='right', verticalalignment='bottom',
fontsize=20)
- fig.savefig('annotation_coords')
+ #fig.savefig('annotation_coords')
if 1:
# you can specify the xypoint and the xytext in different
@@ -111,7 +111,7 @@
horizontalalignment='left',
verticalalignment='bottom',
)
- fig.savefig('annotation_polar')
+ #fig.savefig('annotation_polar')
if 1:
# You can also use polar notation on a catesian axes. Here the
@@ -138,7 +138,7 @@
ax.set_xlim(-20, 20)
ax.set_ylim(-20, 20)
- fig.savefig('annotation_ellipse')
+ #fig.savefig('annotation_ellipse')
Modified: trunk/matplotlib/examples/pylab_examples/histogram_demo_extended.py
===================================================================
--- trunk/matplotlib/examples/pylab_examples/histogram_demo_extended.py
2008-12-08 23:28:55 UTC (rev 6526)
+++ trunk/matplotlib/examples/pylab_examples/histogram_demo_extended.py
2008-12-09 03:24:44 UTC (rev 6527)
@@ -89,5 +89,4 @@
n, bins, patches = P.hist( [x0,x1,x2], 10, histtype='bar')
-
-P.show()
\ No newline at end of file
+P.show()
Modified: trunk/matplotlib/examples/pylab_examples/manual_axis.py
===================================================================
--- trunk/matplotlib/examples/pylab_examples/manual_axis.py 2008-12-08
23:28:55 UTC (rev 6526)
+++ trunk/matplotlib/examples/pylab_examples/manual_axis.py 2008-12-09
03:24:44 UTC (rev 6527)
@@ -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')
+#fig.savefig('manual_axis.png', dpi=100, facecolor='white', edgecolor='white')
show()
Modified: trunk/matplotlib/examples/tests/backend_driver.py
===================================================================
--- trunk/matplotlib/examples/tests/backend_driver.py 2008-12-08 23:28:55 UTC
(rev 6526)
+++ trunk/matplotlib/examples/tests/backend_driver.py 2008-12-09 03:24:44 UTC
(rev 6527)
@@ -25,85 +25,154 @@
pylab_dir = os.path.join('..', 'pylab_examples')
pylab_files = [
+ 'two_scales.py',
+
+ 'accented_text.py',
'alignment_test.py',
+ 'annotation_demo.py',
+ 'annotation_demo.py',
+ 'annotation_demo2.py',
+ 'annotation_demo2.py',
+ 'anscombe.py',
'arctest.py',
'arrow_demo.py',
- #'auto_layout.py',
'axes_demo.py',
+ 'axes_props.py',
'axhspan_demo.py',
+ 'axis_equal_demo.py',
'bar_stacked.py',
+ 'barb_demo.py',
'barchart_demo.py',
- 'barb_demo.py',
'barcode_demo.py',
+ 'barh_demo.py',
'boxplot_demo.py',
'broken_barh.py',
- 'barh_demo.py',
+ 'clippedline.py',
+ 'cohere_demo.py',
+ 'color_by_yvalue.py',
'color_demo.py',
- 'cohere_demo.py',
+ 'colorbar_tick_labelling_demo.py',
'contour_demo.py',
+ 'contour_image.py',
'contour_label_demo.py',
'contourf_demo.py',
+ 'contourf_log.py',
+ 'coords_demo.py',
+ 'coords_report.py',
+ 'csd_demo.py',
+ 'cursor_demo.py',
'custom_cmap.py',
- 'geo_demo.py',
- 'griddata_demo.py',
- 'csd_demo.py',
+ 'custom_figure_class.py',
'custom_ticker1.py',
'customize_rc.py',
+ 'dash_control.py',
+ 'dashpointlabel.py',
'date_demo1.py',
'date_demo2.py',
+ 'date_demo_convert.py',
+ 'date_demo_rrule.py',
+ 'date_index_formatter.py',
+ 'dolphin.py',
'ellipse_collection.py',
+ 'ellipse_demo.py',
+ 'ellipse_rotated.py',
'equal_aspect_ratio.py',
+ 'errorbar_demo.py',
'errorbar_limits.py',
+ 'fancyarrow_demo.py',
'fancybox_demo.py',
+ 'fancybox_demo2.py',
'fancytextbox_demo.py',
'figimage_demo.py',
'figlegend_demo.py',
'figure_title.py',
+ 'fill_between.py',
'fill_demo.py',
+ 'fill_demo2.py',
+ 'fill_spiral.py',
'finance_demo.py',
+ 'findobj_demo.py',
+ 'fonts_demo.py',
'fonts_demo_kw.py',
+ 'ganged_plots.py',
+ 'geo_demo.py',
+ 'gradient_bar.py',
+ 'griddata_demo.py',
+ 'hatch_demo.py',
'hexbin_demo.py',
'hexbin_demo2.py',
+ 'hist_colormapped.py',
'histogram_demo.py',
+ 'histogram_demo_extended.py',
'hline_demo.py',
+
+ 'image_clip_path.py',
'image_demo.py',
'image_demo2.py',
+ 'image_demo3.py',
+ 'image_interp.py',
'image_masked.py',
+ 'image_nonuniform.py',
'image_origin.py',
- 'image_nonuniform.py',
+ 'image_slices_viewer.py',
+ 'integral_demo.py',
+ 'interp_demo.py',
'invert_axes.py',
'layer_images.py',
'legend_auto.py',
'legend_demo.py',
'legend_demo2.py',
+ 'legend_demo3.py',
+ 'legend_demo3.py',
+ 'legend_scatter.py',
'line_collection.py',
'line_collection2.py',
'line_styles.py',
+ 'log_bar.py',
'log_demo.py',
'log_test.py',
'major_minor_demo1.py',
'major_minor_demo2.py',
+ 'manual_axis.py',
'masked_demo.py',
'mathtext_demo.py',
+ 'mathtext_examples.py',
+ 'matplotlib_icon.py',
+ 'matshow.py',
+ 'mri_demo.py',
'mri_with_eeg.py',
+ 'multi_image.py',
+ 'multiline.py',
'multiple_figs_demo.py',
- 'multi_image.py',
'nan_test.py',
+ 'newscalarformatter_demo.py',
'pcolor_demo.py',
'pcolor_demo2.py',
+ 'pcolor_log.py',
'pcolor_small.py',
'pie_demo.py',
+ 'plotfile_demo.py',
+ 'polar_bar.py',
'polar_demo.py',
+ 'polar_legend.py',
'polar_scatter.py',
+ 'poormans_contour.py',
'psd_demo.py',
+ 'psd_demo2.py',
+ 'psd_demo3.py',
'quadmesh_demo.py',
'quiver_demo.py',
+ 'scatter_custom_symbol.py',
'scatter_demo.py',
'scatter_demo2.py',
+ 'scatter_masked.py',
+ 'scatter_profile.py',
'scatter_star_poly.py',
+ 'set_and_get.py',
+ 'shared_axis_across_figures.py',
'shared_axis_demo.py',
- 'shared_axis_across_figures.py',
'simple_plot.py',
+ 'simplification_clipping_test.py',
'specgram_demo.py',
'spy_demos.py',
'stem_plot.py',
@@ -111,23 +180,48 @@
'stix_fonts_demo.py',
'stock_demo.py',
'subplot_demo.py',
+ 'subplots_adjust.py',
'symlog_demo.py',
- # 'set_and_get.py',
'table_demo.py',
'text_handles.py',
'text_rotation.py',
+ 'text_rotation_relative_to_line.py',
'text_themes.py',
-# 'tex_demo.py',
-# 'two_scales.py',
+ 'transoffset.py',
'unicode_demo.py',
+ 'vertical_ticklabels.py',
'vline_demo.py',
+ 'webapp_demo.py',
'xcorr_demo.py',
'zorder_demo.py',
+
]
api_dir = os.path.join('..', 'api')
api_files = [
+ 'agg_oo.py',
+ 'barchart_demo.py',
+ 'collections_demo.py',
+ 'custom_projection_example.py',
+ 'custom_scale_example.py',
+ 'date_demo.py',
+ 'date_index_formatter.py',
+ 'font_family_rc.py',
+ 'font_file.py',
+ 'histogram_demo.py',
+ 'image_zcoord.py',
+ 'legend_demo.py',
+ 'line_with_text.py',
+ 'logo2.py',
+ 'mathtext_asarray.py',
+ 'patch_collection.py',
+ 'scatter_piecharts.py',
+ 'span_regions.py',
+ 'unicode_minus.py',
+ 'watermark_image.py',
+ 'watermark_text.py',
+
'bbox_intersect.py',
'colorbar_only.py',
'color_cycle.py',
@@ -178,17 +272,23 @@
report_missing(api_dir, api_files)
report_missing(units_dir, units_files)
-files = [os.path.join(pylab_dir, fname) for fname in pylab_files] +\
- [os.path.join(api_dir, fname) for fname in api_files] +\
+files = (
+ [os.path.join(api_dir, fname) for fname in api_files] +
+ [os.path.join(pylab_dir, fname) for fname in pylab_files] +
[os.path.join(units_dir, fname) for fname in units_files]
+ )
# tests known to fail on a given backend
failbackend = dict(
- SVG = ('tex_demo.py,'),
+ svg = ('tex_demo.py', ),
+ agg = ('hyperlinks.py', ),
+ pdf = ('hyperlinks.py', ),
+ ps = ('hyperlinks.py', ),
)
+
try:
import subprocess
def run(arglist):
@@ -256,7 +356,7 @@
if backend in rcsetup.interactive_bk:
tmpfile.write('show()')
else:
- tmpfile.write('savefig("%s", dpi=150)' % outfile)
+ tmpfile.write('\nsavefig("%s", dpi=150)' % outfile)
tmpfile.close()
start_time = time.time()
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins