use transparent color for parallel request plots
This commit is contained in:
@@ -40,7 +40,7 @@ public class ParallelRequestsAggregate extends AggregateHandler {
|
|||||||
@Override
|
@Override
|
||||||
public String addPlot(final CustomAggregator aggregator, final LineStyle lineStyle, final Optional<String> title) {
|
public String addPlot(final CustomAggregator aggregator, final LineStyle lineStyle, final Optional<String> title) {
|
||||||
final AggregatedData aggregatedData = aggregator.getAggregatedData();
|
final AggregatedData aggregatedData = aggregator.getAggregatedData();
|
||||||
return formatln("'%s' using 1:2 %s with filledcurve axes %s lw 1 %s, \\", //
|
return formatln("'%s' using 1:2 %s with filledcurve axes %s lw 0 %s, \\", //
|
||||||
aggregatedData.getDataFile().getAbsolutePath(), //
|
aggregatedData.getDataFile().getAbsolutePath(), //
|
||||||
gnuplotTitle(title), //
|
gnuplotTitle(title), //
|
||||||
gnuplotXYAxis(), //
|
gnuplotXYAxis(), //
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ public class GnuplotFileGenerator implements Appender {
|
|||||||
|
|
||||||
final StringBuilder result = new StringBuilder();
|
final StringBuilder result = new StringBuilder();
|
||||||
|
|
||||||
appendfln(result, "set terminal %s noenhanced size %d,%d", settings.getTerminal(), settings.getWidth(),
|
appendfln(result, "set terminal %s truecolor noenhanced size %d,%d", settings.getTerminal(),
|
||||||
settings.getHeight());
|
settings.getWidth(), settings.getHeight());
|
||||||
|
|
||||||
appendfln(result, "set datafile separator \"%s\"", settings.getDatafileSeparator());
|
appendfln(result, "set datafile separator \"%s\"", settings.getDatafileSeparator());
|
||||||
appendfln(result, "set timefmt '%s'", settings.getTimefmt());
|
appendfln(result, "set timefmt '%s'", settings.getTimefmt());
|
||||||
@@ -67,13 +67,15 @@ public class GnuplotFileGenerator implements Appender {
|
|||||||
// appendfln(result, "set xrange [-1:1]");
|
// appendfln(result, "set xrange [-1:1]");
|
||||||
appendfln(result, "set boxwidth 0.5");
|
appendfln(result, "set boxwidth 0.5");
|
||||||
|
|
||||||
|
appendfln(result, "set style fill transparent solid 0.5");
|
||||||
|
|
||||||
settings.getAggregates().addPlots(result, dataSeries, settings);
|
settings.getAggregates().addPlots(result, dataSeries, settings);
|
||||||
|
|
||||||
// Add a plot outside of the visible range. Without this gnuplot would not
|
// Add a plot outside of the visible range. Without this gnuplot would not
|
||||||
// render images when there are not data points on it.
|
// render images when there are not data points on it.
|
||||||
appendf(result, "-1 with lines notitle");
|
appendf(result, "-1 with lines notitle");
|
||||||
|
|
||||||
LOGGER.info("{}", result);
|
LOGGER.debug("{}", result);
|
||||||
|
|
||||||
return result.toString();
|
return result.toString();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ public class LineStyle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String asGnuplotLineStyleDark() {
|
public String asGnuplotLineStyleDark() {
|
||||||
return asGnuplotLineStyle(color.getDark());
|
return asGnuplotLineStyle("77" + color.getDark());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user