Plot colormapped lines and map values onto lines - plotcmap

Plots a colormapped 2-D or 3-D line that maps the values of another variable onto the colormap on the line. LineSpec available as in >>plot.

https://github.com/xiaoweixhe/plotcmap

Download
Download

You are now following this Submission

Cite As

Xiaowei He (2026). Plot colormapped lines and map values onto lines - plotcmap (https://in.mathworks.com/matlabcentral/fileexchange/110530-plot-colormapped-lines-and-map-values-onto-lines-plotcmap), MATLAB Central File Exchange. Retrieved .

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with R2014b and later releases

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0

- Added an output argument that displays the colorbar and returns the colorbar handle. E.g., [~, cb] = plotcmap(__).

Download
1.1.1

- Fixed a bug that causes errors when plotting on target axes.
- Minor updates in headline description.

Download
1.1.0

- Added support for using MATLAB predefined colormaps.
- Updates in the headline description including a few examples.

Download
1.0.0

Download