stuck: need help with pythonxy/matplotlib for the first time

hello, can someone give me a hint to get started.

context:
i’m trying to use pythonxy and matplotlib
i’ve got python 2.7 installed, and pythonxy
i also have matplotlib installed (i know that because it runs from ipythonxy - the interactive console)

eventually i’ll need to be getting data from a database so that why i’ve chosen eclipse

problem:

  1. my import matplotlib shows an error (a bad start)
  2. i can’t run my module

this is probably basic, can someone give me a pointer?

best,

Due to that my first question a couple of day back was a mess i thougth i could clear things up.

Is there any way to label the lines using linecollection. In plot there is label, example;
plot(x,y,label = “Hello”)

But are there any way to do the same thing with linecollection?
If not, is there any eother asy way of creating labels on a line?

Best regards,
Tim

···

Hi Jerome,

jerome thircuir, on 2011-04-13 10:15, wrote:

hello, can someone give me a hint to get started.

we'll try our best, but I think we'll need more information from
you.

context:
i'm trying to use pythonxy and matplotlib
i've got python 2.7 installed, and pythonxy
i also have matplotlib installed (i know that because it runs from ipythonxy
- the interactive console)

so 'import matplotlib' works in ipythonxy?

eventually i'll need to be getting data from a database so that why i've
chosen eclipse

are you talking about Eclipse IDE? I'm a little unclear about how
the IDE will help you get data out of a database, but maybe I
just don't know enough about eclipse.

problem:
1. my import matplotlib shows an error (a bad start)

this error occurs when you import in Eclipse? What does the error
say?

2. i can't run my module

does your module import in plain python? what is the error
message?

best,

···

--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7

2011/4/13 Tim Åberg <qwigz@...32...>:

Due to that my first question a couple of day back was a mess i thougth i
could clear things up.

Is there any way to label the lines using linecollection. In plot there is
label, example;
plot(x,y,label = "Hello")

But are there any way to do the same thing with linecollection?
If not, is there any eother asy way of creating labels on a line?

You can customize the legend by hand.
http://matplotlib.sourceforge.net/users/legend_guide.html

Goyo