From 2832b7a9a5e7c666c1931ef02800d139d2de3d77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Wed, 29 May 2013 20:57:47 +0200 Subject: [PATCH] Fix python 3 print statement in example script --- doc/examples/plot_matching.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/examples/plot_matching.py b/doc/examples/plot_matching.py index 43833d7c..9c4fb4eb 100644 --- a/doc/examples/plot_matching.py +++ b/doc/examples/plot_matching.py @@ -20,6 +20,8 @@ sufficient. Therefore, the RANSAC algorithm is used on top of the normal model to robustly estimate the parameter set by detecting outliers. """ +from __future__ import print_function + import numpy as np from matplotlib import pyplot as plt @@ -109,9 +111,9 @@ outliers = inliers == False # compare "true" and estimated transform parameters -print tform.scale, tform.translation, tform.rotation -print model.scale, model.translation, model.rotation -print model_robust.scale, model_robust.translation, model_robust.rotation +print(tform.scale, tform.translation, tform.rotation) +print(model.scale, model.translation, model.rotation) +print(model_robust.scale, model_robust.translation, model_robust.rotation) # visualize correspondences