How to overlay bar3 plots

조회 수: 3 (최근 30일)
Anthony Sigillito
Anthony Sigillito 2020년 5월 22일
댓글: Anthony Sigillito 2020년 5월 26일
Is there a good way to overlay two bar3 plots? I would like to plot a matrix using bar3 but then compare that to another matrix with generally larger values. I imagine overlaying a wireframe of the bar3 matrix with the larger values and having a solid color bar3 plot underlaid.

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 5월 22일
Something like this?
x = rand(1,10);
y = rand(1,10);
figure
b1 = bar3(x, 'r');
hold on;
b2 = bar3(y, 'b');
b1.FaceAlpha = 0.5;
b2.FaceAlpha = 0.5;
  댓글 수: 1
Anthony Sigillito
Anthony Sigillito 2020년 5월 26일
Thanks! That's exactly what I was trying to do.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by