Shaped colorplot

2D or 3D shaped colorplot: useful to represent surface properties
305 Downloads
Updated 4 Aug 2011

View License

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 (2024). Shaped colorplot (https://www.mathworks.com/matlabcentral/fileexchange/32415-shaped-colorplot), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Contour Plots in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
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