With the code above, the axes aspect ratio is not exactly the same as the canvas aspect ratio (even after subtracting borders).
For setting exact axes aspect ratio setting, see this post
With the code above, the axes aspect ratio is not exactly the same as the canvas aspect ratio (even after subtracting borders).
For setting exact axes aspect ratio setting, see this post