+ getSvgValue(_svgHeightField, DEFAULT_SVG_HEIGHT) + "\n");
writer.write("set out '" + svgFile.getAbsolutePath() + "'\n");
}
+ else {
+ // For screen output, gnuplot should use the default terminal (windows or x11 or wxt or something)
+ }
if (numCharts > 1) {
writer.write("set multiplot layout " + numCharts + ",1\n");
}
break;
}
// Make a temporary data file for the output (one per subchart)
- File tempFile = File.createTempFile("prunedata", null);
+ File tempFile = File.createTempFile("gpsprunedata", null);
tempFile.deleteOnExit();
// write out values for x and y to temporary file
FileWriter tempFileWriter = null;
if (currPoint.hasTimestamp())
{
if (!currPoint.getSegmentStart() && prevTimestamp != null) {
- seconds += (currPoint.getTimestamp().getSecondsSince(prevTimestamp));
+ seconds += (currPoint.getTimestamp().getMillisecondsSince(prevTimestamp) / 1000.0);
}
values.setData(i, seconds / 60.0 / 60.0);
prevTimestamp = currPoint.getTimestamp();
{
// Calculate speeds using the same formula as the profile chart
SpeedData speeds = new SpeedData(inTrack);
+ speeds.init(Config.getUnitSet());
final int numPoints = inTrack.getNumPoints();
ChartSeries values = new ChartSeries(numPoints);
{
// Calculate speeds using the same formula as the profile chart
VerticalSpeedData speeds = new VerticalSpeedData(inTrack);
+ speeds.init(Config.getUnitSet());
final int numPoints = inTrack.getNumPoints();
ChartSeries values = new ChartSeries(numPoints);