use boxes for histogram
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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(), //
|
||||
|
||||
Reference in New Issue
Block a user