フィルターのクリア

How to change tick mark color on image plot.

133 ビュー (過去 30 日間)
Yonghe
Yonghe 2011 年 6 月 21 日
Hello,
I have a .jpg image that is plotted via image(). I need to have the tick marks inward with 'white' color. I'm able to change the tick marks to inward, but I'm unable to show the tick marks color in 'white'. If I have the tick mark outward, I can see the 'white' tick mark, when I have the tick mark inward, all tick marks just disappeared in the background color of the image. I searched and could not find a solution. May someone please help?
Thank you!
  1 件のコメント
Walter Roberson
Walter Roberson 2011 年 6 月 21 日
I know I've solved the opposite of this problem, where someone needed tick marks covered up; unfortunately I cannot think of the proper keywords to find that newsreader posting now.

サインインしてコメントする。

採用された回答

Yonghe
Yonghe 2011 年 6 月 22 日
Using 'Layer' property and setting it to top solved my issue. Thank you again for your help!

その他の回答 (2 件)

the cyclist
the cyclist 2011 年 6 月 21 日
The following command will change of the color of the x-axis tick marks and labels:
>> set(gca,'XColor',[1 1 1]); % Set RGB value to what you want
  5 件のコメント
Hernan Larriva
Hernan Larriva 2019 年 9 月 11 日
Thanks a lot! Best regards from Barcelona-Spain
Edney Almeida Nascimento
Edney Almeida Nascimento 2021 年 1 月 29 日
Thanks bro, it's work for me.
$ yyaxis left
$ set(gca,'YColor','#080808'); % put hexa color code. (Matlab 2019a)

サインインしてコメントする。


Walter Roberson
Walter Roberson 2011 年 6 月 21 日
Consider using the MATLAB File Exchange contribution plt -- if it does not have an option for this, then you should be able to modify the code to handle it.

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by