How to equalize the scales of axes in Matplotlib in Python

Setting the limits of the axes in Matplotlib often causes the axes to be on different scales. Equalizing these axes corrects both to have the same scale.

Solution for How to equalize the scales of axes in Matplotlib in Python : You can use matplotlib.pyplot.axis() to equalize the scales of axes in Matplotlib{#axis}Call matplotlib.pyplot.axis(style) with style as “equal” to equalize the scales of the axes.


how-to-equalize-the-scales-of-axes-in-matplotlib-in-python