Training Plotting code: Add minor gridlines.
This commit is contained in:
parent
02884dde26
commit
b30d6d9461
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue