Figures from code executed on Answers are tiny

When I run code here at Answers, generated figures are now much, much smaller than they used to be. (I can't remember how long this has been going on, or even if it happens every time.)
I've attached a screenshot from this recent question. Anyone else see this behavior?

댓글 수: 22

Paul
Paul 2024년 2월 15일
Yes. Seems to be an issue for users that updated to and posting from Windows 11? That seemed to be the issue discussed here.
Hm. I'm using a Mac.
Unless it is the original poster's OS that matters?
It seems not to be consistent. Thses plots seem appropriately-sized —
x = 0:0.01:5;
y1 = sin(2*pi*x);
y2 = cos(2*pi*x);
figure
plot(x, y1)
grid
figure
plot(x, [y1; y2; y1.*y2+randn(size(x))/10])
grid
Let's see ...
x = 0:0.01:5;
y1 = sin(2*pi*x);
y2 = cos(2*pi*x);
figure
plot(x, y1)
grid
Strange.
My plots seem to be normal when I plot them, even when I look at the later, although your version of my first plot is definitely reduced.
Are you seeing my plots as normal or reduced?
Dyuman Joshi
Dyuman Joshi 2024년 2월 15일
편집: Dyuman Joshi 2024년 2월 19일
@Star Strider, your plots seems normal to me on Windows 11 - Google Chrome (latest version). However, the plots by @the cyclist are small to me as well.
I have seen this behaviour earlier as well, but sparsely. I will link them here if I find any.
I will check this on my personal PC and update here when I get back home.
Edit - The behaviour is still the same (as mentioned above) on Windows 10 - Mozilla Firefox (latest version).
Paul
Paul 2024년 2월 17일
편집: Paul 2024년 2월 17일
Something has definitely changed, and I'm not using Windows 11.
In this thread, all plots look full size.
But in this very recent thread, the plot has shrunk. As reported by @William Rose and/or @Torsten, the plots in the recent thread looked normal when I was editing the post, but then got smaller afer I click submi (though not has much as suffered by others).
I've complained internally about this... without response though :(
My hypothesis is that it might have to do with which browser is being used by the person submitting the code.
Dyuman Joshi
Dyuman Joshi 2024년 2월 19일
편집: Dyuman Joshi 2024년 2월 19일
Since @the cyclist is using a Mac, most likely he uses the Safari browser.
Maybe you could try and check out your own hypothesis, @Walter, if you don't mind?
I use Chrome.
But I'll post this reply with generated figure from Safari.
x = 0:0.01:5;
y1 = sin(2*pi*x);
y2 = cos(2*pi*x);
figure
plot(x, y1)
grid
Is the relative size affected by the zoom level of the display you're using in the browser? What is your browser's zoom level?
% Edge: Zoom 150%
x = 0:0.01:5;
y1 = sin(2*pi*x);
y2 = cos(2*pi*x);
figure
plot(x, y1)
grid
% Edge: Zoom 100%
x = 0:0.01:5;
y1 = sin(2*pi*x);
y2 = cos(2*pi*x);
figure
plot(x, y1)
grid
Paul
Paul 2024년 2월 19일
Looks like @Image Analyst is onto something .....
But my plot with 100% zoom is still not as big (nor as bright) as @Star Strider's plots in this comment.
Hmm, maybe Star had a zoom level less than 100%?
% Edge: Zoom 75%
x = 0:0.01:5;
y1 = sin(2*pi*x);
y2 = cos(2*pi*x);
figure
plot(x, y1)
grid
Paul
Paul 2024년 2월 19일
Well, how 'bout that ....
I get the same results as posted here in Firefox, DuckDuckGo, and Edge (the only browsers I currently have installed). The zoom levels are all between 80% - 100% in my various browsers, however the scale differences persist and are the same in each. For me, the plots in my earlier Comment are all larger than all the others, the others being diminished to about ½ the size (both width and height) with respect to mine.
I obviously have no idea what others are seeing, or if each person’s own plots are scaled differently for them than the others, as mine are for me.
I attacned an Edge screenshot. (it saved as .jpg, I didn’t see other available options or I’d have chosen .png.)
.
Zoom level does affect it! Here, I have zoomed down to 50%
x = 0:0.01:5;
y1 = sin(2*pi*x);
y2 = cos(2*pi*x);
figure
plot(x, y1)
grid
Firefox... I confirm that zooming down to 50% results in a larger final plot.
(Answers Dev) Thank you all for you help looking into this. I have forwarded a link to this thread to MW developers.
Paul
Paul 2024년 2월 21일
@William Rose, @Torsten, in case you haven't been following this thread ....

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2024년 2월 17일

0 개 추천

You might get more attention from the developers if you post here:

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

태그

질문:

2024년 2월 15일

댓글:

2024년 2월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by