Color a .ply according to Y value
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have the follwing plot that I generate:
Instead of having the background be white, i want the peaks of the curves to be white and as they increase in value, I want them to get darker. Does anyone have suggestions for this. The code and data file generates is linked HERE.
Instead of having the background be white, i want the peaks of the curves to be white and as they increase in value, I want them to get darker. Does anyone have suggestions for this. The code and data file generates is linked HERE. 2 comentarios
Ameer Hamza
el 8 de Mzo. de 2020
where is the file 'MunkS_500Hz.shd.mat'? It is also needed to run that code.
Respuestas (1)
Ameer Hamza
el 8 de Mzo. de 2020
What is the current colormap, you can reverse it by flipping the colormap matrix.
figure
p = pcshow(ptCloud);
colormap(gray)
p.Colormap = flipud(p.Colormap);
4 comentarios
Ameer Hamza
el 9 de Mzo. de 2020
You can create your own colormap. For example,
figure
colors = ...
[zeros(8, 3);
gray(10);
ones(12, 3)];
p = pcshow(ptCloud);
colormap(colors);
creates following figure

Ver también
Categorías
Más información sobre White en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
