AW: Line2D and wx Backend

Since I have to leave from here I cannot yet produce a sample app that would show this behaviour. 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'll post a sample app tomorrow asap

···

-----Ursprüngliche Nachricht-----
Von: Ken McIvor [mailto:kmcivor@…287…]
Gesendet: Do 25.08.2005 16:54
An: Schindler Benjamin
Cc: matplotlib-users@lists.sourceforge.net
Betreff: Re: [Matplotlib-users] Line2D and wx Backend

On Aug 25, 2005, at 9:33 AM, Schindler Benjamin wrote:

Some event will occur and do the following (it does):
        self.axes.add_line(Line2D(,)

You really don't want to plot empty lines, as it will end up making 0,0
part of the total data range. If your data points are on the positive
side of the origin and are a long way from zero you'll end up with a
lot of empty space on the axis and a little squiggle of a plot off to
the right. I've been meaning to file a bug report about this behavior,
which I believe is caused by Numeric.array() returning
Numeric.zeros((0,), 'l').

I do receive data, I see that I have lines in self.axes, but I never
achieved to have a line on my display. What am I missing?

I can think of a few possible problems but wouldn't care to hazard a
guess without knowing how things like event generation and handling are
implemented I. If you could send an example program which exhibits
this problem, I will be happy to look into it.

Ken

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

···

On Aug 25, 2005, at 10:02 AM, Schindler Benjamin wrote:

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

server (97.5 KB)

···

-----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

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

Hi,

Could you provide a sample showing the problem which is not depended on twisted?

See you
Werner

Benjamin Schindler wrote:

···

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

Hi

Sortof, but not really. I've just discovered something reeeally interesting.

I've produced a sample app that exhibits this behaviour. However, monitor.py
(in plugins/wx) still depends on twisted.spread.pb. If I comment out that
import, it all runs fine. (you can add data with the a button and the slider
in the left pane)
It's hard for me guess who is causing the troubles - whether it's matplotlib
not beeing able to handle the twisted threading or twisted breaking
matplotlib - I don't know

mat_test.zip.rename (97.4 KB)

···

-----Ursprüngliche Nachricht-----
Von: matplotlib-users-admin@lists.sourceforge.net
[mailto:matplotlib-users-admin@lists.sourceforge.net] Im Auftrag von Werner
F. Bruhin
Gesendet: Montag, 29. August 2005 14:25
An: matplotlib-users@lists.sourceforge.net
Betreff: [Matplotlib-users] Re: AW: AW: Line2D and wx Backend

Hi,

Could you provide a sample showing the problem which is not depended on
  twisted?

See you
Werner

Benjamin Schindler wrote:

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

-------------------------------------------------------
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
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Oh- I forgot

You don't need to execute the server - just launch client.py (I haven't
stripped everything off)

···

-----Ursprüngliche Nachricht-----
Von: matplotlib-users-admin@lists.sourceforge.net
[mailto:matplotlib-users-admin@lists.sourceforge.net] Im Auftrag von Werner
F. Bruhin
Gesendet: Montag, 29. August 2005 14:25
An: matplotlib-users@lists.sourceforge.net
Betreff: [Matplotlib-users] Re: AW: AW: Line2D and wx Backend

Hi,

Could you provide a sample showing the problem which is not depended on
  twisted?

See you
Werner

Benjamin Schindler wrote:

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

-------------------------------------------------------
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
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Hi Benjamin,

Sorry but your code is still dependent on twisted:

Traceback (most recent call last):
  File "client.py", line 2, in ?
    from modules import mainwindow
  File "C:\Dev\BoaTest04\Benjamin\mat_test\modules\mainwindow.py", line 2, in ?
    from twisted.internet import wxreactor
ImportError: No module named twisted.internet

I don't have the time/nor interest (at least not at the moment) to get twisted installed on my machine.

You should try to isolate your problem and part of that is probably to get your matplotlib stuff NOT be dependent on a twisted feed, get the data from a file or even just hard code it.

Tschüss und vieli grüss us em Süd Frankreich
Werner

Benjamin Schindler wrote:

···

Oh- I forgot

You don't need to execute the server - just launch client.py (I haven't
stripped everything off)

-----Ursprüngliche Nachricht-----
Von: matplotlib-users-admin@lists.sourceforge.net
[mailto:matplotlib-users-admin@lists.sourceforge.net] Im Auftrag von Werner
F. Bruhin
Gesendet: Montag, 29. August 2005 14:25
An: matplotlib-users@lists.sourceforge.net
Betreff: [Matplotlib-users] Re: AW: AW: Line2D and wx Backend

Hi,

Could you provide a sample showing the problem which is not depended on twisted?

See you
Werner

Benjamin Schindler wrote:

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
   
-------------------------------------------------------
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
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options