Stop Windows MATLAB adjusting figure's position and size
Mostra commenti meno recenti
I am writing some MATLAB code to export some graphics, which is "large". I tested my code on Windows system and I found that the position and size of the figure were adjusted.
The Windows operating system enforces a minimum window width and a maximum window size. If you specify a figure size outside of those limits, the displayed figure will conform to the limits instead of the size you specified.
I wonder if there is some approah can stop Windows from changing the figure or adjust the minimum window width and maximum window size on Windows MATLAB?
I also tried to modify the position and size back. But I noticed that Windows MATLAB will change it back when I use `exportgraphics` to save the figure.
3 Commenti
SACHIN KHANDELWAL
il 20 Gen 2025
could you please share some code samples to reproduce the issue ?
Cunxin
il 20 Gen 2025
Rik
il 21 Gen 2025
Since the issue is not actually related to Matlab, have you tried looking for general Windows fora for advice on how to change these settings?
Risposte (1)
print(load('fig.mat').fig,'fig.pdf','-dpdf');
Categorie
Scopri di più su Creating, Deleting, and Querying Graphics Objects in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!