title: Bokeh Plot with a nominal or ordinal axis type
body: <p><em>Edit: The code in the original question refers to a version of Bokeh that is years out of date. But the answer below has been updated to answer the same question for modern versions of Bokeh</em></p>
  
  <hr>
  
  <h1>Bokeh Plot with a nominal axis type</h1>
  
  <pre><code>from bokeh.plotting import *
  from bokeh.objects import *
  output_notebook()
  
  label = ['United States', 'Russia', 'South Africa', 'Europe (average)', 'Canada', 'Austalia', 'Japan']
  number = [1, 2, 3, 4, 5, 6, 7]
  value = [700, 530, 400, 150, 125, 125, 75]
  yr = Range1d(start=0, end=800)
  
  figure(y_range=yr)
  rect(number, [x/2 for x in value] , width=0.5, height=value, color = "#ff1200")
  show()
  </code></pre>
  
  <p>I would like to label the bars with the regions in a <code>Bokeh Plot</code> bar chart. How can I plot a chart with classes (nominal or ordinal)? See the example <a href="http://en.wikipedia.org/wiki/File:Incarceration_Rates_Worldwide_ZP.svg" rel="nofollow noreferrer">http://en.wikipedia.org/wiki/File:Incarceration_Rates_Worldwide_ZP.svg</a>.</p>
  
  <p>NOTE: I'm using <code>Python v.2.7.6</code> and <code>IPython v.1.2.1</code>.</p>