|
From: sfeam (E. Merritt) <eam...@gm...> - 2012-10-21 04:20:38
|
On Saturday, 20 October 2012, Dima Kogan wrote:
> The optimization you're describing is more powerful.
> Do you think there will be a noticeable difference
> between the two approaches with real-world data?
It is very hard to predict what data someone might
someday want to plot. Here is a simple script that
generates highly redundant commands by drawing a
series of vectors touching head-to-tail.
Suppression of the intervening M commands would reduce
the size of the output stream by 50%.
Plotting head-to-tail vectors sounds like a perfectly
reasonable thing to do, however rare it might be
compared to other types of plot.
Ethan
lastx=0
lasty=0.5
set samples 1000
set term xlib
set output 'heads.x11'
plot '+' using (lastx):(lasty):(lastx = lastx+1, 1):\
(dely=rand(0)-0.5,lasty=lasty+dely, dely) \
with vector nohead
|