use boxes for histogram
This commit is contained in:
@@ -61,7 +61,7 @@ public class HistogramAggregator implements CustomAggregator {
|
|||||||
final char separator = ',';
|
final char separator = ',';
|
||||||
final char newline = '\n';
|
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 int binWidth = Math.max((int) (max) / numBins, 1);
|
||||||
|
|
||||||
final ToBins toBins = new ToBins(numBins, binWidth);
|
final ToBins toBins = new ToBins(numBins, binWidth);
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ public class HistogramHandler extends AggregateHandler {
|
|||||||
@Override
|
@Override
|
||||||
void addPlot(final StringBuilder result, final AggregatedData aggregatedData, final LineStyle lineStyle,
|
void addPlot(final StringBuilder result, final AggregatedData aggregatedData, final LineStyle lineStyle,
|
||||||
final Optional<String> title) {
|
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(), //
|
aggregatedData.getDataFile().getAbsolutePath(), //
|
||||||
gnuplotTitle(title), //
|
gnuplotTitle(title), //
|
||||||
gnuplotXYAxis(), //
|
gnuplotXYAxis(), //
|
||||||
|
|||||||
Reference in New Issue
Block a user