Clear Filters
Clear Filters

グラフのべき乗表示を任意の数値に設定したい

43 views (last 30 days)
啓史 千葉
啓史 千葉 on 23 Jan 2022
Commented: 啓史 千葉 on 28 Jan 2022
プロットしたデータのx軸が1*10^-5,2*10^-5....といったオーダーのグラフを作っているのですが,10^-5という数字が直感的にわかりにくいので,10*10^-6や10000*10^-9といったキリのいい数字で表示したいです.(画像の箇所です.)
そこで.べき乗の数字を任意の数字に設定する方法をご存知でしたらご教授ください.宜しくお願いいたします.

Accepted Answer

Atsushi Ueno
Atsushi Ueno on 23 Jan 2022
>べき乗の数字を任意の数字に設定する方法をご存知でしたらご教授ください
h = plot(0:1e-6:59e-6,0:1e-6:59e-6);
ax = ancestor(h, 'axes');
ax.XAxis.Exponent = -6;
ax.YAxis.Exponent = -9;
  1 Comment
啓史 千葉
啓史 千葉 on 28 Jan 2022
ありがとうございます!!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!