How to change the color of origin lines in a plot ?
6 ビュー (過去 30 日間)
古いコメントを表示
Below given is the code and its graph.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/619418/image.png)
But I want to change the colour of both the origin lines in the grid as depicted below, if it is possible. It's ok if both the line get same color but it would be fantastic if they both are of different color. (I don't want to center the origin or anything else, just a color change of both the identified lines).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/619423/image.jpeg)
0 件のコメント
採用された回答
Walter Roberson
2021 年 5 月 16 日
xline(0, 'color', [255 84 2]/255)
yline(0, 'color', [254 169 1]/255)
3 件のコメント
Walter Roberson
2021 年 5 月 16 日
I opened the image in MATLAB and used the data cursor to read off the colors; I did not refer to any site for the color codes.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!