.fig file places saved figure in a different position than that originally specified
Show older comments
I create a figure and set it's position using set(gcf,'position'...), and then use savefig to save the figure in a file. When I then double-click on the .fig file, it comes up in a position different than the one originally specified. Is there a way to keep the figure position intact in the saved .fig file?
7 Comments
Matt J
on 5 Dec 2025
Is the position, upon opening the file, consistent with what is in the metadata? What hapens if you do,
f=gcf;
f.Position=f.Position;
Clay Fulcher
on 5 Dec 2025
Clay Fulcher
on 5 Dec 2025
Benjamin Kraus
on 5 Dec 2025
What release of MATLAB are you using?
Walter Roberson
on 5 Dec 2025
@Clay Fulcher Do you have a second monitor on your system?
Clay Fulcher
on 5 Dec 2025
Clay Fulcher
on 5 Dec 2025
Accepted Answer
More Answers (0)
Categories
Find more on Printing and Saving 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!