Clear Filters
Clear Filters

Reduce Horizontal Spacing Between Subplots (Trouble With Subaxis)

5 views (last 30 days)
I'm trying to make generic m x n subplots as an output for a larger function, and I'd like to decrease the horizontal spacing between axes. I'm using subaxis successfully to adjust vertical spacing, but for some reason the horizontal spacing remains unchanged. Ultimately, I'd like to set a constant horizontal spacing parameter independent of the number of columns in the figure.
I've seen multiple posts about this issue but haven't been able to find an answer. Any suggestions?

Answers (1)

Walter Roberson
Walter Roberson on 29 Jun 2016
subAxis() is a File Exchange contribution, not part of MATLAB itself. It might have bugs. You can generate new axes with axes() and set the OuterPosition property as desired.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!