Changing the position of 'X 10^{-x}' in a plot

9 ビュー (過去 30 日間)
Matt Karlson
Matt Karlson 2019 年 3 月 5 日
コメント済み: Jan Ludwig 2020 年 3 月 6 日
Hello,
I've been searching the documentation for a solution to this issue but haven't come across anything.
When the scale of the y axis is of order 10^{-x}, where x > 0, then MATLAB automatically adjusts the Y axis labels to sicentific notation and appends a 'X 10^{-x}' on the top left corner right outside the axes window. Is there a way to change the location of this using the get and set functions? I would like to add it inside the axes window. So far I've been able to do it manually by setting the YRuler exponent value = 0, adding a text box that appends 'X 10^{-x}' where I want it inside the axes window, and then manually adjusting the Y Tick labels. I was just wondering if there was a simpler way to do it without having to add the text box and adjusting the Y Tick labels because then the Y Tick label mode gets set to 'manual' and so, when zooming in on plots, the y axis does not automatically adjust.
I'm using MATLAB 2018 a.
Thanks,
Matt
  2 件のコメント
Rik
Rik 2019 年 3 月 5 日
If you don't find a better solution: you could add a listener to adjust the y ticks whenever the YLim property changes. That will at least deal with that problem.
Jan Ludwig
Jan Ludwig 2020 年 3 月 6 日
I'd also be interested in finding a solution.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by