gnuplot - 使用不同颜色在 gnuplot 中绘制文件数据

标签 gnuplot

用某种颜色(例如红色)绘制文件 data.txt 从第 1 行到第 10 行的数据,接下来的 10 到 20 行以及其他类似的 20 到 30 行不同颜色的数据,直到第 100 行

data.txt 文件是这样的:

1 1 
2 2
3 3
4 4
5 5
6 6
..
..
..
10 10

1 2
3 4
1 1
..
..
..
..

.
.
.
.

90 90
91 91
..
..
..
100 100

最佳答案

每隔::1::10 w p 绘制“aaa.txt”,每隔::11::20 w p 绘制“aaa.txt”,...

更新

对我有用(好吧,除了编号应该从0开始)

plot 'aaa.txt' every ::0::2 w p, 'aaa.txt' every ::3::5 w p

生成以下图表

enter image description here

关于gnuplot - 使用不同颜色在 gnuplot 中绘制文件数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37084936/

相关文章:

linux - 是否可以在 gnuplot 中绘制正态概率分布

matlab - 如何对实验数据进行非线性数据拟合函数

c++ - 从 gnuplot 获取变量到 c++

python - 如何正确将从示波器中提取的数据绘制为 .csv 文件

plot - Gnuplot:在 x2 轴上设置自定义标签

linux - Gnuplot - 如何仅使用公共(public)数据连接两个文件

Gnuplot 绘制数据文件中的特定行

gnuplot - Gnuplot 中的可变线条颜色

gnuplot postscript 终端不显示透明符号

gnuplot - 如何在 GnuPlot 中向箭头添加文本