title: Matplotlib - _tkinter.TclError: bad screen distance "320.0"
body: <pre><code>File "main.py", line 52, in &lt;module&gt;
      r2n(name)
  
    File "C:\Users\Riki\Documents\Universita\Erasmus\Personalization and Metadata modeling 02817\Final Project\friends_followers__redis_to_networkx.py", line 69, in r2n
  
      **nx.draw_spring(g,node_size=50,node_color='#32CD32',node_shape='o',edge_color='.1',with_labels=True,width=0.5)**
  
    File "C:\Python27\lib\site-packages\networkx-1.6-py2.7.egg\networkx\drawing\nx_pylab.py", line 876, in draw_spring
      draw(G,spring_layout(G),**kwargs)
  
    File "C:\Python27\lib\site-packages\networkx-1.6-py2.7.egg\networkx\drawing\nx_pylab.py", line 124, in draw
      cf=pylab.gcf()
  
    File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line 369, in gcf
      return figure()
  
    File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line 343, in figure
      **kwargs)
  
    File "C:\Python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 81, in new_figure_manager
      canvas = FigureCanvasTkAgg(figure, master=window)
  
    File "C:\Python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 188, in __init__
      self._tkcanvas.create_image(w/2, h/2, image=self._tkphoto)
  
    File "C:\Python27\lib\lib-tk\Tkinter.py", line 2198, in create_image
      return self._create('image', args, kw)
  
    File "C:\Python27\lib\lib-tk\Tkinter.py", line 2189, in _create
      *(args + self._options(cnf, kw))))
  
  **_tkinter.TclError: bad screen distance "320.0"**
  </code></pre>
  
  <p>Hi, I'm working on Python 2.7 for Windows 64bit.
  Suddenly that problem occurred, but my code should be ok because was working previously (without any change the plots were visible).</p>
  
  <p>I think that is a problem with the library, what shall I do?</p>