座標軸の目盛りの数値​だけ非表示にする方法​はありますか?

46 vues (au cours des 30 derniers jours)
MathWorks Support Team
MathWorks Support Team le 1 Avr 2020
Figure にグラフィックスを表示した際、座標軸(Axes) の x,y 座標の目盛りの数値の値だけ非表示にすることができるか、教えてください。
目盛り自体は表示したままにしたいです。

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 1 Avr 2020
Axes オブジェクト(座標軸)の目盛りの数値の文字列は、XTickLabel や YTickLabel プロパティで管理されています。
よって、その値を空のセル配列を設定することで、数値のみ削除されます。
x = linspace(0,10);
y = x.^2;
plot(x,y)
ax = gca;
ax.YTickLabel = cell(size(ax.YTickLabel)); % Y 軸の目盛り上の数値を削除

Plus de réponses (0)

Catégories

En savoir plus sur グラフィックス オブジェクトのプロパティ dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!