<?xml version='1.0' encoding='utf-8' ?>

<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>pvaneynd</title>
  <link>https://pvaneynd.dreamwidth.org/</link>
  <description>pvaneynd - Dreamwidth Studios</description>
  <lastBuildDate>Mon, 07 Apr 2014 06:49:41 GMT</lastBuildDate>
  <generator>LiveJournal / Dreamwidth Studios</generator>
  <lj:journal>pvaneynd</lj:journal>
  <lj:journaltype>personal</lj:journaltype>
  <image>
    <url>https://v2.dreamwidth.org/7693145/447974</url>
    <title>pvaneynd</title>
    <link>https://pvaneynd.dreamwidth.org/</link>
    <width>76</width>
    <height>100</height>
  </image>

<item>
  <guid isPermaLink='true'>https://pvaneynd.dreamwidth.org/152036.html</guid>
  <pubDate>Mon, 07 Apr 2014 06:49:41 GMT</pubDate>
  <title>Old versus new</title>
  <link>https://pvaneynd.dreamwidth.org/152036.html</link>
  <description>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=&quot;http://www.gnuplot.info/&quot;&gt;gnuplot&lt;/a&gt; but as I wanted to interactively investigate the data I wrote a GUI browser in &lt;a href=&quot;http://clojure.org/&quot;&gt;Clojure&lt;/a&gt;. This was relatively easy and fast enough.&lt;br /&gt;&lt;br /&gt;But I&apos;ve been told that I&apos;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=&quot;http://dygraphs.com/&quot;&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 &apos;canvas&apos; 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=&quot;https://www.dreamwidth.org/tools/commentcount?user=pvaneynd&amp;ditemid=152036&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://pvaneynd.dreamwidth.org/152036.html</comments>
  <category>work</category>
  <category>opensource</category>
  <category>gnuplot</category>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
</channel>
</rss>
