Skip to content
Snippets Groups Projects
Commit 183738e9 authored by Laura Christine Kühle's avatar Laura Christine Kühle
Browse files

Fixed bug for ticks in bar plot.

parent cad015d0
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
@author: Laura C. Kühle
TODO: Give option to select plotting color
TODO: Fix bug for ticks in bar plot -> Done
"""
import numpy as np
......@@ -127,7 +128,7 @@ def plot_classification_accuracy(precision, recall, accuracy, xlabels):
ax.bar(pos - width, precision, width, label='Precision')
ax.bar(pos, recall, width, label='Recall')
ax.bar(pos + width, accuracy, width, label='Accuracy')
ax.set_xticks(x)
ax.set_xticks(pos)
ax.set_xticklabels(xlabels)
ax.set_ylabel('Classification (%)')
ax.set_ylim(bottom=0.6)
......@@ -135,4 +136,3 @@ def plot_classification_accuracy(precision, recall, accuracy, xlabels):
ax.set_title('Non-Normalized Test Data')
ax.legend(loc='upper right')
# fig.tight_layout()
fig.savefig('TestAdamPrecisionRecallAccuracy.pdf')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment