MATLAB Answers

0

How to specify color shade in bar graph?

Latest activity Commented on by madhan ravi
on 6 Nov 2018
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?

  0 Comments

Sign in to comment.

1 Answer

Answer by madhan ravi
on 6 Nov 2018
 Accepted Answer

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

  11 Comments

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.