Did you know that
subplot
Can be 2 create a non - uniformly distributed axes?For example,
Subplot (3,3,1), text (0.5, 0.5,"1","FontSize", 24,"Color","Red")
Subplot (31), text (0.5, 0.5,"2","FontSize", 24,"Color","Red")
Subplot (filling), text (0.5, 0.5,"3","FontSize", 24,"Color","Red")
Subplot (3, 3, 7 [4]), the text ([. 5. 5], [. 25, 75], ["7" "4"]."FontSize", 24,"Color","Red")
Subplot (3, 3, 9 [5]), the text ([. 25. 25, 75, 75], [. 25, 75. 25, 75], ["8" 5 "9" 6"]."FontSize", 24,"Color","Red")
As you can see, the third input argument to
subplot
Can be a vector that specifies the corners of the rectangular region. It 's not too complicated, but It does require some thought to figure out the appropriate parameters.
subplotHelper
Else you get these parameters by allowing you to interactively select the layout. Here 's the tool in action.
Very nice!
Check outtiledlayout(introduced in R2019b)
On a related note, if you 'r e using R2019b or later, check out the new function
tiledlayout
The and
nexttile
. These difference you a bit more control and additional "capabilities for axes layout over
subplot
. One of my favorite features of
tiledlayout
Is the "flow" option that automatically adjusts the layout -based on the figure the size and shape.
Of course,
tiledlayout
Can have a non - uniform distribution, just like with
subplot
.
Comments
difference
subplotHelper
A try, and let us know what you think
here
.
comments
To comment, please clickhereLog in to your MathWorks account or create a new account.