Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2555b09

Browse files
committed
update backend_driver
svn path=/trunk/matplotlib/; revision=3413
1 parentb69acdd commit2555b09

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

‎examples/backend_driver.py

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
from __future__importdivision
88
importos,time,sys
9+
importmatplotlib.backendsasmplbe
10+
911
files= (
1012
'alignment_test.py',
1113
'arctest.py',
@@ -30,6 +32,7 @@
3032
'image_demo.py',
3133
'image_demo2.py',
3234
'image_demo_na.py',
35+
'image_masked.py',
3336
'image_origin.py',
3437
'invert_axes.py',
3538
'layer_images.py',
@@ -74,14 +77,6 @@
7477
)
7578

7679

77-
#tests known to fail on python22 (require datetime)
78-
fail22= (
79-
'date_demo1.py',
80-
'date_demo2.py',
81-
'finance_demo.py',
82-
)
83-
84-
8580
# tests known to fail on a given backend
8681

8782
failbackend=dict(
@@ -118,7 +113,7 @@ def drive(backend, python='python', switches = []):
118113
line_lstrip.startswith('show')):
119114
continue
120115
tmpfile.write(line)
121-
ifbackendin('GTK','WX','TkAgg'):
116+
ifbackendinmplbe.interactive_bk:
122117
tmpfile.write('show()')
123118
else:
124119
tmpfile.write('savefig("%s", dpi=150)'%outfile)
@@ -130,19 +125,15 @@ def drive(backend, python='python', switches = []):
130125

131126
if__name__=='__main__':
132127
times= {}
133-
# backends = ['Agg', 'Cairo', 'GDK', 'PS', 'SVG', 'Template']
134-
#backends = ['Agg', 'PS', 'SVG', 'Template']
135-
# backends = [ 'GTK', 'WX', 'TkAgg']
136128
default_backends= ['Agg','PS','SVG','Template']
137-
#default_backends = ['Agg']
138-
#backends = ['Agg']
139129
ifsys.platform=='win32':
140130
python=r'c:\Python24\python.exe'
141131
else:
142132
python='python'
133+
backends= []
143134
switches= []
144135
ifsys.argv[1:]:
145-
backends= [bforbinsys.argv[1:]ifbindefault_backends]
136+
backends= [bforbinsys.argv[1:]ifbinmplbe.all_backends]
146137
switches= [sforsinsys.argv[1:]ifs.startswith('--')]
147138
ifnotbackends:
148139
backends=default_backends

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp