X-Git-Url: https://gitweb.fperrin.net/?a=blobdiff_plain;f=tim%2Fprune%2Ffunction%2Fcharts%2FCharter.java;h=ef3cc955f61f260f6ce3ed724424631d6a2c7a53;hb=a6197ddcaac11c0b943183da7d46169742d024af;hp=0bb377fe2b1c4fe728b1020c1fe6799456ce6a66;hpb=4d5796d02a15808311c09448d79e6e7d1de9d636;p=GpsPrune.git diff --git a/tim/prune/function/charts/Charter.java b/tim/prune/function/charts/Charter.java index 0bb377f..ef3cc95 100644 --- a/tim/prune/function/charts/Charter.java +++ b/tim/prune/function/charts/Charter.java @@ -284,6 +284,9 @@ public class Charter extends GenericFunction + 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"); } @@ -374,7 +377,7 @@ public class Charter extends GenericFunction 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; @@ -517,6 +520,7 @@ public class Charter extends GenericFunction { // 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); @@ -540,6 +544,7 @@ public class Charter extends GenericFunction { // 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);