<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dw="https://www.dreamwidth.org">
  <id>tag:dreamwidth.org,2009-09-23:447974</id>
  <title>pvaneynd</title>
  <subtitle>pvaneynd</subtitle>
  <author>
    <name>pvaneynd</name>
  </author>
  <link rel="alternate" type="text/html" href="https://pvaneynd.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://pvaneynd.dreamwidth.org/data/atom"/>
  <updated>2014-04-07T06:49:41Z</updated>
  <dw:journal username="pvaneynd" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2009-09-23:447974:152036</id>
    <link rel="alternate" type="text/html" href="https://pvaneynd.dreamwidth.org/152036.html"/>
    <link rel="self" type="text/xml" href="https://pvaneynd.dreamwidth.org/data/atom/?itemid=152036"/>
    <title>Old versus new</title>
    <published>2014-04-07T06:49:41Z</published>
    <updated>2014-04-07T06:49:41Z</updated>
    <category term="gnuplot"/>
    <category term="work"/>
    <category term="opensource"/>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <content type="html">For a side project at $WORK I need to plot some data.&lt;br /&gt;&lt;br /&gt;In the past I used &lt;a href="http://www.gnuplot.info/"&gt;gnuplot&lt;/a&gt; but as I wanted to interactively investigate the data I wrote a GUI browser in &lt;a href="http://clojure.org/"&gt;Clojure&lt;/a&gt;. This was relatively easy and fast enough.&lt;br /&gt;&lt;br /&gt;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 &lt;a href="http://dygraphs.com/"&gt;dygraphs&lt;/a&gt; javascript library.&lt;br /&gt;&lt;br /&gt;The plots look fantastic and are really what I need. So I make my first html5 like page and tried it.&lt;br /&gt;&lt;br /&gt;At first I thought that something was wrong. If I do this plot with gnuplot I get:&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;&lt;pre&gt;$ time gnuplot plot.gnuplot

real	0m0.818s
user	0m0.608s
sys	0m0.209s&lt;/pre&gt;&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;In Safari it took &lt;b&gt;22 minutes&lt;/b&gt;, 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.&lt;br /&gt;&lt;br /&gt;But I must admit that the default look and interactivity of dygraph is lightyears ahead of my gnuplot settings...&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=pvaneynd&amp;ditemid=152036" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
