gpt4 book ai didi

plot - gnuplot:绘制带有线点但点较少的文件

转载 作者:行者123 更新时间:2023-12-01 08:52:52 24 4
gpt4 key购买 nike

我想用 plot 中的 linespoints Gnuplot 文件,但使用所有数据样本的行和使用较少数据样本的点。例如,以下文件绘制了数据,但该线根本不可见。

set terminal png
set out "plot_sample.png"
plot [t=-1000:1000] t w linespoints pt 64 lt 10 ps 1.5

如果我想为点定义自定义采样间隔但使用线的所有数据样本,该怎么做?我可以在同一个图中绘制两个单独的图,但是键将分别显示它们。

最佳答案

使用 pointinterval 减少绘制点的数量,但保留所有绘制线的点:

set samples 100
plot x**2 w linespoints pointinterval 10

关于plot - gnuplot:绘制带有线点但点较少的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37138881/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com