GUIのaxesの座標軸を消す

130 visualizaciones (últimos 30 días)
qrqr
qrqr el 23 de Mayo de 2019
Comentada: Etsuo Maeda el 27 de Mayo de 2019
guideコマンドを入力しGUIを作っています。
GUI画面に画像を貼ることは可能でしょうか?
fig作成画面では張り付ける機能がなさそうなので、
OpeningFcn(~)のところで張り付ける関数があるのでしょうか。
宜しくお願いします。
追記
axes(handles.axes1);
Im=image(imread('test.png'));
このコマンドでaxes1に画像を表示できました。
ですが座標軸も表示されてしまい消すことができません。

Respuesta aceptada

Etsuo Maeda
Etsuo Maeda el 27 de Mayo de 2019
Figureの軸要素はAxesで設定します。親子関係は Figure - Axes - Object (今回はimage) という順になっています。
ax = gca;
ax.XTickLabel = []; % X軸TickLabelに空を設定
と記述すれば、XTickLabelが消えます。他の項目も同様に設定することができます。
ご参考:ドキュメンテーション「Axes のプロパティ」
HTH
  2 comentarios
qrqr
qrqr el 27 de Mayo de 2019
ありがとうございます。
周りの枠線も消すことは可能でしょうか?
宜しくお願い致します。
Etsuo Maeda
Etsuo Maeda el 27 de Mayo de 2019
plot(rand(5))
ax = gca;
ax.XAxis.Visible = 'off'
とすれば、Xを全部消すことができます。Yも同様です。
HTH

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Productos


Versión

R2015b

Community Treasure Hunt

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

Start Hunting!