gplt from scipy missing ?

I

Ivan Reborin

I'm relatively new to python. I'm following a tutorial I found on the
net, and it uses scipy's gplt for plotting.
I installed scipy from their website (win32 installation), numpy also,
but when I do

from scipy import gplt

it gives this error:

Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from scipy import gplt
ImportError: cannot import name gplt

Please, can you help me solve this ? How do I get gplt to work ?
All advice appreciated.


Best regards
Ivan
 
G

Gabriel Genellina

En Mon, 22 Sep 2008 23:19:49 -0300, Ivan Reborin
I'm relatively new to python. I'm following a tutorial I found on the
net, and it uses scipy's gplt for plotting.
I installed scipy from their website (win32 installation), numpy also,
but when I do

from scipy import gplt

it gives this error:

Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from scipy import gplt
ImportError: cannot import name gplt

Please, can you help me solve this ? How do I get gplt to work ?
All advice appreciated.

I think scipy does not bundle plotting packages anymore - you may use
whatever suits you, from other sources.
Try matplotlib, see the wiki:
http://wiki.python.org/moin/NumericAndScientific/Plotting
 
I

Ivan Reborin

I think scipy does not bundle plotting packages anymore - you may use
whatever suits you, from other sources.
Try matplotlib, see the wiki:
http://wiki.python.org/moin/NumericAndScientific/Plotting

Hello Gabriel,
thank you for answering.

Unfortunatelly, I cannot change my plotting package, unless I indend
to change a lot of code that I'll be using in the future. I'm not a
programmer by trade, just a guy doing some calculations with already
written programms.

Do you know, by any chance, where one could get gplt separately, or
for example, get older versions of scipy ?
I'm using python 5.2.2.. If I install scipy for python 2.3. for
example (let's assume that one still has gplt in it) will it work ?

Best regards
Ivan
 
I

Ivan Reborin

Hello Gabriel,
thank you for answering.

Unfortunatelly, I cannot change my plotting package, unless I indend
to change a lot of code that I'll be using in the future. I'm not a
programmer by trade, just a guy doing some calculations with already
written programms.

Do you know, by any chance, where one could get gplt separately, or
for example, get older versions of scipy ?
I'm using python 5.2.2.. If I install scipy for python 2.3. for
Mea culpa, *2.5.2
 
M

Michael Palmer

Hello Gabriel,
thank you for answering.

Unfortunatelly, I cannot change my plotting package, unless I indend
to change a lot of code that I'll be using in the future. I'm not a
programmer by trade, just a guy doing some calculations with already
written programms.

Do you know, by any chance, where one could get gplt separately, or
for example, get older versions of scipy ?
I'm using python 5.2.2.. If I install scipy for python 2.3. for
example (let's assume that one still has gplt in it) will it work ?

Best regards
Ivan

Well, if you are using scipy, you must at least be doing some
programming. Instead of using gplt, you could just write your data to
a .csv file and feed that to gnuplot yourself. You can then use the
full flexibility of gnuplot for formatting your output, without having
to cross your fingers that the features you need will be covered by
the gplt module. You also have your data in a readable format after
calculation but before plotting - I find such intermediate data useful
for debugging.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,905
Latest member
Kristy_Poole

Latest Threads

Top