|
From: Daniel J S. <dan...@ie...> - 2010-08-08 18:34:08
|
The thinking was that a "record" contains the whole tuple (the x, the y, etc) but an "array" has the coordinate inherent and only the ordinate given, i.e., the index determines the x and y. As for speed, these things probably vary from system to system. You could investigate a little further by also comparing ASCII/binary data from a file rather than through a pipe. Perhaps it is the pipe that is slow and is limiting performance regardless of whether it is ASCII or binary. I'd be interested in knowing what you find. Dan 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. > > Yves > -- Dan Sebald email: daniel(DOT)sebald(AT)ieee(DOT)org URL: http://www(DOT)dansebald(DOT)com |