title: I tried to plot the horizontal histogram but I could not manage the ticks. How can I solve it?
body: <p>How can I manage the tick for this horizontal histogram?</p>
  <p>My code:</p>
  <pre><code>d1=pd.read_csv('Gold1.Dat')
  d1.dropna(subset=['WF (mV)'],how='any', inplace=True)
  
  binwidth=5
  m_n=np.floor(min(d1['WF (mV)'])/binwidth)*binwidth
  m_x=np.floor(max(d1['WF (mV)'])/binwidth)*binwidth+binwidth            
  print(m_n)
  print(m_x)
  print(m_x-m_n)
  binnum=int((m_x-m_n)/binwidth)
  print(binnum)
  a,b,c=plt.hist(d1['WF (mV)'],bins=binnum,range=(m_n,m_x),edgecolor='k',orientation='horizontal')
  
  plt.xticks(b,rotation=45)
  
  plt.tight_layout()
  plt.savefig('vertical histogram')
  </code></pre>
  <p><img src="https://i.stack.imgur.com/y4aBb.png" alt="Image of this graph" /></p>