我的输出是管道安全性
command_a | command_b | ... | command_n
输出是一个数字序列
4.2
-1
...
0.2
我可以用gnuplot来绘制这个数字吗? (将gnuplot添加到管道序列中)
答案 0 :(得分:1)
您是否尝试过以下操作?
`CompletionStage<Void> Function() {
someOperation
.thenAccept(variable -> {
AsyncWriteInDb(variable);
return;
});
}
// thenAccept's lamda was returning after initiating an asyncDbWrite.
// Reading just after this doesnt ensure sequential reading after writing.
`
具体例子:
plot "< command_a | command_b | ... | command_n"
它适用于我(在Linux系统上使用gnuplot 4.2和5.0进行测试)。
答案 1 :(得分:0)
您可以在plot命令中使用' - '源。您只需先输入命令文件然后再输出数据文件即可。例如:
test.gnuplot:
plot '-' with lines
示例命令行:
[command generating data] | cat test.gnuplot - | gnuplot -persist