How to avoid scientific notation in stackedplot?

I have a stackedplot with 3 plots. The 2nd plot keeps using scientific notation. How do I AVOID scientific notation in the 2nd stackedplot's Y axis?

2 件のコメント

Torsten
Torsten 2025 年 5 月 13 日
編集済み: Torsten 2025 年 5 月 13 日
The 2nd plot keeps using scientific notation
Maybe the numbers are too large or too small for the "usual" representation ?
the cyclist
the cyclist 2025 年 5 月 13 日
It would be most helpful if you could share your code, or just create a simple mockup that illustrates the problem. Otherwise, we have to guess at a lot of things, and potentially waste our time and yours solving something that is not really your issue.

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

回答 (1 件)

Walter Roberson
Walter Roberson 2025 年 5 月 13 日

0 投票

h = stackedplot(....);
oldstate = warning('off','MATLAB:structOnObject');
hstruct = struct(h);
warning(oldstate);
arrayfun(@(H)set(H.YAxis.Exponent, 0), hstruct.Axes, 'uniform', 0);

カテゴリ

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

製品

リリース

R2022a

タグ

質問済み:

2025 年 5 月 13 日

回答済み:

2025 年 5 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by