|
From: sfeam (E. Merritt) <eam...@gm...> - 2010-08-08 19:05:07
|
On Sunday 08 August 2010, yves2010 wrote: > > Solved! > > Proper syntax is > > plot '-' binary record=<#lines> format='%float64' > > (not "array="). <#Lines> is half the number of inline floats: (xi,yi) per > line. > > Don't ask me why this works... It is not really clear from the doc. > > Unfortunately, all this for not much! The execution speed is almost the same > as with ASCII transmission, and almost the same for 20 or 2048 points. On my > computer, an incompressible 100 ms to plot a graph. I had not realized that the primary issue was speed. But 2048 points is a small number. I doubt that playing with the input format for such a small number of points will gain you anything. If your plot actually does become limited by the data input stage, then the option "set datafile nofpe_trap" can gain up to a factor of 2x-4x in speed, at the cost of losing clean error handling if the input is bad. But this isn't likely to be noticeable until the number of points is orders of magnitude larger than your case. Why don't you pin down the execution speed independent of the data input stage first? You could start by timing "set samples 2048; plot sin(x)" |