bar3 width depend on zdata?
Afficher commentaires plus anciens
Ok, so I know how to make the colours on my bar graph depend on zdata ..
h = bar3(data);
for ii = 1:length(h)
zdata = get(h(ii), 'Zdata');
set(h(ii), 'Cdata', -zdata)
end
colormap gray
But, I think it would look much better if I could also make the width of the bars depend on my zdata too. I've seen this done in papers, just got no idea how to do it. There is a width option for bar3 graphs, however, it appears to be a scalar value only.
Any help would be appreciated.
1 commentaire
Craig Cowled
le 25 Avr 2013
Réponses (0)
Catégories
En savoir plus sur Color and Styling dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!