How to specify color shade in bar graph?

2 次查看(过去 30 天)
if true
% code
load('Kennfeld1.mat');
bar3(Kennfeld1);
I am trying to plot the graph in bar
but the color shade of it is depending on the values of x and y axis and not the value in a array
how should i avoid it?

采纳的回答

madhan ravi
madhan ravi 2018-11-6
load('Kennfeld1.mat');
bar3(Kennfeld1);
colormap(summer)
  11 个评论
Shubham Mohan Tatpalliwar
it is better represnted in bar
isnt it possible in bar to have a color change with z axis?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Colormaps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by