How to avoid scientific notation in stackedplot?

조회 수: 3 (최근 30일)
Kyle
Kyle 2025년 5월 13일
답변: Walter Roberson 2025년 5월 13일
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일
h = stackedplot(....);
oldstate = warning('off','MATLAB:structOnObject');
hstruct = struct(h);
warning(oldstate);
arrayfun(@(H)set(H.YAxis.Exponent, 0), hstruct.Axes, 'uniform', 0);

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by