<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Graphing</title>
	<atom:link href="http://dan.langille.org/2010/02/06/graphing/feed/" rel="self" type="application/rss+xml" />
	<link>http://dan.langille.org/2010/02/06/graphing/</link>
	<description>He has another more popular diary.  This one is more general.</description>
	<pubDate>Sat, 04 Feb 2012 22:02:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: PRIME</title>
		<link>http://dan.langille.org/2010/02/06/graphing/#comment-423</link>
		<dc:creator>PRIME</dc:creator>
		<pubDate>Mon, 01 Mar 2010 09:59:42 +0000</pubDate>
		<guid isPermaLink="false">http://dan.langille.org/?p=258#comment-423</guid>
		<description>Hi,

My solution is a new approch, hope that it's good for you.

I use, XML feature from postgresql, XSLT processing and SVG for graphics rendering. 

You can see a result with a SVG compatible browser (Firefox 3.6 for example) here : http://tmafg.free.fr/bordel/hornet/postgresql/result.xml

The idea is to generate an XML compatible with my XSLT file, so the request is :
SELECT query_to_xml('SELECT * FROM dlt_stats WHERE dlt_id=''DLT7000-002'' AND errors0 ORDER BY backup_date;', false, false, '');

where you have to concatenate with ""

Process the xml generated with the xsl file located here (http://tmafg.free.fr/bordel/hornet/postgresql/result.xsl) and voila !!!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>My solution is a new approch, hope that it&#8217;s good for you.</p>
<p>I use, XML feature from postgresql, XSLT processing and SVG for graphics rendering. </p>
<p>You can see a result with a SVG compatible browser (Firefox 3.6 for example) here : <a href="http://tmafg.free.fr/bordel/hornet/postgresql/result.xml" rel="nofollow">http://tmafg.free.fr/bordel/hornet/postgresql/result.xml</a></p>
<p>The idea is to generate an XML compatible with my XSLT file, so the request is :<br />
SELECT query_to_xml(&#8217;SELECT * FROM dlt_stats WHERE dlt_id=&#8221;DLT7000-002&#8221; AND errors0 ORDER BY backup_date;&#8217;, false, false, &#8221;);</p>
<p>where you have to concatenate with &#8220;&#8221;</p>
<p>Process the xml generated with the xsl file located here (http://tmafg.free.fr/bordel/hornet/postgresql/result.xsl) and voila !!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://dan.langille.org/2010/02/06/graphing/#comment-410</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Mon, 15 Feb 2010 22:28:21 +0000</pubDate>
		<guid isPermaLink="false">http://dan.langille.org/?p=258#comment-410</guid>
		<description>Yes, they are both on the same machine.</description>
		<content:encoded><![CDATA[<p>Yes, they are both on the same machine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://dan.langille.org/2010/02/06/graphing/#comment-409</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Mon, 15 Feb 2010 21:32:11 +0000</pubDate>
		<guid isPermaLink="false">http://dan.langille.org/?p=258#comment-409</guid>
		<description>If you have pl-R installed and you're running the web server on the same machine as the DB server (or are willing to fool around with NFS / SMB type stuff), you can use R it to draw your graphs for you.</description>
		<content:encoded><![CDATA[<p>If you have pl-R installed and you&#8217;re running the web server on the same machine as the DB server (or are willing to fool around with NFS / SMB type stuff), you can use R it to draw your graphs for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://dan.langille.org/2010/02/06/graphing/#comment-401</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Sun, 07 Feb 2010 23:31:35 +0000</pubDate>
		<guid isPermaLink="false">http://dan.langille.org/?p=258#comment-401</guid>
		<description>Good point.

My initial goal was something like this:

select dlt_id, backup_date, errors from dlt_stats order by dlt_id, backup_date;

Then plot each dlt_id on it's own graph.  This would show any trends over time.

It would be interesting to see your data set plotted against each other.

The min/max and avg is interesting.  Please ignore any zero values.  They will be invalid (the batch job failed to record the actual errors).

e.g:

select dlt_id, count(*), min(backup_date), max(backup_date), min(errors), max(errors), avg(errors)
from dlt_stats where errors != 0
group by dlt_id order by 7, 6 desc, 5


Thanks.</description>
		<content:encoded><![CDATA[<p>Good point.</p>
<p>My initial goal was something like this:</p>
<p>select dlt_id, backup_date, errors from dlt_stats order by dlt_id, backup_date;</p>
<p>Then plot each dlt_id on it&#8217;s own graph.  This would show any trends over time.</p>
<p>It would be interesting to see your data set plotted against each other.</p>
<p>The min/max and avg is interesting.  Please ignore any zero values.  They will be invalid (the batch job failed to record the actual errors).</p>
<p>e.g:</p>
<p>select dlt_id, count(*), min(backup_date), max(backup_date), min(errors), max(errors), avg(errors)<br />
from dlt_stats where errors != 0<br />
group by dlt_id order by 7, 6 desc, 5</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dim</title>
		<link>http://dan.langille.org/2010/02/06/graphing/#comment-400</link>
		<dc:creator>dim</dc:creator>
		<pubDate>Sun, 07 Feb 2010 21:57:59 +0000</pubDate>
		<guid isPermaLink="false">http://dan.langille.org/?p=258#comment-400</guid>
		<description>That gives me a first impression, is that something you'd base the work on?

dlt=# select dlt_id, count(*), min(backup_date), max(backup_date), min(errors), max(errors), avg(errors) 
from dlt_stats 
group by dlt_id order by 7, 6 desc, 5;


Then I'd have a look at http://matplotlib.sourceforge.net/, there are some recipes to be using it in a web application. There's a default interactive rendering that could be easier to use from the command line, though.</description>
		<content:encoded><![CDATA[<p>That gives me a first impression, is that something you&#8217;d base the work on?</p>
<p>dlt=# select dlt_id, count(*), min(backup_date), max(backup_date), min(errors), max(errors), avg(errors)<br />
from dlt_stats<br />
group by dlt_id order by 7, 6 desc, 5;</p>
<p>Then I&#8217;d have a look at <a href="http://matplotlib.sourceforge.net/" rel="nofollow">http://matplotlib.sourceforge.net/</a>, there are some recipes to be using it in a web application. There&#8217;s a default interactive rendering that could be easier to use from the command line, though.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

