diff --git a/Plotting.py b/Plotting.py index 2fa5fdb33e492f44dc645b64aa107e27bca0ce30..aaac2b5078eafcaaa5f930040e5507af6e807a7e 100644 --- a/Plotting.py +++ b/Plotting.py @@ -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')