Graph data series with colors

6 vues (au cours des 30 derniers jours)
ignacio bobadilla tapia
ignacio bobadilla tapia le 27 Juil 2021
Réponse apportée : Chunru le 28 Juil 2021
Along with say hello, I am attaching a .txt, where the first column is the X axis, the second column is the Y axis, and the third column represents the magnitude.
What I need is a 2D graph of X vs Y, and with a colorbar (color scale) that represents the magnitude of the third column.
Thanks greetings.

Réponses (1)

Chunru
Chunru le 28 Juil 2021
load data.txt
scatter(data(:,1), data(:,2), [], data(:,3), 'filled'); colorbar;

Catégories

En savoir plus sur 2-D and 3-D 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