I mistakenly thought that the margin could not be set for individual subplots. It turns out that doing this:
margin := [-5mm, -5mm, 5mm]
will cause runtime errors, but simply removing the commas like this:
margin := [-5mm -5mm 5mm]
works perfectly, allowing me to crop the two subplots down to size. This is the result:
