我想将一个零和一个矩阵绘制成一个图形,这样每1个我有一个形状像垂直条的标记被画成"|".这样,当一系列1在同一x轴上时,看起来像一条长直线.
这个例子说明了我的意图:
给出以下矩阵:
0 0 1 1 0 1 0
0 1 0 1 1 1 0
0 1 0 1 1 1 0
1 0 0 1 1 1 0
Run Code Online (Sandbox Code Playgroud)
我明白了:

我需要绘制一个函数f(x),其中x是离散的值集(在我的情况下是正整数).使用范围选项时,我找不到指定步长的方法,并且样本似乎不是正确的解决方案.最后,我想f(x)用一个平滑的函数来近似.
如何在轴x上仅显示整数值?
我绘制了像这样的文件中描述的函数
0 0.5
1 0.25
2 0.125
3 0.0625
4 0
Run Code Online (Sandbox Code Playgroud)
whit这些命令:
set xrange [0:4]
plot "./data_file" using 1:2 with line lw 2
Run Code Online (Sandbox Code Playgroud)
问题在于,通过这样做,我在轴x上可视化值0; 0.5; 1; 1.5; 2; 2.5; 3; 3.5; 4如何仅显示整数值0; 1; 2; 3; 4?
谢谢
我有一个简单的脚本:
set term postscript portrait color
set output 'output.ps'
plot 'data_file' using 1:2:3 with image, 'data_file2' using 1:2 with lines
Run Code Online (Sandbox Code Playgroud)
问题是该with image命令使抽动杆在两个轴上都消失了,除非删除该命令,否则我无法使gnuplot显示它们,因为我正在绘制一个命令,所以我无法这样做cbrange(第三列是范围)
谢谢。
我想用Gnuplot制作一个蜘蛛(又名雷达/星)图,其中不同的轴有独立的比例.我能够产生这样使用OriginPro(商业)的阴谋,但gnuplot的,我只能设定统一的比例雷达图.
(csv文件)数据集如下所示(第一行是列标签):
# FEATURE, Product_A, Product_B, Product_C, Product_D
attribute_1, 2, 10, 7, 3.5
attribute_2, 1, 0.5, 3,4
attribute_3, 37, 58, 49, 72
attribute_4, 1985, 1992, 2006, 2010
attribute_5, 0.1, 0.5, 0.3, 0.8
Run Code Online (Sandbox Code Playgroud)
我正在寻找的情节是这样的:https://www.dropbox.com/s/uvqubzqvm6puhb8/spider.pdf - 正如你所看到的,每个轴代表不同的属性,并且有自己的比例.
我想Gnuplot的起始代码是:
set polar
set grid polar
set angles degrees
set size square
set style data filledcurves
Run Code Online (Sandbox Code Playgroud)
但我不知道该怎么办.有什么建议?
我有一个data.csv文件,结构如下:
n John Smith stats Sam Williams stats
1 23.4 44.1
2 32.1 33.5
3 42.0 42.1
Run Code Online (Sandbox Code Playgroud)
目前我正在使用gnuplot中的以下命令进行绘图:
plot 'data.csv' using 1:2 title 'John' with lines, '' using 1:3 title 'Sam' with lines
Run Code Online (Sandbox Code Playgroud)
问题是如何从.csv的第一行检索名字而不是手动输入它们?
另外,如果我在表格中添加一列,是否可以调整它,所以它会自动添加另一行具有相应标题的行?
我有一个简单的gnuplot命令文件:
....
set xdata time
set timefmt "%s"
set format x "%H:%M"
....
Run Code Online (Sandbox Code Playgroud)
其中x - timestamp列.
结果 - UTC格式的时间.我可以更改x轴的本地时间码吗?
谁能告诉我如何使用gnuplot绘制复杂的指数.我尝试使用此脚本绘制它们,但i无法识别参数.
set terminal epslatex color colortext size 9cm,5cm
set size 1.5,1.0
set output "eulerjeva_identiteta_1.tex"
set style line 1 linetype 1 linewidth 3 linecolor rgb "#FF0055"
set style line 2 linetype 2 linewidth 1 linecolor rgb "#FF0055"
set style line 3 linetype 1 linewidth 3 linecolor rgb "#2C397D"
set style line 4 linetype 2 linewidth 1 linecolor rgb "#2C397D"
set style line 5 linetype 1 linewidth 3 linecolor rgb "#793715"
set style line 6 linetype 2 linewidth 1 linecolor …Run Code Online (Sandbox Code Playgroud) 我试图让octave工作,并认为它需要gnuplot需要gnuplot-nox,需要通过Fink安装.我经常坚持使用自制软件来安装我的软件包.
在使用Fink安装某些特定软件包时,将自制软件作为主要软件包管理器是否有任何问题?他们有冲突吗?它会使系统不稳定吗?
这个脚本是有效的.但我看不出颜色的变化
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"不管用?怎么了?