Borrar filtros
Borrar filtros

how to color a surface?

1 visualización (últimos 30 días)
roro6992
roro6992 el 25 de Ag. de 2013
Evrytime i try to color a surface the entire plot comes out to be pitch black in color. i tried these codes..please temme if they r right or wrong.
figure(6)
colormap hsv
surf(ti,X,P_s)
colorbar
ylabel('Distance along pipeline (m)')
xlabel('time (hours)')
zlabel('Pressure (bar)')
grid on
plzz help!
  10 comentarios
roro6992
roro6992 el 25 de Ag. de 2013
Editada: roro6992 el 25 de Ag. de 2013
When n where to use the opengl software command.?? Anyway thnx for helping man.
Walter Roberson
Walter Roberson el 25 de Ag. de 2013
The "opengl" command could be used at any point.

Iniciar sesión para comentar.

Respuestas (1)

Youssef  Khmou
Youssef Khmou el 26 de Ag. de 2013
I think your data have many isosamples, that makes the colormap concentrated because of the interpolation,add this command before using colormap :
shading interp

Categorías

Más información sobre Colormaps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by