scatter3, colors indicate 3dimensions
显示 更早的评论
Dear all, I have 3 vectors, flux1, flux2 and temperature, both fluxes depending on temperature. I plotted all 3 in a figure using scatter3. Now I'd like to color the Markerpoints depending on their hight (=according temperature) so that the scatterpoint cloud is easier to read. I know with: scatter3(x,y,z,s,c), c gives an option to do this but I don't seem to understand how to create a c matrix. I randomly tried this:
figure
test = [flux1.';flux2.';temp.'].';
scatter3(flux1,flux2,temp,20,test,'*')
view([10 20])
zlabel('Temperature')
xlabel('sensible heat flux')
ylabel('latent heat flux')
set(gca,'Color',[0.8 0.8 0.8]);
but I'm not happy about it (too much white colored points for high values) and I'd love to actually understand where the coloring comes from my random c-matrix and how I can influence that. Any suggestions and hints? :)
Sorry if this is a very basic question but I couldn't find an answer in the Documentation and I'm pretty new to matlab.

采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Color and Styling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
