<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: matplotlib with wxPython GUIs</title>
	<atom:link href="http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/feed/" rel="self" type="application/rss+xml" />
	<link>http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/</link>
	<description>Eli Bendersky's personal website</description>
	<lastBuildDate>Wed, 10 Mar 2010 17:32:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: eliben</title>
		<link>http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/comment-page-1/#comment-265495</link>
		<dc:creator>eliben</dc:creator>
		<pubDate>Sun, 14 Feb 2010 16:51:53 +0000</pubDate>
		<guid isPermaLink="false">http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/#comment-265495</guid>
		<description>@Ben Han,

Sure thing! The code is in the public domain, so you may use it, with or without attribution.</description>
		<content:encoded><![CDATA[<p>@Ben Han,</p>
<p>Sure thing! The code is in the public domain, so you may use it, with or without attribution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Han</title>
		<link>http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/comment-page-1/#comment-265389</link>
		<dc:creator>Ben Han</dc:creator>
		<pubDate>Sun, 14 Feb 2010 12:05:03 +0000</pubDate>
		<guid isPermaLink="false">http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/#comment-265389</guid>
		<description>Hi Eli,
Great example, helped me out a lot.
I&#039;m currently working on an application to display a live plot of measured sEMG values for a biofeedback system to assist in the rehabilitation of patients with dysphagia (swallowing disorder). 
Would be ok with you if I use your code (somewhat modified) to display the sEMG waveform? I will credit your name and website in the code if you say yes.</description>
		<content:encoded><![CDATA[<p>Hi Eli,<br />
Great example, helped me out a lot.<br />
I&#8217;m currently working on an application to display a live plot of measured sEMG values for a biofeedback system to assist in the rehabilitation of patients with dysphagia (swallowing disorder).<br />
Would be ok with you if I use your code (somewhat modified) to display the sEMG waveform? I will credit your name and website in the code if you say yes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lechfeck</title>
		<link>http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/comment-page-1/#comment-249086</link>
		<dc:creator>lechfeck</dc:creator>
		<pubDate>Tue, 12 Jan 2010 13:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/#comment-249086</guid>
		<description>Excellent code, save me a lot of time. Thank you</description>
		<content:encoded><![CDATA[<p>Excellent code, save me a lot of time. Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SteT</title>
		<link>http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/comment-page-1/#comment-231214</link>
		<dc:creator>SteT</dc:creator>
		<pubDate>Tue, 01 Dec 2009 15:54:29 +0000</pubDate>
		<guid isPermaLink="false">http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/#comment-231214</guid>
		<description>Eli,

Excellent code that will help me no-end in my application.
What is the easiest way to get this to get this to display an incoming data stream via an np array?</description>
		<content:encoded><![CDATA[<p>Eli,</p>
<p>Excellent code that will help me no-end in my application.<br />
What is the easiest way to get this to get this to display an incoming data stream via an np array?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eliben</title>
		<link>http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/comment-page-1/#comment-225630</link>
		<dc:creator>eliben</dc:creator>
		<pubDate>Fri, 13 Nov 2009 05:34:20 +0000</pubDate>
		<guid isPermaLink="false">http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/#comment-225630</guid>
		<description>@yogesh,

&lt;code&gt;DataGen&lt;/code&gt; is a simple object on which &lt;code&gt;next&lt;/code&gt; is continuously called to get a new data point. All you need to plug in another is to re implement it and provide the &lt;code&gt;next&lt;/code&gt; method. In you initialization read the input file and then just provide the next value from it on each call of &lt;code&gt;next&lt;/code&gt;.</description>
		<content:encoded><![CDATA[<p>@yogesh,</p>
<p><code>DataGen</code> is a simple object on which <code>next</code> is continuously called to get a new data point. All you need to plug in another is to re implement it and provide the <code>next</code> method. In you initialization read the input file and then just provide the next value from it on each call of <code>next</code>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yogesh karpate</title>
		<link>http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/comment-page-1/#comment-225465</link>
		<dc:creator>yogesh karpate</dc:creator>
		<pubDate>Thu, 12 Nov 2009 16:13:34 +0000</pubDate>
		<guid isPermaLink="false">http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/#comment-225465</guid>
		<description>Dear Eliben,
                      I&#039;m novice to matplotlib and python . I want to interface your program to my application which generates the ECG data in text format.I want do show it in dynamic/animated way as same u demonstrated in   drawing a dynamic mpl (matplotlib)  plot in a wxPython application.My query is if I have one text file conating all numerical data values known as ecg.txt conataining only one column.
How I can I put in following code snippet written by you
class DataGen(object):
    &quot;&quot;&quot; A silly class that generates pseudo-random data for
        display in the plot.
    &quot;&quot;&quot;
    def __init__(self, init=50):
        self.data = self.init = init
       
    def next(self):
        self._recalc_data()
        return self.data
   
    def _recalc_data(self):
        delta = random.uniform(-0.5, 0.5)
        r = random.random()

        if r &gt; 0.9:
            self.data += delta * 15
        elif r &gt; 0.8:
            # attraction to the initial value
            delta += (0.5 if self.init &gt; self.data else -0.5)
            self.data += delta
        else:
            self.data += delta</description>
		<content:encoded><![CDATA[<p>Dear Eliben,<br />
                      I&#8217;m novice to matplotlib and python . I want to interface your program to my application which generates the ECG data in text format.I want do show it in dynamic/animated way as same u demonstrated in   drawing a dynamic mpl (matplotlib)  plot in a wxPython application.My query is if I have one text file conating all numerical data values known as ecg.txt conataining only one column.<br />
How I can I put in following code snippet written by you<br />
class DataGen(object):<br />
    &#8220;&#8221;" A silly class that generates pseudo-random data for<br />
        display in the plot.<br />
    &#8220;&#8221;"<br />
    def __init__(self, init=50):<br />
        self.data = self.init = init</p>
<p>    def next(self):<br />
        self._recalc_data()<br />
        return self.data</p>
<p>    def _recalc_data(self):<br />
        delta = random.uniform(-0.5, 0.5)<br />
        r = random.random()</p>
<p>        if r &gt; 0.9:<br />
            self.data += delta * 15<br />
        elif r &gt; 0.8:<br />
            # attraction to the initial value<br />
            delta += (0.5 if self.init &gt; self.data else -0.5)<br />
            self.data += delta<br />
        else:<br />
            self.data += delta</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/comment-page-1/#comment-187951</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Wed, 29 Jul 2009 22:20:10 +0000</pubDate>
		<guid isPermaLink="false">http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/#comment-187951</guid>
		<description>This is useful stuff. Thanks for sharing!</description>
		<content:encoded><![CDATA[<p>This is useful stuff. Thanks for sharing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/comment-page-1/#comment-187356</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Wed, 29 Jul 2009 01:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/#comment-187356</guid>
		<description>Very nice examples! Have you tried shrinking the window size though? For me the contents below the toolbar get merged with the canvas, not sure if it&#039;s just my environment or not.</description>
		<content:encoded><![CDATA[<p>Very nice examples! Have you tried shrinking the window size though? For me the contents below the toolbar get merged with the canvas, not sure if it&#8217;s just my environment or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eliben</title>
		<link>http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/comment-page-1/#comment-187160</link>
		<dc:creator>eliben</dc:creator>
		<pubDate>Tue, 28 Jul 2009 12:49:15 +0000</pubDate>
		<guid isPermaLink="false">http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/#comment-187160</guid>
		<description>matplotlib is quite CPU-hungry. For more performant code consider using PyQwt (search my blog for some relevant code).</description>
		<content:encoded><![CDATA[<p>matplotlib is quite CPU-hungry. For more performant code consider using PyQwt (search my blog for some relevant code).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrique</title>
		<link>http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/comment-page-1/#comment-187052</link>
		<dc:creator>Henrique</dc:creator>
		<pubDate>Mon, 27 Jul 2009 21:33:17 +0000</pubDate>
		<guid isPermaLink="false">http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/#comment-187052</guid>
		<description>This examples are the best on internet! Thanks! But, do you know an method to use less CPU? I need to plot some data from a serial sensor but matpotlib uses a lot o CPU. Thanks Again!</description>
		<content:encoded><![CDATA[<p>This examples are the best on internet! Thanks! But, do you know an method to use less CPU? I need to plot some data from a serial sensor but matpotlib uses a lot o CPU. Thanks Again!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
