<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

      <title>Comments on: How do I get an automatically generated line graph from a text file with a list of numbers?</title>
      <link>http://ask.metafilter.com/65551/How-do-I-get-an-automatically-generated-line-graph-from-a-text-file-with-a-list-of-numbers/</link>
      <description>Comments on Ask MetaFilter post How do I get an automatically generated line graph from a text file with a list of numbers?</description>
	  	  <pubDate>Mon, 25 Jun 2007 08:47:48 -0800</pubDate>
      <lastBuildDate>Mon, 25 Jun 2007 08:47:48 -0800</lastBuildDate>
      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>

<item>
  	<title>Question: How do I get an automatically generated line graph from a text file with a list of numbers?</title>
  	<link>http://ask.metafilter.com/65551/How-do-I-get-an-automatically-generated-line-graph-from-a-text-file-with-a-list-of-numbers</link>	
  	<description>Is there a program that can automatically create line graphs from a text file with a list of numbers? Is there a program that I can have running in the background of my windows machine that will take a text file with a list of numbers, formatted as follows...&lt;br&gt;
&lt;br&gt;
121&lt;br&gt;
324&lt;br&gt;
53546&lt;br&gt;
4343&lt;br&gt;
2342&lt;br&gt;
etc...&lt;br&gt;
&lt;br&gt;
and produce a line graph in jpeg, jpg, bmp, or any other common picture format?</description>
  	<guid isPermaLink="false">post:ask.metafilter.com,2008:site.65551</guid>
  	<pubDate>Mon, 25 Jun 2007 08:44:44 -0800</pubDate>
  	<dc:creator>kaozity</dc:creator>
	
	<category>computer</category>
	
	<category>programming</category>
	
	<category>graphics</category>
	
	<category>web</category>
	
	<category>picture</category>
	
	<category>jpeg</category>
	
	<category>graphing</category>
	
</item>
<item>
  	<title>By: AaRdVarK</title>
  	<link>http://ask.metafilter.com/65551/How-do-I-get-an-automatically-generated-line-graph-from-a-text-file-with-a-list-of-numbers#985128</link>	
  	<description>There are several libraries that can do this, but they all require a hint of programming.  Are you familiar with any programming languages?</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.65551-985128</guid>
  	<pubDate>Mon, 25 Jun 2007 08:47:48 -0800</pubDate>
  	<dc:creator>AaRdVarK</dc:creator>
</item>
<item>
  	<title>By: handee</title>
  	<link>http://ask.metafilter.com/65551/How-do-I-get-an-automatically-generated-line-graph-from-a-text-file-with-a-list-of-numbers#985132</link>	
  	<description>gnuplot? &lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.gnuplot.info/&quot;&gt;website here&lt;/a&gt;.  It&apos;s command line but very configurable. Can do png output.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.65551-985132</guid>
  	<pubDate>Mon, 25 Jun 2007 08:51:54 -0800</pubDate>
  	<dc:creator>handee</dc:creator>
</item>
<item>
  	<title>By: kaozity</title>
  	<link>http://ask.metafilter.com/65551/How-do-I-get-an-automatically-generated-line-graph-from-a-text-file-with-a-list-of-numbers#985141</link>	
  	<description>I am most comfortable in c++ and and getting used to php. If need be, learning a new language is not an issue.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.65551-985141</guid>
  	<pubDate>Mon, 25 Jun 2007 08:57:54 -0800</pubDate>
  	<dc:creator>kaozity</dc:creator>
</item>
<item>
  	<title>By: Loto</title>
  	<link>http://ask.metafilter.com/65551/How-do-I-get-an-automatically-generated-line-graph-from-a-text-file-with-a-list-of-numbers#985152</link>	
  	<description>Kaozity:  ROOT might be just up your alley then.  You can get it at root.cern.ch and it is used for data analysis.  I&apos;ve written programs in ROOT/C++ to do just what you are asking, and it wasn&apos;t difficult at all.  Took maybe a day, and I&apos;m not that familiar with C++.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.65551-985152</guid>
  	<pubDate>Mon, 25 Jun 2007 09:02:31 -0800</pubDate>
  	<dc:creator>Loto</dc:creator>
