|
Dear Sirs,
I have been trying for a time to use
JTimeSeriesDemo.java to plot my own time series. My data are 48 monthly data.
The plot is ok, but the X axis does not show the correct time range. thanks for
any help. amaral.
In TestData.java,I
replaced the code
case
TestData.RANDOM:
for(count=0; count < num; count++) { values[count] = amp*Math.random() + off; by values = readTrajectoryData ("my
file");
In JTimeSeriesDemo.java I replaced the code
try
{
start = new GeoDate("1998-11-01", "yyyy-MM-dd"); stop = new GeoDate("2001-02-20", "yyyy-MM-dd"); } catch (IllegalTimeValue e) {} TimeRange tr = new TimeRange(start, stop); td = new TestData(DadosFab.TIME_SERIES, tr, 1.0f, DadosFab.RANDOM, 1.2f, 0.5f, 30.0f); by
try
{
start = new GeoDate("1998-01-01", "yyyy-MM-dd"); stop = new GeoDate("2001-12-30", "yyyy-MM-dd"); } catch (IllegalTimeValue e) {} TimeRange tr = new TimeRange(start, stop); td = new DadosFab(DadosFab.TIME_SERIES, tr, 30.4f, DadosFab.RANDOM, 0.20f, 0 |