diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2012-03-04 13:01:08 -0800 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2012-03-04 13:23:18 -0800 |
| commit | d7b0798050f72f08bcb3995c465efeb9bf9f516d (patch) | |
| tree | d23b2f6d33ee68c585e7a754a78f31bf066eb8a2 /data/pair-matching/roc.py | |
| parent | 88f7c5cc1cabcade583c41c55d9df3e5d8cab300 (diff) | |
| download | kinect-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-x | data/pair-matching/roc.py | 9 |
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() |
