Copying UIaxes into a figure with correct position

2 次查看(过去 30 天)
I have attached a picture which is a screenshot of a figure from matlab that is obtained by copying from UIaxes. So UIaxes position and size I have set it into something I want. And now when I tried to copy that into figure this is what I get which is wrong. How do I make it correct. Thank you.

采纳的回答

Govind Sankar Madhavan Pillai Ramachandran Nair
solved it:
newFigure = figure('visible','off');
copyobj(app.UIAxes,newFigure);
ax = gca;
ax.Position = [0.1300,0.1100,560,420];

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by