Skip to content Skip to sidebar Skip to footer

How To Enforce Both Xlim And Ylim While Using Ax.axis('equal')?

I want to use ax.axis('equal') to force even spacing on X & Y, but I also want to prescribe specific ranges for the X and Y axes. If the margins are also fixed, the problem is

Solution 1:

ax.set_aspect('equal',adjustable='box')

enter image description here


Post a Comment for "How To Enforce Both Xlim And Ylim While Using Ax.axis('equal')?"