Re: printf function with table

theozh <[email protected]>
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <[email protected]>
you are probably looking for something like this...?
In gnuplot console type "help +"

f(x) = sqrt(x)   # or whatever
set samples 100
set table $Data
    plot [100:200] '+' u (sprintf("%13.6f, %g", $1, f($1))) with table
unset table
print $Data


Am 30.01.2020 um 14:41 schrieb Patrick Dupre:
> Hello,
>
> I am trying to do
> set table
> plot [100:200] sprintf ("%13.6f, %g", x, f(x)) with table
>
>
>          warning: 'with table' requires a data source not a pure function
>          warning: encountered a string when expecting a number
>          Did you try to generate a file name using dummy variable x or y?
>
> But I cannot make it works
>
> Thanks
>


_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.