autoscale_view problem solved

Hi,

I finally found out what was happening with the method. I was setting the
interval argument for DayLocator to zero by mistake. This is what causes the
infinite loop to happen.

i.e. the following code will triger the infinite loop:

import matplotlib
from matplotlib.dates import DayLocator
d = DayLocator(interval=0)
from matplotlib.figure import Figure
fig = Figure()
ax = fig.gca()
ax.plot([732165.65085648152, 732166.22956018522], [2, 5])
ax.xaxis.set_major_locator(d)
ax.autoscale_view()

Thanks,
Maria Khomenko