Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含 4 列数据的数据文件,前三列指定一个点 (x,y,z),第四列是 1、2 或 3 - 我希望根据值对点进行着色第四列(即,如果是 2,则将点着色为红色,如果为 3,则为绿色,如果为 1,则为蓝色)
set style line 1 lc rgb "red" set style line 2 lc rgb "blue" set style line 3 lc rgb "green" splot 'datafile' u 1:2:3:4 lc variable