Mirror bar chart: 2 bar charts, 2 y axes, 1 x axis. Is it possible?
조회 수: 18 (최근 30일)
이전 댓글 표시
Hi all!
I want to get this mirror bar chart. Tried everything but nothing works.
Any idea?
댓글 수: 6
VBBV
2020년 10월 2일
%if true
% code
% end
a = (1:10)';
b = rand(10, 1);
c = rand(10, 1)*0.75;
figure
h1 = axes
bar(a,b);set(h1,'Ydir','normal'); hold(h1,'on')
h2 = gca
bar(a,-c)
set(h2, 'Ydir', 'reverse')
axis([0 10 -1 1])
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Bar Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!