Matlab's standard subplot function leaves large blank spaces around the plot area, and users have no control over them. Spaceplots is a function designed to control these spaces. The goal is to save space by creating compact subplots, and I wrote this function for that purpose. I believe it could be useful for others as well.

  1. First, create your figure and then use Spaceplots. This is a very non-intrusive feature.
  2. It works for all subplot arrangements, including mixtures of large and small plots.
  3. It retains the axis arrangement in the grid when manipulating the figure.
  4. It does not apply to multiple plots created by any function other than Matlab's default subplot.

I hope the function is simple enough that anyone can fix bugs or make modifications that suit their needs.