Permalink
Browse files

Compare final metric values of two registrations

  • Loading branch information...
1 parent 7723928 commit 5f3e03c55c14c6309c49a3fb2acd343d12dfcffc @mattgibb committed May 14, 2012
Showing with 26 additions and 0 deletions.
  1. +26 −0 graphing/compare_final_metric_values.py
@@ -0,0 +1,26 @@
+#!/usr/bin/env python
+"""
+plots the metric values at the end of each slice registration
+from 2 or more different directories
+
+Usage:
+compare_final_metric_values dir1 [dir2 [dir3...]]
+"""
+
+from sys import argv
+from metric_values import MetricValues
+
+from numpy import *
+import matplotlib.pyplot as plt
+
+fig = plt.figure()
+ax = fig.gca()
+
+for i, directory in enumerate(argv[1:]):
+ vals = MetricValues(directory)
+ x = range(vals.number_of_slices())
+ ax.plot(x, vals.final_values(), label=str(i+1) )
+
+plt.grid(axis="y")
+ax.legend()
+plt.show()

0 comments on commit 5f3e03c

Please sign in to comment.