Conditionally Colored Plot (CCPLOT)

Plots conditionally colored (2D line) graphs.
1,2K téléchargements
Mise à jour 6 août 2012

Afficher la licence

Plots the vector Y versus vector X using conditional coloring based on colormaps.

The condition vector C is independent of the values of X and Y but must be the same size.

The colormap MAP can either be a Matlab or a userdefined colormap.

Example:
x = linspace(0,4*pi,50);
y = sin(x);
c = y.^2;
map = colormap(jet);
h = ccplot(x,y,c,map);
set(h,'Marker','o');

Citation pour cette source

Michael Heidingsfeld (2024). Conditionally Colored Plot (CCPLOT) (https://www.mathworks.com/matlabcentral/fileexchange/37725-conditionally-colored-plot-ccplot), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2010b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Colormaps dans Help Center et MATLAB Answers
Remerciements

Inspiré par : Conditionally colored line plot

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.1.0.0

* Fixed minor error in example

1.0.0.0