我有一个gnuplot脚本.我的系统是ubuntu 14.04.当在终端我输入gnuplot myPlot.情节将消失.它不会留在屏幕上.我在这堆栈中看到了类似的问题.但它的系统是windows.我想知道在ubuntu 14.04 32位上是否有任何解决方案
PS:当我使用时gnuplot>- 我的意思是当我不使用脚本文件时 - 我看到图表并且它不会消失.
PS2:这是我简单的gnuplot脚本文件:
set boxwidth 0.5
set style fill solid
plot "dataFile" using 1:2:xtic(2) with boxes
Run Code Online (Sandbox Code Playgroud) 这个脚本是有效的.但我看不出颜色的变化
plot '_numXY' using 2:3:(sprintf('%d', $1)) \
with labels offset 0,1 point pointtype 6 ps 2 notitle lc rgb "blue"
Run Code Online (Sandbox Code Playgroud)
我看不到蓝色或蓝色.那是黑色的.我想看到蓝色的点线.
lc rgb "blue"不管用?怎么了?
我知道通过此命令可以在gnuplot上创建一个箭头。
set arrow from 0,0 to 1,1
Run Code Online (Sandbox Code Playgroud)
但是问题是我想创建一组箭头。位于file.data上。x1,y1,x2和y2不在数据文件中,我只是将它们展示出来以更好地显示它们
x1 y1 x2 y2
80 42.34 75 50.34
75 50.34 65 50.34
65 50.34 60 58.34
60 58.34 65 66.34
65 66.34 60 75
Run Code Online (Sandbox Code Playgroud)
没有任何方法可以将此文件传递给gnuplot。为了创建从(x1,y1)到(x2,y2)的箭头
在我的bash文件中,我有这个声明:
gnuplot -e "filename='Traffic1'" MyplotFile
Run Code Online (Sandbox Code Playgroud)
现在我想通过Traffic1或更好的方式将filename的值称为我的gnuplot输出文件的名称,该文件是png格式.
我在MyplotFile上有这些行:
set output 'filename.png'
Run Code Online (Sandbox Code Playgroud)
但输出是filename.png!我希望将Traffic1.png作为输出.如何正确定义此行:
set output 'filename.png'
Run Code Online (Sandbox Code Playgroud)
PS如果您需要了解-e,请转到此链接
有没有办法在 Geany IDE 上一次折叠所有功能?
有没有办法做到这一点?
我正在寻找任何可以让我的 Geany IDE 一次性折叠所有功能的选项。
我折叠了我的C代码上的一些函数.折叠时,颜色变为灰色.有没有办法将折叠部分的颜色改为另一种颜色?
我熟悉 TCP-IP。我在网络书籍中读到过它。我知道 TCP 是如何工作的。我也知道存在各种 TCP,如 reno、new reno 和 taho。但现在我想看看它们的源代码。例如 TCP 如何在ubuntu 14.04 上工作。谁能告诉我它的文件在哪里?
我使用这个简单的脚本来计算awk上的行数:
BEGIN{
count=0
}
{
count++;
}
END
{
}
Run Code Online (Sandbox Code Playgroud)
但有没有更短的方式?例如,在我的bash文件中只使用一行.我不喜欢在一个单独的文件上的脚本.我正在寻找一个在termial上使用的命令.
看下面的代码
awk '{print $1}' grep _Y myFile
Run Code Online (Sandbox Code Playgroud)
我想将结果传递 grep _Y myFile给awk命令.如何正确写出该行.