I want to plot a bar plot using matlab.(adsbygoogle = window.adsbygoogle || []).push({});

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.

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# How to define where x axis intercepts y axis

Loading...

Similar Threads - define where axis | Date |
---|---|

Mathematica Can you tell me where can i download Maple? | Jan 6, 2017 |

Maple question: defining functions as inverse Fourier transforms | Jun 21, 2016 |

Trying to define a integrating function in Mathematica | Jun 11, 2016 |

Plotting an integral-defined function in MATLAB | Aug 5, 2015 |

Mathematica Globally Define Variable as Real | Nov 3, 2014 |

**Physics Forums - The Fusion of Science and Community**