How to change axis color in matlab?

2 次查看(过去 30 天)
Demeter Andreea
Demeter Andreea 2019-8-14
评论: dpb 2019-8-14
Hello again!
Can someone help me with a problem please? How to change axis color in matlab for this code:
Im = imread('4.png');
AxesH = axes('units','pixels','position', [320, 80, 290, 330], 'Visible', 'off');
image(Im, 'Parent', AxesH);
  2 个评论
Demeter Andreea
Demeter Andreea 2019-8-14
I already got the answer, thanks anyway guys :*
Put this after the code:
ax = gca;
ax.XColor = 'r'; % Red
ax.YColor = 'b'; % Blue
dpb
dpb 2019-8-14
For future reference, there's a link to axes properties in the documentation for Axes that will let you find all exposed properties.
Or, if you just type ax. at the command line, the auto-complete box will pop up and give you a list of properties from which to choose...

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by