How to do a section plot- 2D discrete graphs and Z in colorbar

1 visualización (últimos 30 días)
Florent
Florent el 23 de Sept. de 2011
Hello,
I have a three columns vector, with which I would like to represent Y versus X on a discrete scatter plot, and z in colorbar (the color of each point).
Sorry if it seems a beginner answer but I can't manage to find that in the help.
Thanks

Respuestas (3)

Venn Ravichandran
Venn Ravichandran el 23 de Sept. de 2011
Can you use scatter(x,y,r,z), where r is an integer representing the size of the markers?
You could also use patch to plot x vs y, with z as the color, turn off the patch face color and use only the edges (Hint: set 'edgecolor' to 'interp').

Florent
Florent el 23 de Sept. de 2011

Florent
Florent el 23 de Sept. de 2011
patch is working fine thanks

Categorías

Más información sobre Colormaps 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!

Translated by