Azzera filtri
Azzera filtri

2D scatter plot with Z-value in color

239 visualizzazioni (ultimi 30 giorni)
Hi all,
It’s a basic question but I struggle to find the answer on the Internet...
I have a matrix with x,y and z colum, representing the c-coordinate, the y-coordinate and depth (z).
I’d like to plot (x,y) but that those points show a colorscale depending on the depth value (just the point colors I don’t want an interpolation).
Can somebody help me please?
  1 Commento
Caoimhe Madine
Caoimhe Madine il 31 Mar 2020
Would anyone be able to tell me how to do this but then interpolate the colours?

Accedi per commentare.

Risposta accettata

Walter Roberson
Walter Roberson il 30 Lug 2013
pointsize = 10;
scatter(x, y, pointsize, z);
  10 Commenti
Mateusz Surma
Mateusz Surma il 17 Gen 2020
Not sure if you still need the color bar:
cb = colorbar();

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Data Exploration in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by