From b30d6d94618272cee1142f606b860d04d65e30a0 Mon Sep 17 00:00:00 2001 From: Brandon Amos Date: Fri, 18 Mar 2016 14:10:53 -0400 Subject: [PATCH] Training Plotting code: Add minor gridlines. --- training/plot-loss.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/training/plot-loss.py b/training/plot-loss.py index eb7d7b3..b201dc0 100755 --- a/training/plot-loss.py +++ b/training/plot-loss.py @@ -59,7 +59,8 @@ def plot(workDirs): plt.ylim(ymin=0) # plt.xlim(xmin=1) plt.grid(b=True, which='major', color='k', linestyle='-') - plt.grid(b=True, which='minor', color='k', linestyle='--', alpha=0.2) + plt.grid(b=True, which='minor', color='k', linestyle='-', alpha=0.2) + plt.minorticks_on() # ax.set_yscale('log') d = os.path.join(plotDir, "train-loss.pdf") fig.savefig(d) @@ -71,6 +72,9 @@ def plot(workDirs): plt.xlabel("Epoch") plt.ylabel("LFW Accuracy") plt.ylim(ymin=0, ymax=1) + plt.grid(b=True, which='major', color='k', linestyle='-') + plt.grid(b=True, which='minor', color='k', linestyle='-', alpha=0.2) + plt.minorticks_on() # plt.xlim(xmin=1) # ax.set_yscale('log') d = os.path.join(plotDir, "lfw-accuracy.pdf")