Shaped colorplot

2D or 3D shaped colorplot: useful to represent surface properties

You are now following this Submission

Function to represent 2D or 3D objects filled with the appropriate colormap according to an additionally provided set of values.
Fill the lack of MatLab functions to provide contour plots of 2D and 3D shaped objects.

Inputs: figure handle ([] if unknown), plot dimensions (2 or 3), vectors x, y, z ([] if 2D), vector of property values used to create the colormap.

Outputs: shaped colorplot with legend, eventually figure handle and matrix containing colormap.

Warnings: 1) The colormap contains 14 levels for reading clarity
2) The graph creation can take some time for large matrices

Cite As

Fanny Besem (2026). Shaped colorplot (https://www.mathworks.com/matlabcentral/fileexchange/32415-shaped-colorplot), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

1)The colormap has been enlarged to 14 levels
2)The legend has been updated to perfectly match the color levels and facilitate the color reading

1.0.0.0