필터 지우기
필터 지우기

Plot the values between the range

조회 수: 1 (최근 30일)
Gopalakrishnan venkatesan
Gopalakrishnan venkatesan 2015년 11월 25일
댓글: Mike Garrity 2015년 11월 30일
I need to plot the values between the range using the bar plot ?
for example
Bar A 10-15
Bar B 25-30
Bar C 45-50
How can i do this ?
Thanks a lot

채택된 답변

Thorsten
Thorsten 2015년 11월 25일
h = bar([10 25 45; 5 5 5]', 'stacked');
set(h(1), 'FaceColor', 'w', 'EdgeColor', 'w')
  댓글 수: 2
Gopalakrishnan venkatesan
Gopalakrishnan venkatesan 2015년 11월 30일
Problem i face here is when i am using the above command I cannot able to complete the grid lines. How to overcome this??
Thanks a lot
Mike Garrity
Mike Garrity 2015년 11월 30일
Instead of setting FaceColor and EdgeColor to white, try setting Visible to off.
set(h(1), 'Visible','off')

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by