I am using:
plt.bar(range(len(d)), d.values(), align='center')
plt.yticks(range(len(d)), d.keys())
plt.xlabel('frequency', fontsize=18)
plt.ylabel('keywords', fontsize=18)
plt.show()
and I am getting the output below:
but I want to show the corresponding bar for each keyword on the y-axis, rather than the x-axis. How can I achieve that?
yticksthe keys of the dictionary. Maybe you want to do that forxticks?