필터 지우기
필터 지우기

Question About bar plot

조회 수: 3 (최근 30일)
Raldi
Raldi 2012년 1월 27일
hello everyone, I wanted to ask if it is possible in a bar plot of lets say 200 items to make one bar red and keep all the others at their default colors?
  댓글 수: 1
Andrew Newell
Andrew Newell 2012년 1월 27일
Do you want 200 bars?

댓글을 달려면 로그인하십시오.

채택된 답변

Andrew Newell
Andrew Newell 2012년 1월 27일
Yes, by splitting your bar plot into two. Here is a simple example:
% First bar plot
xdata = 1:9;
ydata = rand(9,1);
bar(xdata,ydata); hold on
% Second bar plot
xdata = 10;
ydata = rand(1);
bar(xdata,ydata,'FaceColor','r','EdgeColor','r')
  댓글 수: 1
Raldi
Raldi 2012년 1월 27일
Thanks Andrew

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Bar Plots에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by