# demonstrate bug 1304, where crossing a day boundary causes a data load and plot symbol connector reset.

from org.virbo.autoplot import AutoplotUI
from java.lang import Thread
from org.das2.graph import PsymConnector

plot( "http://cdaweb.gsfc.nasa.gov/istp_public/data/polar/hydra/hyd_h0/$Y/po_h0_hyd_$Y$m$d_v01.cdf?ELECTRON_DIFFERENTIAL_ENERGY_FLUX&slice1=0&timerange=2000-01-10" )

waitUntilIdle()

dom.plotElements[0].style.symbolConnector= PsymConnector.DOTFINE

dom.plots[0].xaxis.range= DatumRangeUtil.parseTimeRange('2000-01-10T22:00/23:00')
waitUntilIdle()
Thread.sleep(100)

dom.plots[0].xaxis.controller.dasAxis.scanNext()
waitUntilIdle()
Thread.sleep(100)

dom.plots[0].xaxis.controller.dasAxis.scanNext()
waitUntilIdle()
Thread.sleep(100)

print dom.plotElements[0].style.symbolConnector

