python how do i apply a frame to the plot?

you can change this line:

ax.axis('equal')

to:

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

Output: tip: Im use fake data to this fig!

enter image description here

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top