accuracy = [lr_acc, KNN_acc, svm_acc, nb_acc, dtc_acc, rf_acc] colors = ["orange", "red", "purple", "magenta", "green", "blue"] sns.set_style("whitegrid") plt.figure(figsize=(16, 5)) plt.yticks(np.arange(0, 100, 10)) plt.ylabel("Accuracy %") plt.xlabel("Algorithms") sns.barplot(x=methods, y=accuracy, palette=colors) plt.grid(b=None) plt.show()