</item>
<item>
  	<title>By: anaelith</title>
  	<link>http://ask.metafilter.com/65551/How-do-I-get-an-automatically-generated-line-graph-from-a-text-file-with-a-list-of-numbers#985155</link>	
  	<description>For windows, &lt;a href=&quot;http://padowan.dk/graph/&quot;&gt;Graph&lt;/a&gt; is simple and effective.&lt;br&gt;
&lt;br&gt;
(Caveat: AFAIK, it won&apos;t run &amp;quot;in the background&amp;quot;. You put your data in, it produces a graph, end of story. I&apos;m not sure why you want something which will run in the background, maybe if you explain more about what you&apos;re doing you&apos;ll get better answers.)</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.65551-985155</guid>
  	<pubDate>Mon, 25 Jun 2007 09:05:42 -0800</pubDate>
  	<dc:creator>anaelith</dc:creator>
</item>
<item>
  	<title>By: kaozity</title>
  	<link>http://ask.metafilter.com/65551/How-do-I-get-an-automatically-generated-line-graph-from-a-text-file-with-a-list-of-numbers#985219</link>	
  	<description>Well, I have data that is changing every minute. So i would want the program to go in every couple of minutes or so and automatically update the graph that it is producing.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.65551-985219</guid>
  	<pubDate>Mon, 25 Jun 2007 09:55:39 -0800</pubDate>
  	<dc:creator>kaozity</dc:creator>
</item>
<item>
  	<title>By: Comrade_robot</title>
  	<link>http://ask.metafilter.com/65551/How-do-I-get-an-automatically-generated-line-graph-from-a-text-file-with-a-list-of-numbers#985226</link>	
  	<description>LabView can take data in and graph it, but I&apos;m not so sure about the exporting, or how pretty it would be.  It&apos;s been some time.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.65551-985226</guid>
  	<pubDate>Mon, 25 Jun 2007 10:01:06 -0800</pubDate>
  	<dc:creator>Comrade_robot</dc:creator>
</item>
<item>
  	<title>By: Loto</title>
  	<link>http://ask.metafilter.com/65551/How-do-I-get-an-automatically-generated-line-graph-from-a-text-file-with-a-list-of-numbers#985239</link>	
  	<description>It sounds like you are going to need to roll your own solution.  With the ROOT framework, and using C++, it isn&apos;t hard to create a program that will read from a file every X minutes and update a graph.  The graph can be exported, too, pretty easily.  I&apos;m working on data acquisition software right now and am involved in a very similar project, except analysis is done as an event occurs rather than reading in from a file.&lt;br&gt;
&lt;br&gt;
Another option would be to use Cygwin and use cron and some shell tools to do this for you, which may or may not be easier depending on your experience with Linux and shell scripting.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.65551-985239</guid>
  	<pubDate>Mon, 25 Jun 2007 10:10:27 -0800</pubDate>
  	<dc:creator>Loto</dc:creator>
</item>
<item>
  	<title>By: dmd</title>
  	<link>http://ask.metafilter.com/65551/How-do-I-get-an-automatically-generated-line-graph-from-a-text-file-with-a-list-of-numbers#985273</link>	
  	<description>I&apos;d definitely say just go with gnuplot and a shell script.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.65551-985273</guid>
  	<pubDate>Mon, 25 Jun 2007 10:36:10 -0800</pubDate>
  	<dc:creator>dmd</dc:creator>
</item>
<item>
  	<title>By: Nelson</title>
  	<link>http://ask.metafilter.com/65551/How-do-I-get-an-automatically-generated-line-graph-from-a-text-file-with-a-list-of-numbers#985285</link>	
  	<description>For something really simple in C, I recommend &lt;a href=&quot;http://www.fred.net/brv/chart/&quot;&gt;gdchart&lt;/a&gt;. I use the Python interface for simple graphs. For complicated graphs I use Python&apos;s matplotlib.&lt;br&gt;
