Skip to content
Snippets Groups Projects
Commit 6c0c79fb authored by Schneider Leo's avatar Schneider Leo
Browse files

fix : overlapping title on plot fig

parent 7c5b6732
No related branches found
No related tags found
No related merge requests found
...@@ -120,6 +120,7 @@ def run_duo(args): ...@@ -120,6 +120,7 @@ def run_duo(args):
plt.ylabel('accuracy') plt.ylabel('accuracy')
plt.legend(loc="upper left") plt.legend(loc="upper left")
plt.ylim(0, 1.05) plt.ylim(0, 1.05)
plt.tight_layout()
plt.subplot(2, 1, 2) plt.subplot(2, 1, 2)
plt.plot(train_loss, label='train') plt.plot(train_loss, label='train')
...@@ -128,6 +129,7 @@ def run_duo(args): ...@@ -128,6 +129,7 @@ def run_duo(args):
plt.xlabel('epoch') plt.xlabel('epoch')
plt.ylabel('loss') plt.ylabel('loss')
plt.legend(loc="upper left") plt.legend(loc="upper left")
plt.tight_layout()
plt.show() plt.show()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment