I have been able to trace down my problem a little - but it's not solved
yet.
I've added a self.axes.plot([0,1],[0,1]) when I'm adding a line to
self.axes. The first time I'm adding a line, I just see the 0,1 line. The
second time, I see the lines I want to see. However, the grid doesn't scale
(so the lines keep updating in an area that's not visible anymore.
Any ideas?
-----Urspr�ngliche Nachricht-----
Von: matplotlib-users-admin@lists.sourceforge.net
[mailto:matplotlib-users-admin@lists.sourceforge.net] Im Auftrag von
Benjamin Schindler
Gesendet: Freitag, 26. August 2005 09:04
An: 'Ken McIvor'
Cc: matplotlib-users@lists.sourceforge.net
Betreff: AW: AW: [Matplotlib-users] Line2D and wx Backend
I was simply trying out the hint you gave me. I didn't expect it to solve my
problem, but I tried anyway. I found it to be the easiest thing I can do just to send it my code. It's
not _that_ complex, though you need twisted installed (I don't know whether
it'll work with 1.3 - I'm working with 2.0) and you'll need wxpython 2.6
(I'm using features only present in 2.6)
My Attachement is a zip-file. I figured that the outgoing mailserver blocks
mail witz zip attachements :-/. First start server.py (in root-dir) - it
will generate the data, then start the client. In the sidebar (once the
client connected to the server) you can select/deselect sources. My idea is,
that data collection just goes on, and If I select a source, It displays me
all the data currently collected.
The code that has to do with the matplotlib stuff is located in
plugins/wx/monitor.py. Receive(self, data, source) is the retreival function
and EnableSource is supposed to enable drawing of a particular data-source.
Sorry for not doing a very simple testcase - but I think the code in
monitor.py is simple enough
-----Urspr�ngliche Nachricht-----
Von: Ken McIvor [mailto:kmcivor@…287…] Gesendet: Donnerstag, 25. August 2005 17:12
An: Schindler Benjamin
Cc: matplotlib-users@lists.sourceforge.net
Betreff: Re: AW: [Matplotlib-users] Line2D and wx Backend
On Aug 25, 2005, at 10:02 AM, Schindler Benjamin wrote:
Since I have to leave from here I cannot yet produce a sample app that would show this behaviour.
It doesn't have to be anything complex, just the bare functionality of whatever you're working on. I'll be happy to take a look at it tomorrow.
However, I tried to have a non-empty list at the beginning. I replaced Line2D(,) with Line2D([1,2],[1,2]) just for the sake of trying - with no luck apparently.
I'm sorry if I gave you the impression that that was the problem... it's a potential problem, but I didn't mean to suggest that it's why your plot isn't being draw.
Ken
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * TechWell - Software Conferences, Training, & Resources