I created the below animation of the elastic pendulum using CairoMakie and this code.
My only qualm with it is the plot margins; they are too wide. I would like the Cartesian plane shown to span most of the animation window, not like 20% of it. How do I address this issue? I have tried to address this by setting the x and y limits and resolution, but these don’t seem to actually address this issue.
You can try autolimitaspect = 1 instead which will try to increase the limits to reach that aspect ratio. If you get a stack overflow because of layout cycles with that then fix the tick spacing with tight_ticklabel_spacing!(ax)