When I make a contour plot with Python, I have been using a set_aspect
function. Because this allows me to avoid image/contour-lines distortion caused by changing both axis.
: for example, ax1.set_aspect('equal', 'box-forced')
But, I just found that the option 'box-forced' is not valid in Python3.
So my question is, is there any alternative of the 'box-forced' option in Python3? I want exactly the same effect as the ax1.set_aspect('equal', 'box-forced')
in Python2.
Thanks!
I just found that there is a function plt.axis('scaled')
.
It seems that this does what I wanted in a recent version (3.7) of Python3.