Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

stough 202-

Preview: Spatial Resolution GIF Maker

Making an animation similar to the interactive slider in the spatial resolution demo.

Some pointers:

Had some issues trying to pad the figure correctly so that that animation showed the changing axis titles without putting too much padding on the other sides. Turns out setting the bottom of the rect argument to a slightly negative value allows the axis titles to be visible. Another issue was that the first frame of the saved gif had transparent background. As per here and here, I saw to add the savefig_kwargs dictionary to the gif saving code, forcing transparency off and sticking to white background.

<Figure size 1000x400 with 2 Axes>
Loading...