title: Change x and y input range in Hexbin plot in Python
body: <p>I created a hexbin plot using the following code in Python:</p>
  <pre><code>df.plot(kind='hexbin', x='NO2', y='pre', gridsize=40, sharex = False)
  </code></pre>
  <p>and I get this figure,</p>
  <p><img src="https://i.stack.imgur.com/5Sqba.png" alt="figure 1" /></p>
  <p>I want to change the ranges of input x and y from default to [0,100]. I used the following line:</p>
  <pre><code>ylim = [0, 100], xlim  =[0, 100] 
  </code></pre>
  <p>However, with these lines added my figure gets distorted and mapped to a 100 by 100 grid with blank spaces appear on edges as below.</p>
  <p><img src="https://i.stack.imgur.com/9BYHD.png" alt="figure 2" /></p>
  <p>How can I change the input x and y range and not just distort the existing figure?</p>