title: How to plot Horizontal bar graph from a dictionary using matplotlib?
body: <p>I am using:</p>
  
  <pre><code>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()
  </code></pre>
  
  <p>and I am getting the output below:
  <img src="https://i.stack.imgur.com/Gt5EE.png" alt="enter image description here"> </p>
  
  <p>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?</p>