Home > OS >  How can I adjust 3-D bar plot grouping space in MATLAB?
How can I adjust 3-D bar plot grouping space in MATLAB?

Time:03-01

I need to space out the bar groups along the x-axis in MATLAB so that all the plots can be seen. And if there are other ideas on how I can make all the columns visible, I'd really appreciate it. Thank you.

enter image description here

CodePudding user response:

By default enter image description here

To improve visibility you can make the bars thinner and maybe change the viewing angle:

bar3(x, 0.4), view(-20, 30) % set spacing and camera angle

enter image description here

Also, consider using an image instead of 3D bars, so that the height axis is replaced by a color scale (see enter image description here

  • Related