我想根据函数图的 x 值更改图的颜色(即不是来自数据文件)。 例如,我定义一个调色板如下: set palette defined ( 0 'purple', 1 'blue', 2 'green', 3 'yellow', 4 'orange', 5 'red' ) 我希望sin(x)根据 [0:5] 范围内的 x 值使用我的调色板函数来使用颜色。 如何才能做到这一点?
set palette defined ( 0 'purple', 1 'blue', 2 'green', 3 'yellow', 4 'orange', 5 'red' )
sin(x)
gnuplot colors
colors ×1
gnuplot ×1