Changing layers on a bar graph

3 views (last 30 days)
Jiaqi Wang
Jiaqi Wang on 1 Aug 2022
Commented: Jiaqi Wang on 4 Aug 2022
I am making a plot like this:
I want to move the green rectangles behind the two bars. Is there any ways to achieve that other than simply chanign the transparency?
Thanks for everyone who answers my question!

Accepted Answer

Adam Danz
Adam Danz on 1 Aug 2022
Edited: Adam Danz on 1 Aug 2022
Plot the green bars first, before the bar plot.
Alternatively use uistack to control the stacking order of graphics objects.
  5 Comments
Jiaqi Wang
Jiaqi Wang on 4 Aug 2022
This works perfectly! Thank you so much!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!