I want to plot a line (which can be a thick line) in which I plot for every x the temperature as the color, so I want a 1D graph in which the color says the temperature on that place, is that possible?
may help, if you are happy enough to have a surface object rather than a line object. It still looks like a line, just has surface properties so is a little less easy to do any further manipulations to if you need to.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
1 Comment
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/495850-2d-information-to-1d-colorplot#comment_776500
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/495850-2d-information-to-1d-colorplot#comment_776500
Sign in to comment.