|
From: Daniel J S. <dan...@ie...> - 2009-02-18 06:33:16
|
Ethan A Merritt wrote:
>>gnuplot> splot 'lin2.dat',x+y
>
>
> Why does your data file have two blank lines between each set of points?
>
> If you reduce that to a single blank line then there is no segfault.
> Of course, it should not segfault in any case, but I'm wondering if
> this is why no one has reported the problem before.
That explains it. The double line break means to start another 3D curve. (A single break means to start another trace of the 3D curve.) So Jim's example is attempting a 3D plot with single dimensioned data.
I tried doing such a thing with functions rather than data, but notice that
gnuplot> set samples 100, 1
^
sampling rate must be > 1; sampling unchanged
prevents one from even doing so. Either a check should be put in plot3d.c, or a datafile should be disallowed similar to the above gnuplot error message.
Dan
|