&lt;br&gt;
Surprisingly, there is no really simple way to do this. I have about 3/4 of the code written to provide this as a service over the web, something like Joe Gregorio&apos;s &lt;a href=&quot;http://bitworking.org/projects/sparklines/&quot;&gt;Sparklines&lt;/a&gt;. But I have never had the sustained interest to finish it.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.65551-985285</guid>
  	<pubDate>Mon, 25 Jun 2007 10:45:02 -0800</pubDate>
  	<dc:creator>Nelson</dc:creator>
</item>
<item>
  	<title>By: freebird</title>
  	<link>http://ask.metafilter.com/65551/How-do-I-get-an-automatically-generated-line-graph-from-a-text-file-with-a-list-of-numbers#985290</link>	
  	<description>rrdtool will make you the plots, and take care of aggregating over time and so forth. But it makes some assumptions about time-regularity of your datapoints.&lt;br&gt;
&lt;br&gt;
gnuplot is a good option too.&lt;br&gt;
&lt;br&gt;
If you&apos;re comfortable &amp;quot;programming&amp;quot;, perl with the various libraries built around GD.pm can do a lot with only minimal effort.&lt;br&gt;
&lt;br&gt;
If you&apos;re on a PC, think about just loading it in Excel, though I wouldn&apos;t wish the automation part on anyone I liked.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
rrdtool is probably your best best for little/no programming. Perl with GD or python with SciLab/matplotlib are probably the best if you want to do a little coding.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.65551-985290</guid>
  	<pubDate>Mon, 25 Jun 2007 10:53:10 -0800</pubDate>
  	<dc:creator>freebird</dc:creator>
</item>
<item>
  	<title>By: hincandenza</title>
  	<link>http://ask.metafilter.com/65551/How-do-I-get-an-automatically-generated-line-graph-from-a-text-file-with-a-list-of-numbers#985334</link>	
  	<description>&lt;blockquote&gt;&lt;b&gt;kaozity:&lt;/b&gt; &lt;i&gt;Well, I have data that is changing every minute. So i would want the program to go in every couple of minutes or so and automatically update the graph that it is producing.&lt;/i&gt;&lt;/blockquote&gt;&lt;br&gt;
Oooh- THE program you need is &lt;b&gt;&lt;a href=&quot;http://www.logparser.com&quot;&gt;logparser&lt;/a&gt;&lt;/b&gt;, which is a MS-created free utility that&apos;s since been included in the resource kit.  &lt;br&gt;
&lt;br&gt;
Why you need logparser:&lt;ol&gt;&lt;li&gt;It&apos;s native to windows/MS-produced&lt;/li&gt;&lt;li&gt;It comes as a self-contained command line exe suitable for batch or scheduled tasks- no install required- or as a COM .dll that you can register for use in scripts of all types- so if your [favorite script language] in Windows supports using COM objects, you can just use the logparser object in your preferred scripting format&lt;/li&gt;&lt;li&gt;It can output to any number of formats from any number of inputs- and obviously this includes CSV -&amp;gt; line chart .jpg&lt;/li&gt;&lt;li&gt;It has an internal T-SQL like engine to allow for some fairly complex and/or nested data computations&lt;/li&gt;&lt;li&gt;It supports &amp;quot;tailing&amp;quot; or checkpointing a file, so that it can rebuild a graph as the file grows automatically- which would be perfect if you want it to just stay running, and constantly updating your .jpg image as new data is appended to the text/.csv file&lt;/li&gt;&lt;li&gt;Once you become familiar with it, you&apos;ll find that it can solve a lot of common problems as it can natively and seamlessly support input formats as diverse as STDIN, file systems, perf logs, registry, active directory, event logs, etc, and output formats that are similar (&lt;i&gt;SQL, XML, CSV, graph, etc&lt;/i&gt;)&lt;/li&gt;&lt;/ol&gt;&lt;br&gt;
&lt;br&gt;
A simple example:&lt;br&gt;
&lt;code&gt;&lt;small&gt;logparser.exe -i:CSV &amp;quot;SELECT * INTO myOutput.jpg FROM myfile.txt&amp;quot; -headerRow:off -o&lt;br&gt;
:CHART -charttype:Line -groupsize:800x600 &lt;/small&gt;&lt;/code&gt;</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.65551-985334</guid>
  	<pubDate>Mon, 25 Jun 2007 11:33:50 -0800</pubDate>
  	<dc:creator>hincandenza</dc:creator>
