How to fix the colorbar in bar3
1 次查看(过去 30 天)
显示 更早的评论
Dear all, I would like to plot a bar3 graph. In order to plot bars as functions of their height, I have found the following code:
shading interp
% For each barseries, map its CData to its ZData
for j = 1:length(h)
zdata = get(h(j),'ZData');
set(h(j),'CData',zdata)
% Add back edge color removed by interpolating shading
set(h,'EdgeColor','k')
end
colorbar
My problem is that, during my dynamics, the colorbar changes in time. How can I fix it?
Thanks a lot.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Colorbar 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!