From 9b0edc8e68d46534ce86205a5f3f078bf1058445 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 26 Oct 2012 14:29:33 -0400 Subject: [PATCH] plot_image.py: use modern print() syntax --- src/plot_image/plot_image.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plot_image/plot_image.py b/src/plot_image/plot_image.py index 11a3a97..b387e6d 100755 --- a/src/plot_image/plot_image.py +++ b/src/plot_image/plot_image.py @@ -286,11 +286,11 @@ def main(argv=None): Z_min = numpy.min(Z.flat) Z_max = numpy.max(Z.flat) - print 'X range: {} {} ({} steps)'.format( - X[0,0], X[0,-2], X.shape[1]) - print 'Y range: {} {} ({} steps)'.format( - Y[0,0], Y[-2,0], Y.shape[0]) - print 'Z range: ', Z_min, Z_max + print('X range: {} {} ({} steps)'.format( + X[0,0], X[0,-2], X.shape[1])) + print('Y range: {} {} ({} steps)'.format( + Y[0,0], Y[-2,0], Y.shape[0])) + print('Z range: {} {}'.format(Z_min, Z_max)) fig = plot(X, Y, Z, full=options.full, title=options.title, contours=options.contours, interpolation=options.interpolation, -- 2.26.2