x-Axis Origin Line

Hi,

By using the same set of code, I found the x-Axis origin line is populate differently. I would like it populate like this:

But sometime it would be like this:

I want the line move from position 1 to 2. Is there anyway to control?

I found the solution. Basically is the step from minY must be exactly equal to zero.