summaryrefslogtreecommitdiffstats
path: root/data/pair-matching/roc.py
diff options
context:
space:
mode:
Diffstat (limited to 'data/pair-matching/roc.py')
-rwxr-xr-xdata/pair-matching/roc.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/data/pair-matching/roc.py b/data/pair-matching/roc.py
index c121e97..19a1acf 100755
--- a/data/pair-matching/roc.py
+++ b/data/pair-matching/roc.py
@@ -2,9 +2,16 @@
import sys
import numpy as np
import matplotlib.pyplot as plt
+import matplotlib as mpl
import math
from sets import ImmutableSet
+mpl.rcParams['font.size'] = 8
+mpl.rcParams['lines.linewidth'] = 0.5
+mpl.rcParams['figure.figsize'] = 6,5
+mpl.rcParams['legend.fontsize'] = 8
+mpl.rcParams['axes.linewidth'] = 0.8
+
def distance(a,b):
return math.sqrt(np.square(a-b).sum())
@@ -68,7 +75,7 @@ if __name__ == "__main__":
true_pos = true_pos[indices]
plt.plot(false_pos,true_pos,label="$\sigma$ = "+str(s))
plt.legend(loc="lower right")
- plt.savefig("roc.pdf")
+ plt.savefig("roc.pdf",bbox_inches="tight",pad_inches=0.05)
plt.show()