title: How to use Python and matplotlib to customize a bar chart
body: <p>I am trying to plot a bar chart from a dictionary for Eg:</p>
  
  <pre><code>Dic = OrderedDict([('PROFESSIONAL_SERVICES', 621), ('WEB_SEARCH', 381), ('REMOTE_ACCESS', 160), ('Microsoft Category', 141), ('INTERNET_SERVICES', 62)])
  </code></pre>
  
  <p>I want to get a bar chart like the one in the following screenshot:</p>
  
  <p><a href="https://i.stack.imgur.com/JXGDv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JXGDv.png" alt="bar chart sample"></a></p>
  
  <p>Here is the code that I am using so far: </p>
  
  <pre><code>import matplotlib.pyplot as plt
  from  Processesing import dataProcess
  
  def chartmak (dic) :
      D={}
      D=dic
      plt.barh(range(len(D)), D.values(),align='center',color="#add8e6")
      plt.xticks(D.values, D.keys())
      plt.gca().invert_yaxis()
      plt.show()
  </code></pre>
  
  <p>NB: I am calling this function from another <code>.py</code> file</p>
  
  <p>Any idea if it is possible to get a bar chart like the one in the screenshot?</p>