How to overlay bar3 plots

3 visualizaciones (últimos 30 días)
Anthony Sigillito
Anthony Sigillito el 22 de Mayo de 2020
Comentada: Anthony Sigillito el 26 de Mayo de 2020
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.

Respuesta aceptada

Ameer Hamza
Ameer Hamza el 22 de Mayo de 2020
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 comentario
Anthony Sigillito
Anthony Sigillito el 26 de Mayo de 2020
Thanks! That's exactly what I was trying to do.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Annotations en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by