Format axes in plot
2 ビュー (過去 30 日間)
古いコメントを表示
Is it possible to color a single number (or a set of numbers) on one of the axes in Matlab?
Suppose I have a plot:
plot(1:10, rand(1,10))
Now, can I e.g. make the number 3 on the x-axis red?
Thanks!
1 件のコメント
Hanif
2013 年 5 月 21 日
try plot(1:10, rand(1,10), 'ForegroundColor','Red')
as for one number not too sure
回答 (1 件)
Jan
2013 年 5 月 22 日
Searching in the FileExchange for "tick label" finds a lot of interesting methods, e.g. http://www.mathworks.com/matlabcentral/fileexchange/36254-ticklabelformat-set-a-dynamic-format-of-axes-tick-labels. This will not solve the problem directly, but it contains enough details.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Axis Labels についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!