use boxes for histogram

This commit is contained in:
2019-12-27 12:38:24 +01:00
parent 19e6dd1102
commit aede78a285
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ public class HistogramAggregator implements CustomAggregator {
final char separator = ',';
final char newline = '\n';
final int numBins = plotSettings.getWidth() / 3;
final int numBins = plotSettings.getWidth() / 8;
final int binWidth = Math.max((int) (max) / numBins, 1);
final ToBins toBins = new ToBins(numBins, binWidth);

View File

@@ -56,7 +56,7 @@ public class HistogramHandler extends AggregateHandler {
@Override
void addPlot(final StringBuilder result, final AggregatedData aggregatedData, final LineStyle lineStyle,
final Optional<String> title) {
appendfln(result, "'%s' using 1:2 %s with lines axes %s lw 2 %s, \\", //
appendfln(result, "'%s' using 1:2 %s with boxes axes %s lw 1 %s, \\", //
aggregatedData.getDataFile().getAbsolutePath(), //
gnuplotTitle(title), //
gnuplotXYAxis(), //