projects
/
parallel_computing.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4fb57e9
)
plot_image.py: use modern print() syntax everywhere
master
author
W. Trevor King
<wking@tremily.us>
Fri, 26 Oct 2012 18:45:11 +0000
(14:45 -0400)
committer
W. Trevor King
<wking@tremily.us>
Fri, 26 Oct 2012 18:45:11 +0000
(14:45 -0400)
src/plot_image/plot_image.py
patch
|
blob
|
history
diff --git
a/src/plot_image/plot_image.py
b/src/plot_image/plot_image.py
index 8510e8e940bb6699d610586a73a8a11021c5d805..fffab701cc353689aaea23a22ce52f686d9e2085 100755
(executable)
--- a/
src/plot_image/plot_image.py
+++ b/
src/plot_image/plot_image.py
@@
-263,14
+263,14
@@
def main(argv=None):
raise Exception('no color map named %s in %s'
% (options.cmap, ', '.join(maps)))
raise Exception('no color map named %s in %s'
% (options.cmap, ', '.join(maps)))
- print
'Plot_image'
- print
'Title: ', options.title
+ print
('Plot_image')
+ print
('Title: {0}'.format(options.title))
if not options.xyz:
if not options.xyz:
- print
'Image size: ', nx, ny
+ print
('Image size: {0} {1}'.format(nx, ny))
if options.contours:
if options.contours:
- print
'# countour lines: ', options.contours
+ print
('# countour lines: {0}'.format(options.contours))
else:
else:
- print
'False color'
+ print
('False color')
if options.input:
fin = open(options.input, 'r')
else:
if options.input:
fin = open(options.input, 'r')
else: