summaryrefslogtreecommitdiffstats
path: root/data/pair-matching/roc.py
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2012-03-04 13:01:08 -0800
committerThibaut Horel <thibaut.horel@gmail.com>2012-03-04 13:23:18 -0800
commitd7b0798050f72f08bcb3995c465efeb9bf9f516d (patch)
treed23b2f6d33ee68c585e7a754a78f31bf066eb8a2 /data/pair-matching/roc.py
parent88f7c5cc1cabcade583c41c55d9df3e5d8cab300 (diff)
downloadkinect-d7b0798050f72f08bcb3995c465efeb9bf9f516d.tar.gz
Set font size, figsize, and bounding box of plots
Started taking Brano's comments into account (section 3)
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()