3D colored bar plot

Version (1.92 KB) by Johannes
3D bar plot with arbitrary coloring


Updated 17 Mar 2014

View License

This function creates a 3D bar plot with arbitrary coloring for each individual bar from an MxN matrix.
Bar heights = elements of the matrix
Bar colors = (1) user-specified colormap or (2) MxNx3 array of RGB color vectors.

It returns a matrix of figure handles for the individual bars in case you want to make further changes.

Cite As

Johannes (2023). 3D colored bar plot (https://www.mathworks.com/matlabcentral/fileexchange/45916-3d-colored-bar-plot), MATLAB Central File Exchange. Retrieved .

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

Inspired: 4dbarchart(x,y,zl,zu,col,width,nset)

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes