Cycle the colormap for t seconds with a color increment of inc.
Both parameters are optional. The default cycle time is 5 seconds and the
default increment is 2. If the option "inf" is given then cycle
continuously until Control-C is pressed.
When rotating, the original color 1 becomes color 2, color 2 becomes color 3, etc. A positive or negative increment is allowed and a higher value of inc will cause faster cycling through the colormap.
See also: colormap.
The following code
clf;
colormap (rainbow (128));
imagesc (1:8);
axis off;
title ("Rotate color bars to the right");
spinmap (3, 1);
Produces the following figure
| Figure 1 |
|---|
![]() |
Package: octave