The autolayout routine has always been one of the most opaque parts of Autoplot, being difficult to service and understand it's operation. The test test007 runs a script and fails periodically because autolayout kicks in and moves the ephemeris excessively. There was an arbitrary constant of "4" which was triggering the autolayout, so I changed this to the equally arbitrary "5" to see if that fixes the problem. We really need to just rewrite this relatively short routine.
See also https://sourceforge.net/p/autoplot/bugs/1022/