red-green colour blind
22 次查看(过去 30 天)
显示 更早的评论
I am asked to replace red, green, blue curves in the plot to red-green colour blind.
Can someone please tell me how to get that code for color blind??
For example red is [1 0 0], green is [0 1 0], then color blind is [? ? ?]
3 个评论
Adam Danz
2019-5-7
编辑:Adam Danz
2019-5-7
If you are avoiding colors that a red-green color deficient person has trouble seeing, use any of the colors in the "deuteranopia" column in the link shared by KSSV.
If you prefer to set the colors manually, go to this online color picker, choose a color, and copy the RGB values on the left. Divide those numbers by 255 to convert them to normalized values for matlab.
so rgb(255, 237, 40) becomes [255,237,40]./255 = [1, .929, .157]
You got this!
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Distribution Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!