Skip to content
Snippets Groups Projects
Commit 97598946 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

revert to figure.set_tight_layout(True)

parent 2a839b13
No related branches found
No related tags found
1 merge request!88Improve the evaluate script plots
...@@ -121,7 +121,7 @@ def _plot_roc(frrs, colors, labels, title, fontsize=18, position=None, farfrrs=N ...@@ -121,7 +121,7 @@ def _plot_roc(frrs, colors, labels, title, fontsize=18, 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.tight_layout() figure.set_tight_layout(True)
return figure return figure
...@@ -147,7 +147,7 @@ def _plot_det(dets, colors, labels, title, fontsize=18, position=None): ...@@ -147,7 +147,7 @@ def _plot_det(dets, colors, labels, title, fontsize=18, position=None):
pyplot.ylabel('FNMR (%)') pyplot.ylabel('FNMR (%)')
pyplot.legend(loc=position, prop = {'size':fontsize}) pyplot.legend(loc=position, prop = {'size':fontsize})
pyplot.title(title) pyplot.title(title)
pyplot.tight_layout() figure.set_tight_layout(True)
return figure return figure
...@@ -194,7 +194,7 @@ def _plot_epc(scores_dev, scores_eval, colors, labels, title, fontsize=18, posit ...@@ -194,7 +194,7 @@ def _plot_epc(scores_dev, scores_eval, colors, labels, title, fontsize=18, posit
pyplot.title(title) pyplot.title(title)
pyplot.xlim([-0.01, 1.01]) pyplot.xlim([-0.01, 1.01])
pyplot.ylim([0, 51]) pyplot.ylim([0, 51])
pyplot.tight_layout() figure.set_tight_layout(True)
return figure return figure
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment