title: How to force matplotlib to scale images?
body: <p>I have an issue that has been plaguing me since I started working on notebook python. I have a simple snippet to display an image of type float64 with a size 
   of [714,180]</p>
  
  <pre><code>evidence = hough_forests(edges)
  fig = plt.figure(figsize=(20, 20))
  plt.imshow(evidence, cmap="gray")
  </code></pre>
  
  <p>No matter what value I put in figsize, the image appears squeezed because it has a lot more rows than columns. I have tried </p>
  
  <pre><code>import matplotlib.pyplot as plt
  plt.rcParams["figure.figsize"] = (20,20)
  </code></pre>
  
  <p>posted <a href="https://stackoverflow.com/questions/332289/how-do-you-change-the-size-of-figures-drawn-with-matplotlib/4306340">How do you change the size of figures drawn with matplotlib?</a> but it does not work as well. I noticed that the figsize command only works when I am using subplots for multiple images.</p>
  
  <p>It also does not work if I set <code>aspect='equal'</code></p>
  
  <p><a href="https://i.stack.imgur.com/teNZc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/teNZc.png" alt="enter image description here"></a></p>