Filter löschen
Filter löschen

R2023b and Sonoma bugs

2 Ansichten (letzte 30 Tage)
Alessandro
Alessandro am 27 Mär. 2024
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

Antworten (2)

Piyush Kumar
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!

Brian Knolhoff
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.

Kategorien

Mehr zu Dialog Boxes finden Sie in Help Center und File Exchange

Produkte


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by