Plot function not working on Chromebook

x=1:10;
y=x.^2;
plot (x,y);
The above works as expected when running MATLAB Online from Chrome browser on Windows, but the plotted line does not show properly (start and end of line is visible, but not visible at intermediate points) when running on a Chromebook. I tried three different Chromebooks, same result on all.

2 Kommentare

Sam Chak
Sam Chak am 20 Nov. 2023
This is strange. Can you attach some images by clicking on this icon ?
Sheldon Walklin
Sheldon Walklin am 21 Nov. 2023
Here's what plot displays in the browser:

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Angelo Yeo
Angelo Yeo am 20 Nov. 2023

0 Stimmen

Would you let MATLAB Online use legacy graphics instead of WebGL graphics? To do this, set the "PaperOrientation" property of the figures to "LandScape":
f=figure(1);
f.PaperOrientation = 'LandScape';
fplot(@(x)sin(x));

1 Kommentar

Walter Roberson
Walter Roberson am 20 Nov. 2023
?!?
I'm going to have to remember this and investigate the implications later.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Line Plots finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 20 Nov. 2023

Kommentiert:

am 21 Nov. 2023

Community Treasure Hunt

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

Start Hunting!

Translated by