unexpected difference between plot and splot of binary files with unstructured data

cédric ody <[email protected]> Tue, 15 Oct 2013 09:18:08 +0200
Newsgroups gmane.comp.graphics.gnuplot.bugs
Message-ID <CA+DdpC00-ToD-CxGN7G0KnGFJFMi9uvpJu6XmpUNvwkjVZbFEQ@mail.gmail.com>
--047d7b624310f6fd4504e8c26288
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello,

After having asked the question on the gnuplot list, I think it may be
a possible bug so I post my question to this list.

I have found a interesting comment on the web explaining how to plot
unstructured mesh written in a binary file in gnuplot. I knew to do
that in ascii but I have been looking for the binary possibility for a
while.

The command is for instance the following

plot 'file.dat' binary record=3D(15,-1) format=3D'%float' u 1:2:3 w l palet=
te

I wrote the binary file file.dat using octave (fwrite(file,vector)).

The 15 is because I plot cells of 5 points of two coordinates + the
value at the point (so 5x3).

cell=3D[ptA ptB ptC ptD ptA]
vector=3D[ptAx ptAy ptAval ptBx ptBy ptBval ptCx ptCy ptCval  ptDx ptDy
ptDval  ptAx ptAy ptAval ...];

The plot command gives the results I would expect with an ascii file.
However, the splot command does not because some cells of the
unstructured mesh are now connected although they should not.

In addition, this behaviour for splot is obtained with gnuplot 4.6 patchlev=
el 0.

Crossing lines are also observed for the splot AND plot commands on my
older version 4.2 patchlevel 2. Therefore, it is seems a correction
has been done between the two versions but only for the plot command.

Can someone tell mu if it is a bug or I misuse gnuplot?

Best regards,

C=E9dric

--047d7b624310f6fd4504e8c26288
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
--047d7b624310f6fd4504e8c26288
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--047d7b624310f6fd4504e8c26288--