title: What is wrong with the data that I am trying to send to matplotlib?
body: <p>I have the following script:</p>
  
  <pre><code>import pandas
  from collections import Counter
  import matplotlib.pyplot as plt
  
  while True:
      data = [int(x) for x in raw_input("Enter the list containing the data: ").split()]
      letter_counts = Counter(data)
      df = pandas.DataFrame.from_dict(letter_counts, orient="index")
      df.plot(kind="bar")
      plt.show()
  </code></pre>
  
  <p>When I either type or copy and paste a series or numbers, for instance, </p>
  
  <pre><code> 1 4 5 6 3
  </code></pre>
  
  <p>the script works perfectly and shows me the histogram. However, when I paste numbers from the output I get from a different terminal window, for instance:</p>
  
  <pre><code>  13 13 16 16 16 16 9 9 9 9 9 15 15 15 15 20 20 20 20 20 22 22 22 22 13
    13 13 13 12 12 12 12 12 16 16 16 16 15 15 15 15 15 15 15 15 15 15 15
    15 15 22 22 22 22 22 15 15 15 15 13 13 13 13 13 18 18 18 18 10 10 10
    10 12 12 12 12 12 10 10 10 10 20 20 20 20 20 15 15 15 15 15 15 15 15
    17 17 17 17 17 13
  </code></pre>
  
  <p>The first time I enter the data, it works perfectly; however, when I enter it the <em>second</em> time, it doesn't do anything and then I have to hit enter again. It shows me the plot, but when I close it, it gives me the following error:</p>
  
  <pre><code>&gt; Enter the list containing the data: Traceback (most recent call last):
  &gt; File "make_histo.py", line 9, in &lt;module&gt;
  &gt;     df.plot(kind="bar")   File "/usr/local/lib/python2.7/dist-packages/pandas/plotting/_core.py",
  &gt; line 2627, in __call__
  &gt;     sort_columns=sort_columns, **kwds)   File "/usr/local/lib/python2.7/dist-packages/pandas/plotting/_core.py",
  &gt; line 1869, in plot_frame
  &gt;     **kwds)   File "/usr/local/lib/python2.7/dist-packages/pandas/plotting/_core.py",
  &gt; line 1694, in _plot
  &gt;     plot_obj.generate()   File "/usr/local/lib/python2.7/dist-packages/pandas/plotting/_core.py",
  &gt; line 243, in generate
  &gt;     self._compute_plot_data()   File "/usr/local/lib/python2.7/dist-packages/pandas/plotting/_core.py",
  &gt; line 352, in _compute_plot_data
  &gt;     'plot'.format(numeric_data.__class__.__name__)) 
  TypeError: Empty 'DataFrame': no numeric data to plot
  </code></pre>
  
  <p>What am I doing wrong?</p>