グラフの目盛りを片方だけ非表示にする方法

グラフの目盛りをx軸の上側だけ、もしくはy軸の右側だけ非表示にする方法はありますでしょうか。

 Accepted Answer

madhan ravi
madhan ravi on 1 Feb 2021

0 votes

set(gca, 'Ytick', 'none')
Error using matlab.graphics.axis.Axes/set
Value must be a numeric vector whose values increase.

More Answers (1)

Akira Agata
Akira Agata on 1 Feb 2021

0 votes

box off と設定したときに表示されるプロットのようなイメージでしょうか?
figure
plot(magic(4))
box off

1 Comment

Masaki Nakamori
Masaki Nakamori on 1 Feb 2021
ありがとうございます。まさしく認識のとおりです。
ここで「box off」せずにy軸の片側だけやx軸の片側だけのtickを非表示にする方法を探しております。
よろしくお願いいたします。

Sign in to comment.

Categories

Find more on Aerospace Blockset in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!