Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Maintainin​g/Fixing/C​onstant Colorbar in an Animation

1 visualización (últimos 30 días)
gdz
gdz el 10 de Feb. de 2023
Cerrada: gdz el 10 de Feb. de 2023
Hi,
I have a system that could read the data from Arduino, and the data is passed to a Z and a 3D bar plotis display of Matlab. Although, I could set the colorbar range to 0 to 200, the color inside the colorbar keep changing when I adjust the input reading.
May I know are there any way I could fix the color of the colorbar?
b = bar3(Z,0.5);
h = colorbar;
set(h, 'ylim', [0 200]);
for k = 1:length(b)
zdata = b(k).ZData;
b(k).CData = zdata;
b(k).FaceColor = 'interp';
end

Respuestas (0)

La pregunta está cerrada.

Productos


Versión

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by