title: Matplotlib gives This application failed to start because it could not find or load the Qt platform plugin "xcb" in ""
body: <p>The following code gives error:
  Matplotlib gives This application failed to start because it could not find or load the Qt platform plugin "xcb" in "".</p>
  
  <pre><code>import matplotlib.pyplot as plt
  import numpy as np
  
  
  # Create the vectors X and Y
  x = np.array(range(100))
  y = x ** 2
  
  # Create the plot
  plt.plot(x,y)
  
  # Show the plot
  plt.show()
  </code></pre>