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,