How to get the size or position of the plot box within a figure window?
339 ビュー (過去 30 日間)
After much effort, I am still struggling to find the command to get the size or position of the plot box (i.e. the white box) within a figure window. What I really need is the aspect ratio of this white box, but a size or position command would get me there. I've tried variations of 'Position', 'PlotBoxAspectRatio', 'pbaspect',and 'DataAspectRatio' without luck.
For example, if I run the following command,
I want to know about the physical size/shape of the white box ONLY, not the grey box:
その他の回答 (1 件)
Hieu Nguyen 2018 年 2 月 9 日
You can use the subplot function:
pos = [0.3 0.6 0.2 0.4]; % [left bottom width height]
Then, you can plot the figure that you need: