human
Matplotlib.animation: how to remove white margin
assistant
Here is some code to set the size of figure `fig` in inches to width height of `w`, `h`

fig.set_size_inches(w, h, forward=True)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.