|
From: cédric o. <ced...@gm...> - 2013-09-30 12:29:25
|
In fact and to be more complete, this behaviour for splot is obtained with gnuplot 4.6 patchlevel 0. Crossing lines are also observed for splot AND plot command on the older version 4.2 patchlevel 2. So it is seems there have been progress between the two versions for the plot command. Cédric 2013/9/30, cédric ody <ced...@gm...>: > Hi, > > 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=(15,-1) format='%float' u 1:2:3 w l palette > > 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. > > cell=[ptA ptB ptC ptD ptA] > > vector=[ptAx ptAy ptAval ptBx ptBy ptBval ptCx ptCy ptCval ptDx ptDy > ptDval ptAx ptAy ptAval ...]; > > The plot command gives expected results (I would expect that I have > used an ascii filename). However, the splot command does not as some > cells of the unstructured mesh are now connected although they should > not. > > Does anybody know what I am missing. > > Thank you very much, > > Cédric > |