title: How to fix: "Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created." warning
body: <p>Anytime I try to plot anything with Matplotlib I get this warning. </p>
  
  <blockquote>
    <p><em>Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created.</em></p>
  </blockquote>
  
  <p>Does anyone know how to fix it?</p>
  
  <p>Tried googling any issues related to Qt bindings in Matplotlib - still couldn't fix this.</p>
  
  <p>Here is a simple code that would yield the warning</p>
  
  <pre class="lang-py prettyprint-override"><code>import numpy as np
  import matplotlib.pyplot as plt
  
  a = np.arange(1000) # the distribution doesn't matter
  plt.hist(a) # here could plt.scatter or plt.plot - would still get same error.
  plt.show()
  </code></pre>