如何为Gnuplot数据文件中的每个点选择颜色? [英] How do I select a color for every point in Gnuplot data file?
本文介绍了如何为Gnuplot数据文件中的每个点选择颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想绘制点,每个点都有X,Y和一种颜色.我该如何在Gnuplot中做到这一点?
I want to plot points, each with X, Y and a color. How do I do that in Gnuplot?
推荐答案
您可以尝试执行以下操作:
You can try something like this:
plot "./file.dat" u 1:2:3 with points palette
其中file.dat包含您的数据,第一列是x轴,第二列是y轴,第三列是颜色.
where file.dat contains your data, the first column is the x axis and the second column is the y axis, the third column is the colour.
这篇关于如何为Gnuplot数据文件中的每个点选择颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文