MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/IPython/comments/1bdz7a6/help_out/
r/IPython • u/Limit-of-Detection • Mar 13 '24
Hi all,
Not particularly adept with code, so I need help. i want to set my aspect ratio to a square/equal, but none of all the solutions I found online work. Anyone know how I can go about this? Thanks in advance.
2 comments sorted by
1
Try this https://www.freecodecamp.org/news/matplotlib-figure-size-change-plot-size-in-python/.
plt.figure(figsize=(8,8))
Probably stackoverflow? But check out set aspect ratio: https://matplotlib.org/stable/gallery/subplots_axes_and_figures/axis_equal_demo.html
1
u/NomadNella Mar 13 '24
Try this https://www.freecodecamp.org/news/matplotlib-figure-size-change-plot-size-in-python/.
1
u/Mr-Whitmore Mar 17 '24
Probably stackoverflow? But check out set aspect ratio: https://matplotlib.org/stable/gallery/subplots_axes_and_figures/axis_equal_demo.html