How do I convert an integer to a string in gnuplot?

后端 未结 5 2149
别跟我提以往
别跟我提以往 2021-02-14 05:14

I know how to use $ with using in examples like

plot datafile using f($1):g($2)

to plot functions of column data. But

5条回答
  •  你的背包
    2021-02-14 05:38

    You can Use intrinsic function sprintf to convert numbers to string

    gnuplot>  a=3; b=6;
    gnuplot>  plot a*x+b title sprintf("a=%1.2f; b=%1.2f",a,b)
    

提交回复
热议问题