Plotting filled markers with colors
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
bertie
el 4 de Jun. de 2014
Comentada: bertie
el 4 de Jun. de 2014
Here is a simple snippet of code: %----------------------------------
b=bone; % for the 'bone' colormap
for m=1:64; plot(m*(1:5),'o','MarkerFaceColor',b(m,:)); hold on; end %-----------------------------------
I expected to see a gradient in the color of the markers from black to white, the two extremes in the 'bone' colormap. Instead, I see the colors range from deep blue to a lighter shade of blue. What am I doing wrong?
I have tried this with other colormaps (jet, etc.) as well but the output of the code never shows a color range varying between the extremes of the chosen colormap.
Thanks.
0 comentarios
Respuesta aceptada
Ver también
Categorías
Más información sobre Red 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!