title: Figure dimensions, matplotlib, python3.4
body: <pre><code># -*- coding: utf-8 -*-
  import numpy as np
  import matplotlib.pyplot as plt
  
  def fig1():
      x = np.arange(-5,5,0.01)
      f1 = lambda x: x**2 +x -6
      f2 = lambda x: x*0
      plt.plot(x, f1(x))
      plt.plot(x, f2(x),'black')
      axes = plt.gca()
      axes.set_ylim([-10,10])
      axes.set_xlim([-5,5])
      plt.show()    
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/8qos8.png" alt="enter image description here">
  How can I force this figure into specific dimensions? At the moment it is displayed on a rectangular plane, but I want to force the dimensions to be strictly n x n.</p>