sample

Alan <[email protected]> Wed, 6 May 2026 14:54:04 -0400
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <CAOShCKycyxt=3054Xzg2JdxDY9wmzLEOFPgiZSxs0jyMDfRvLQ@mail.gmail.com>
Despite some help at `sampling`, there is not a real Help entry for
`sample`, and perhaps as a result, I may be misusing it.

In a single chart, I want to plot a function (f) and an array (xs). I can

plot sample[i=1:10] '+' u (xs[i]):(xs[i+1]) w steps, [0:1.5] f(x)

But I want to plot the function first and then the array.
The following does not work (error: undefined variable: sample):

plot  [0:1.5] f(x), sample[i=1:10] '+' u (xs[i]):(xs[i+1]) w steps

How shd I reverse the order of the plots?

Thanks!
gnuplot 6.0 patchlevel 4

_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info