-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compare final metric values of two registrations
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |