Plotting 3D stacked bar graph with 4D data

I'm trying to make a 3D stacked bar graph from a 4-column matrix or 4D array (let's call the columns x-y-z-e). For any x-y-e combo, there are multiple z values (sort of like a stacked 3D bar graph). I want to make a plot where the Z values are a gradient, instead of discrete stacks and e as a color scale
Here's an example from different software... I'm having trouble replicating it.
Thanks for any help, and apologies if this solution is out there and I have simply missed it

4 Comments

I have 4D matrix, bar3 uses 2D to plot
Did you ever find a solution to this problem? I need to do the same thing...same deaggregation plot of mag, dist, and epsilon.
Also here interested in the answer to this question.

Sign in to comment.

Categories

Asked:

on 26 Dec 2017

Commented:

on 20 Dec 2019

Community Treasure Hunt

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

Start Hunting!