</item>
<item>
  	<title>By: bonecrusher</title>
  	<link>http://ask.metafilter.com/65551/How-do-I-get-an-automatically-generated-line-graph-from-a-text-file-with-a-list-of-numbers#985442</link>	
  	<description>I find that &lt;a href=&quot;http://home.gna.org/pychart/doc/pychart.html&quot;&gt;pychart &lt;/a&gt; + python is very simple and powerful.  Output is easy in SVG or PDF.  PNG output needs ghostscript installed.&lt;br&gt;
&lt;br&gt;
Assuming that your x axis is increasing by 1 for each value you listed above, the matching code is:&lt;br&gt;
&lt;br&gt;
from pychart import *&lt;br&gt;
&lt;br&gt;
data = [&lt;br&gt;
    (0, 121),&lt;br&gt;
    (1, 324),&lt;br&gt;
    (2, 53546),&lt;br&gt;
    (3, 4343),&lt;br&gt;
    (4, 2342),&lt;br&gt;
]&lt;br&gt;
&lt;br&gt;
# if the data is in a file, try&lt;br&gt;
# data = [(i, int(line)) for i, line in enumerate(open(&amp;quot;\\data.txt&amp;quot;))]&lt;br&gt;
&lt;br&gt;
l = line_plot.T(data=data, label=&amp;quot;misc&amp;quot;)&lt;br&gt;
ar = area.T(x_axis=axis.X(label=&amp;quot;time&amp;quot;), y_axis=axis.Y(label=&amp;quot;value&amp;quot;))&lt;br&gt;
ar.add_plot(l)&lt;br&gt;
c = canvas.init(&apos;t.svg&apos;)&lt;br&gt;
ar.draw(c)&lt;br&gt;
c.close()</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.65551-985442</guid>
  	<pubDate>Mon, 25 Jun 2007 12:55:33 -0800</pubDate>
  	<dc:creator>bonecrusher</dc:creator>
</item>
<item>
  	<title>By: blacklite</title>
  	<link>http://ask.metafilter.com/65551/How-do-I-get-an-automatically-generated-line-graph-from-a-text-file-with-a-list-of-numbers#985674</link>	
  	<description>You might be able to use &lt;a href=&quot;http://oss.oetiker.ch/rrdtool/&quot;&gt;RRDtool&lt;/a&gt;. I&apos;d at least poke at the site to see if it does what you want.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.65551-985674</guid>
  	<pubDate>Mon, 25 Jun 2007 16:22:18 -0800</pubDate>
  	<dc:creator>blacklite</dc:creator>
</item>
<item>
  	<title>By: chrisamiller</title>
  	<link>http://ask.metafilter.com/65551/How-do-I-get-an-automatically-generated-line-graph-from-a-text-file-with-a-list-of-numbers#985706</link>	
  	<description>It&apos;d be relatively easy to use R to do this sort of thing as well.  http://www.r-project.org/</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.65551-985706</guid>
  	<pubDate>Mon, 25 Jun 2007 16:51:26 -0800</pubDate>
  	<dc:creator>chrisamiller</dc:creator>
</item>

    </channel>
</rss>
