How to make x axis lie on y=0 on Octave gnuplot?

gnuplot, octave

Solution

You can add zeroaxis with the `set` command:

plot(...)
set(gca, "xaxislocation", "zero")

You may also want to add:

set(gca, "box", "off")

There is a similar discussion on the octave mailinglist.

Problem

How to make x axis lie on y=0? Right now it's lying on whatever is ymin.

Original source