Is it possible to set the size of a figure with labels?
5 views (last 30 days)
Show older comments
I would like to set the size of the whole figure and not the axes. Moreover, I dont want any margin, so for example x-label text lower bottom has to be touched to the bottom of the defined area!
0 Comments
Answers (2)
Walter Roberson
on 12 Nov 2015
Set the axes OuterPosition and Position to the size of the figure. Set the axes visibility off. Draw or text() any axes lines or labels or titles that you want so that you have control over exactly where they go.
0 Comments
Jan
on 12 Nov 2015
On one hand you talk about setting the figure size, but on the other hand setting the X-label depends on the size of the axes object. Therefore I assume, something is confused here.
You can simply play with the settings. Set the OuterPosition and Position of the figure and the of the axes and examine the effects. You will see directly on your screen what happens.
0 Comments
See Also
Categories
Find more on Axis Labels in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!