To explain my question i will give an example:

Let same i'm playing a game and i have 50Exp from 120Exp till i get my next level.

I would like to make a horizontal bar that shows 50/120 of the bar in green and the rest of it red. Just like progress bar but that depends on values and not on Matlab time calculation. I thought to use `Barh` graph but I don't need all the axis and stuff like this. I want it to look something like this.

[![enter image description here](https://i.stack.imgur.com/Y9ND7.jpg)](https://i.stack.imgur.com/Y9ND7.jpg)

If anyone knows i had like to know,

Thank you