Creating colours for given points on a graph
4 次查看(过去 30 天)
显示 更早的评论
I want a graph of t by n (t ranges from 0.1 to 100 and n from 0.01 to 100). And I have calculated roots between these ranges for an equation. I need to plot a gray or dark colour for positive root values and just white for negative root values but I am not sure how to do this. Can anyone help? I am relatively new to matlab
2 个评论
Walter Roberson
2013-4-12
Do you want a mesh plot or a surface plot or a scatter plot? If you want a mesh or surface plot, then what color should the joining lines or surfaces be? What color should the background be if you want the white values to show up?
回答(1 个)
Image Analyst
2013-4-15
One of the arguments to scatter is the color. Make an N by 3 array of doubles in the range of 0-1 which represent the RGB color for each of your elements.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!