I'm trying to create a 3D bar plot that indicates the value of data across an array. I've been able to follow help and other answered questions to achieve a very close example of what I want:
The basic code I've used to achieve this is:
test = bar3(c,width);for k = 1:length(test) zdata = get(test(k),'ZData'); set(test(k),'CData',zdata); set(test(k),'FaceColor','interp');end
However, since the data is all greater than 0.75, I'm trying to emphasize the difference in sizes by rescaling the z-axis, however, simply changing the axis limits gives me:
I've also tried manually scaling the data in half, to achieve another similar type graph, but then my colorbar labels are incorrect:
Any hints or tips to work around this problem? A broken z-axis may work, but I'm not sure how to do that after several attempts despite searching some previous answered questions.
Best Answer