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]
evidence = hough_forests(edges)
fig = plt.figure(figsize=(20, 20))
plt.imshow(evidence, cmap="gray")
No matter what value I put in figsize, the image appears squeezed because it has a lot more rows than columns. I have tried
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (20,20)
posted How do you change the size of figures drawn with matplotlib? but it does not work as well. I noticed that the figsize command only works when I am using subplots for multiple images.
It also does not work if I set aspect='equal'