How do I create and assign custom color scheme per value on a scatter3 plot?

3 vues (au cours des 30 derniers jours)
Plotting a path of latitude, longitude and altitude using scatter3, I want to assign a color scheme for each point based on its air temperature. How do I create a color gradient from the max/min temperatures values and automatically fill in the rest? Thank you.

Réponse acceptée

Star Strider
Star Strider le 23 Avr 2018
That seems to be described in the documentation for scatter3:
scatter3(X,Y,Z,S,C) draws each circle with the color specified by C.
  • If C is a vector with length equal to the length of X, Y, and Z, then the values in C are linearly mapped to the colors in the current colormap.
  4 commentaires
Chris
Chris le 24 Avr 2018
Thank you for your time!
Star Strider
Star Strider le 24 Avr 2018
As always, my pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Scatter Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by