pvaneynd: (Default)
For 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:

$ 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...

Profile

pvaneynd: (Default)
pvaneynd

March 2017

S M T W T F S
   1234
567891011
12131415 161718
19202122232425
26272829 3031 

Syndicate

RSS Atom

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 20th, 2017 05:26 pm
Powered by Dreamwidth Studios