如何在gnuplot上绘制不同类型的线?我得画出不同的颜色.我的脚本加入了几个文件,我认为这就是为什么这些行不是破折号的原因.四个中只有两个是破灭的.谢谢费利佩
#!/usr/bin/gnuplot
set grid
set title 'Estado dos arquivos no BTRIM com peers de comportamento condicionado'
set xlabel 'Tempo discreto'
set ylabel 'Quantidade de arquivos'
set style line 1 lc rgb '#0060ad' lt 1 lw 2 pi -1 ps 1.0
set style line 2 lc rgb '#dd181f' lt 9 lw 2 pi -1 ps 1.0
set style line 3 lc rgb '#29c524' lt 6 lw 2 pi -1 ps 1.0
set style line 4 lc rgb '#7D72F9' lt 7 lw …Run Code Online (Sandbox Code Playgroud) 我有一个关于GNUPLOT中x轴的日期和时间的快速问题.我会让代码说话:
这是我的数据:
#Time Data in Data out
"2013-07-22 15:59:00" 6286 3730
"2013-07-22 15:58:00" 10695 14589
"2013-07-22 15:57:00" 17868 26464
"2013-07-22 15:56:00" 18880 34012
"2013-07-22 15:55:00" 19206 41192
"2013-07-22 15:54:00" 20365 43218
"2013-07-22 15:53:00" 18459 39298
"2013-07-22 15:52:00" 3420 4686
"2013-07-22 15:51:00" 3256 4942
Run Code Online (Sandbox Code Playgroud)
这是生成图形的代码:
gnuplot> set title "Data usage over the last 24 hours"
gnuplot> unset multiplot
gnuplot> set xdata time
gnuplot> set style data lines
gnuplot> set term png
Terminal type set to 'png'
Options are 'nocrop font "arial,12" …Run Code Online (Sandbox Code Playgroud) 我最近升级到gnuplot 5并且无法使用TikZ终端生成虚线.运行这些命令:
set term tikz
set output "test.tex"
test
Run Code Online (Sandbox Code Playgroud)
在gnuplot 4.6(第一张图片)中生成虚线类型,但在gnuplot 5(第二张图像)中只生成实线类型.有没有办法解决这个问题而不降级?
我尝试为dashlength终端选项设置不同的值,但这没有帮助.


我在Gnuplot 5.0中遇到了一个问题,即dashtype索引,例如手册中的``set dashtype 1(2,5,2,15)`.
我的问题是:括号中的这些数字到底意味着什么?我试图改变它们以获得一种感觉,但知道它的确切含义会很棒.
我的实际问题是,简单地使用dashtype N,不幸地给出了与之前的4.6版本非常不同的行.我只是尝试重现在gnuplot 4.6中制作的图.