use transparent color for parallel request plots

This commit is contained in:
2020-09-28 10:00:51 +00:00
parent 3868583866
commit 91c78d4350
3 changed files with 7 additions and 5 deletions

View File

@@ -40,7 +40,7 @@ public class ParallelRequestsAggregate extends AggregateHandler {
@Override
public String addPlot(final CustomAggregator aggregator, final LineStyle lineStyle, final Optional<String> title) {
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(), //
gnuplotTitle(title), //
gnuplotXYAxis(), //

View File

@@ -17,8 +17,8 @@ public class GnuplotFileGenerator implements Appender {
final StringBuilder result = new StringBuilder();
appendfln(result, "set terminal %s noenhanced size %d,%d", settings.getTerminal(), settings.getWidth(),
settings.getHeight());
appendfln(result, "set terminal %s truecolor noenhanced size %d,%d", settings.getTerminal(),
settings.getWidth(), settings.getHeight());
appendfln(result, "set datafile separator \"%s\"", settings.getDatafileSeparator());
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 boxwidth 0.5");
appendfln(result, "set style fill transparent solid 0.5");
settings.getAggregates().addPlots(result, dataSeries, settings);
// Add a plot outside of the visible range. Without this gnuplot would not
// render images when there are not data points on it.
appendf(result, "-1 with lines notitle");
LOGGER.info("{}", result);
LOGGER.debug("{}", result);
return result.toString();
}

View File

@@ -26,7 +26,7 @@ public class LineStyle {
}
public String asGnuplotLineStyleDark() {
return asGnuplotLineStyle(color.getDark());
return asGnuplotLineStyle("77" + color.getDark());
}
@Override