title: how to fix Blank graphs when using figure module in PyDev?
body: <p>I have a problem when making graphs using matplotlib,
  for some simple graphs the library works fine, for example:</p>
  
  <pre><code>    import matplotlib.pyplot as plt
      plt.plot([1,2,3,4])
      plt.ylabel('some numbers')
      plt.show()
  </code></pre>
  
  <p>but when I use <em>figure</em> module, i get blank figures, like this</p>
  
  <pre><code>    import matplotlib.pyplot as plt
      import numpy as np
      fig, ax = plt.subplots()
      x = np.linspace(0, 10, 200)
      y = np.sin(x)
      ax.plot(x, y, 'r-', linewidth=2, label=r'$y=\sin(x)$', alpha=0.6)
      ax.legend(loc='upper center')
      plt.show()
  </code></pre>
  
  <p>I've tried the same code in a a different python editor or using the shell and it woks fine. I'm using :
  Windows,
  PyDev v4.2, 
  python v2.7.10 </p>