Commit 71472508 authored by Manuel Günther's avatar Manuel Günther
Browse files

Changed border space for all plots (except DET)

parent 72ee1de5
Pipeline #11575 passed with stages
in 12 minutes and 57 seconds
...@@ -121,7 +121,7 @@ def _plot_roc(frrs, colors, labels, title, fontsize=10, position=None, farfrrs=N ...@@ -121,7 +121,7 @@ def _plot_roc(frrs, colors, labels, title, fontsize=10, position=None, farfrrs=N
min_far = frrs[0][0][0] min_far = frrs[0][0][0]
ticks = [min_far] ticks = [min_far]
while ticks[-1] < 1.: ticks.append(ticks[-1] * 10.) while ticks[-1] < 1.: ticks.append(ticks[-1] * 10.)
pyplot.axis([min_far,1.,0.,1.]) pyplot.axis([min_far, 1., -0.01, 1.01])
pyplot.xticks(ticks) pyplot.xticks(ticks)
# set label, legend and title # set label, legend and title
...@@ -130,7 +130,6 @@ def _plot_roc(frrs, colors, labels, title, fontsize=10, position=None, farfrrs=N ...@@ -130,7 +130,6 @@ def _plot_roc(frrs, colors, labels, title, fontsize=10, position=None, farfrrs=N
pyplot.grid(True, color=(0.6,0.6,0.6)) pyplot.grid(True, color=(0.6,0.6,0.6))
pyplot.legend(loc=position, prop = {'size':fontsize}) pyplot.legend(loc=position, prop = {'size':fontsize})
pyplot.title(title) pyplot.title(title)
pyplot.ylim([0., 1.01])
return figure return figure
...@@ -180,7 +179,7 @@ def _plot_cmc(cmcs, colors, labels, title, fontsize=10, position=None): ...@@ -180,7 +179,7 @@ def _plot_cmc(cmcs, colors, labels, title, fontsize=10, position=None):
pyplot.xlabel('Rank') pyplot.xlabel('Rank')
pyplot.ylabel('Probability') pyplot.ylabel('Probability')
pyplot.xticks(ticks, [str(t) for t in ticks]) pyplot.xticks(ticks, [str(t) for t in ticks])
pyplot.axis([0, max_R, 0., 1.]) pyplot.axis([0, max_R, -0.01, 1.01])
pyplot.legend(loc=position, prop = {'size':fontsize}) pyplot.legend(loc=position, prop = {'size':fontsize})
pyplot.title(title) pyplot.title(title)
...@@ -201,11 +200,10 @@ def _plot_epc(scores_dev, scores_eval, colors, labels, title, fontsize=10, posit ...@@ -201,11 +200,10 @@ def _plot_epc(scores_dev, scores_eval, colors, labels, title, fontsize=10, posit
pyplot.xlabel('alpha') pyplot.xlabel('alpha')
pyplot.ylabel('HTER') pyplot.ylabel('HTER')
pyplot.title(title) pyplot.title(title)
pyplot.axis([-0.01, 1.01, -0.01, 0.51])
pyplot.grid(True) pyplot.grid(True)
pyplot.legend(loc=position, prop = {'size':fontsize}) pyplot.legend(loc=position, prop = {'size':fontsize})
pyplot.title(title) pyplot.title(title)
pyplot.xlim([-0.01, 1.01])
pyplot.ylim([-0.01, 0.51])
return figure return figure
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment