很简单的东西。我想要一个函数,比如函数 f,用特定的颜色绘制。我还想要一个标签,上面写着“function f color”,它也以那种颜色显示。
到目前为止我正在尝试这个:
set style line 1 lw 3 lc 1
set label "AC" at 0, 70 textcolor 1
但显然“lc”和“textcolor”遵循不同的规范,它提示:
"trolo4.pl", line 8: colorspec option not recognized
任何帮助都会很棒!
最佳答案
试试这个:
set label "AC" at 0, 70 textcolor linetype 1
或者
set label "AC" at 0, 70 textcolor linespec 1
阅读
gnuplot> help label
中的手册了解更多。
关于colors - 如何在gnuplot中设置标签和线条相同的颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11220231/