R2023b and Sonoma bugs
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi
I just switched to Sonoma OSX (updated) and R2023b (updated).
Apparently there are some things not right.
For example, prior to this update, this used to work fine to set all my figures to some papersize:
>> set(groot,'DefaultFigurePaperSize',[30 30])
>> figure
>> get(gcf,'papersize')
ans =
8.2677 11.6929
Other properties, such as set(groot,'DefaultFigureColormap',summer), work fine
Any help?
thanks
0 Kommentare
Antworten (2)
Piyush Kumar
am 25 Apr. 2024
Hi,
One of the reasons might be that you have set the "papertype" of the current figure to 'a4'. As a workaround, try setting the "papersize" with gcf.
set(gcf,'papertype','a4')
get(gcf,'papersize')
set(groot,'DefaultFigurePaperSize',[30 30])
figure
get(gcf,'papersize')
set(gcf,'papersize',[30 30])
get(gcf,'papersize')
Hope this helps!
0 Kommentare
Brian Knolhoff
am 2 Mai 2024
Another way to do this is that you can set the DefaultFigurePaperType to '<custom>' and then it will pick up the DefaultFigurePaperSize. For example:
set(groot,'DefaultFigurePaperSize',[30 30]);
set(groot,'DefaultFigurePaperType','<custom>');
f = figure;
get(gcf,'papersize') % returns [30 30]
This will avoid the need to always set the 'papersize' property on gcf, as coded above.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!