title: How to divide y-ticks by a certain number in matplotlib?
body: <p>I have a simple matplotlib histogram and I need to divide ylabels to a certain number.
  For example I have 100 200 and 300 while I need to have 1,2, and 3.
  Any suggestion?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>import numpy
  import matplotlib
  # Turn off DISPLAY
  matplotlib.use('Agg')
  import pylab
  
  # Figure aspect ratio, font size, and quality
  matplotlib.pyplot.figure(figsize=(100,50),dpi=400)
  matplotlib.rcParams.update({'font.size': 150})
  
  matplotlib.rcParams['xtick.major.pad']='68'
  matplotlib.rcParams['ytick.major.pad']='68'
  
  
  # Read data from file
  data=pylab.loadtxt("data.txt")
  
  # Plot a histogram
  n, bins, patches = pylab.hist(data, 50, normed=False, histtype='bar')
  #matplotlib.pyplot.subplots_adjust(left=0.1, right=0.9, top=0.9, bottom=0.1)
  
  # Axis labels
  pylab.xlabel('# of Occurence')
  pylab.ylabel('Signal Probability')
  
  # Save in PDF file
  pylab.savefig("Output.pdf", dpi=400, bbox_inches='tight', pad_inches=1)
  </code></pre>