File Exchange

image thumbnail

ColorSpectrum

version 1.1.0.0 (1.82 KB) by Ingo Hermann
ColorSpec; ColorSweep; Multicolor; Multiple Colors for Plots;

3 Downloads

Updated 02 Jul 2016

View License

This function enables to plot multiple datas with changing colors. It generates a array of colors in a area and can be adjusted as belows:
The function is function [ColSpec] = ColSpec(a,q,value,start,m,k,inv)
%Therefor "a" defines the amount of different colors
% "q" ist the qth value which is created
% "value" defines how far the sweep should be. So for value = 1
% the sweep goes form red to yellow to green to blue to violett.
% "inv" inverts the colors beginning from blue to green to red for any value but 0.
%start is the value at which color you want to start.
%start = 0 --> red
%start = 0.5 --> yellow
%start = 1 --> green
%start = 1.5 - 2 --> brigthblue
%start = 2.5 --> darkblue
%start = 3 --> pink
%m and q handels the brigthness of th curve

Comments and Ratings (1)

renqiang tian

Hello, Ingo Hermann.How does the graph above show? can you give an example?

Updates

1.1.0.0

Colorspec can be inverted so that the color goes from blue to green to red.

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor