Skip to content

Commit

Permalink
Compare final metric values of two registrations
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgibb committed May 14, 2012
1 parent 7723928 commit 5f3e03c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions graphing/compare_final_metric_values.py
Original file line number Original file line Diff line number Diff line change
@@ -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.