How to move bars along the X axis in bar3?

4 views (last 30 days)
Milad Zarei
Milad Zarei on 27 Nov 2017
Answered: Sonam Gupta on 12 Dec 2017
I am trying to plot bars on a background image using bar3, but I can not get the bars on the right position.
I know this commend bar3(Y,Z) can help me to move the bar on the Y axis, but I need to move it along the X axis as well.
I attached an image to give you an idea what I want to make.
I appreciate your input. Thanks.

Answers (1)

Sonam Gupta
Sonam Gupta on 12 Dec 2017
Following is the link to a stackoverflow post suggesting a workaround to do the same:
However that will lock the code strongly to the current bar3 implementation which could cause future compatibility issues.

Community Treasure Hunt

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

Start Hunting!