- #1
jemma
- 36
- 0
I want to plot a bar plot using matlab.
For example:
x = [0.4 0.5 0.7 0.2 0.1 0.8]
bar(x)
ylim([0 1])
now I want the x-axis to intercept the y-axis at 0.5 so that any bars >0.5 lie above the x-axis and any bars <0.5 are below.
Is this possible?
Thanks.
For example:
x = [0.4 0.5 0.7 0.2 0.1 0.8]
bar(x)
ylim([0 1])
now I want the x-axis to intercept the y-axis at 0.5 so that any bars >0.5 lie above the x-axis and any bars <0.5 are below.
Is this possible?
Thanks.