Graphs display upside down

I am using matlab online, 2021b
All graphs display upside down, including numbers, axis, and toolbox
Changing the renderer causes the graph to rerender and fixes the issue for graphs currently plotted, such as
set(gcf,'renderer','painters')
set(gcf,'renderer','opengl')
But does not stop new graphs from being upside down again.

1 件のコメント

Giancarlo Storti Gajani
Giancarlo Storti Gajani 2022 年 12 月 16 日
I have a similar problem, sometimes graphs start being displayed upside down and mirrored (as in you picture) and, from then on, they keep being displayed in that way. If matlab is restarted things go back to normal, at least for some time.
This happens mostly when some special display windows are generated, such as the "Reinforcement Learning pisode Manager"
Using Matlab 2022b on Ubuntu 20.04

サインインしてコメントする。

回答 (3 件)

Joana Gomes
Joana Gomes 2021 年 12 月 14 日

0 投票

try using
set(gca,'YDir','reverse');
worked for me

1 件のコメント

Walter Roberson
Walter Roberson 2026 年 3 月 1 日 21:22
Setting YDir will not affect the direction that the text is displayed. The sample posted by the user has the text upside down.
figure(1)
plot(1:5)
figure(2)
plot(1:5)
set(gca, 'YDir', 'reverse')
Notice that the text stays upright in both cases.

サインインしてコメントする。

NICO
NICO 2026 年 3 月 1 日 21:11

0 投票

Hi,
If anyone else is still experiencing this problem, they can resolve it with this command.
set(0, 'DefaultFigureRenderer', 'painters')
MATLAB R2021a Ubuntu 24.04 LTS

カテゴリ

ヘルプ センター および File ExchangeGraphics Performance についてさらに検索

製品

リリース

R2021b

質問済み:

2021 年 11 月 12 日

コメント済み:

2026 年 3 月 1 日 21:22

Community Treasure Hunt

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

Start Hunting!

Translated by