Gnuplot中的可变线条颜色

问题描述

类似于Gnuplot combing multiple value types in one line graph with different colours and dashes,但这次我想绘制两行,其颜色/键基于第三列:

$sample <<EOD
2020-02-01 1 Foo
2020-02-01 1 Bar
2020-03-01 5 Foo
2020-03-01 5 Bar
2020-04-01 10 Foo
2020-04-01 20 Bar
EOD

set xdata time
set timefmt "%Y-%m-%d"

plot $sample using 1:2 with lines

即使用lc variable而非相等过滤器。我不理解lc variable的工作方式。

奖励:破折号类型不是可变的,不是破折号吗?即基于新引入的第四栏?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)