From a1f7d4eb73cb0befe6b485a93696691fe61454ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Sun, 19 Jan 2014 22:51:09 -0500 Subject: [PATCH] Fix geometric example --- doc/examples/applications/plot_geometric.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/examples/applications/plot_geometric.py b/doc/examples/applications/plot_geometric.py index 843faa1f..6ef94762 100644 --- a/doc/examples/applications/plot_geometric.py +++ b/doc/examples/applications/plot_geometric.py @@ -33,14 +33,14 @@ First we create a transformation using explicit parameters: tform = tf.SimilarityTransform(scale=1, rotation=math.pi / 2, translation=(0, 1)) -print(tform.matrix_) +print(tform.params_) """ Alternatively you can define a transformation by the transformation matrix itself: """ -matrix = tform.matrix_.copy() +matrix = tform.params_.copy() matrix[1, 2] = 2 tform2 = tf.SimilarityTransform(matrix)