|
From: cédric o. <ced...@gm...> - 2013-09-30 10:59:56
|
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 |