Old versus new
Apr. 7th, 2014 08:08 amFor a side project at $WORK I need to plot some data.
In the past I used gnuplot but as I wanted to interactively investigate the data I wrote a GUI browser in Clojure. This was relatively easy and fast enough.
But I've been told that I'm not with the new hotness and that I should investigate doing this in the browser. So I found the pretty impressive dygraphs javascript library.
The plots look fantastic and are really what I need. So I make my first html5 like page and tried it.
At first I thought that something was wrong. If I do this plot with gnuplot I get:
In Safari it took 22 minutes, while showing a beachball all the time, to plot this data. Chrome and Firefox do it quite a bit better at only two minutes, but still... not subsecond is it? Using the 'canvas' html5 terminal in gnuplot produces 14M html file which only takes something lik 20 seconds to get drawn in all browsers.
But I must admit that the default look and interactivity of dygraph is lightyears ahead of my gnuplot settings...
In the past I used gnuplot but as I wanted to interactively investigate the data I wrote a GUI browser in Clojure. This was relatively easy and fast enough.
But I've been told that I'm not with the new hotness and that I should investigate doing this in the browser. So I found the pretty impressive dygraphs javascript library.
The plots look fantastic and are really what I need. So I make my first html5 like page and tried it.
At first I thought that something was wrong. If I do this plot with gnuplot I get:
$ time gnuplot plot.gnuplot real 0m0.818s user 0m0.608s sys 0m0.209s
In Safari it took 22 minutes, while showing a beachball all the time, to plot this data. Chrome and Firefox do it quite a bit better at only two minutes, but still... not subsecond is it? Using the 'canvas' html5 terminal in gnuplot produces 14M html file which only takes something lik 20 seconds to get drawn in all browsers.
But I must admit that the default look and interactivity of dygraph is lightyears ahead of my gnuplot settings...