【发布时间】:2020-01-13 13:01:23
【问题描述】:
在 gnuplot 中,您可以非常简单地定义和绘制一组函数:
set terminal pngcairo
set output 'test.png'
unset key
f(a,x) = a*x
plot for [a=0:100:2] f(a,x)
但是我想根据a 的值使用调色板为集合着色
set palette defined ( 0 'red' , 100 'green' )
以下不起作用:
#random range from palette picked ( -> 0)
plot for [a=0:100:2] f(a,x) lc palette
#error no output
plot for [a=0:100:2] x:(f(a,x)):a lc palette
#colors not from palette
plot for [a=0:100:2] f(a,x) lc a
如何将调色板颜色应用于 gnuplot 中的一组函数?
linux上的gnuplot 5.2版
【问题讨论】: