Info
此问题已关闭。 请重新打开它进行编辑或回答。
Why does the set dimensions of my figure change upon saving?
1 次查看(过去 30 天)
显示 更早的评论
I begin my charting with the following code:
x0 = 10;
y0 = 10;
width = 556;
height = 588;
set(gcf,'units','pixels','position',[x0,y0,width,height],'Color','k','InvertHardcopy', 'off')
I create subplot(2,1,...)
And then I save using the following code:
saveas(gcf,'test.png')
If I save manually, there is no problem, but the code above changes the dimensions of my figure from the ones I start by setting. What is going on?
0 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!