How to specify color shade in bar graph?

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?

 Accepted Answer

load('Kennfeld1.mat');
bar3(Kennfeld1);
colormap(summer)

11 Comments

color shade can be specified by using colormap()
its going with x axis and not the value in the array
how do you determine it? any picture of desired result?
in this actual example its changing with x axis and i want it to change it with z axis
you can see the edited pic now
is it your desired result which is in the graph?
no,
i want the colors to change along z axis
In the surf plot the color changes with change in z axis but
in bar graph its not happening
also the link show to change the limits and not the axis
why not represent the data as surf then?
it is better represnted in bar
isnt it possible in bar to have a color change with z axis?

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!