Set the width of a subplot & leave all else unchanged
34 次查看(过去 30 天)
显示 更早的评论
I have code that generates the following figure with subplots:
I'd like to reduce the width of each subplot and leave more room to the subplotTitles at the left. Resizing the entire figure window doesn't work, as everything is resized proportionately. If I use the EditPlot tool, I can manually reduce the width of the subplot using the mouse:
and then manually move the subplotTitle to the left, bringing me to my desired figure layout:
However, I'd like to do this with code. I know from here that the [x,y,width,height] of the entire axes handle can be specified; however, I don't want to override the automatically-computed y position and height - I only want to reduce the width.
Can I somehow only scale the width param of each subplot, while leaving all others unchanged?
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subplots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!