How to import xplt, pylab?

2007-11-22 Thread Caren Balea
Hello,

I'm newbie to python.

So far, I'm a bit disappointed. It's awful to set Python up to work.
It's not working!!!

Ok, calm down. Here are my settings:
I'm using Windows XP machine and have installed
Python 2.5.1.
Also, I have also installed something called "Cygwin" to type
in my commands.
Finally, I have installed scipy-0.6.0.

After starting Cygin I type

python
import math
import scipy
*
Then I try

import xplt

and get the message
Traceback (most recent call last):
File "", line 1, in 
ImportError: No module named xplt
*

Also I try

import pylab

and get the message
Traceback (most recent call last):
File "", line 1, in 
ImportError: No module named pylab

*

So, how can I use xplt and pylab???

Any help would be much appreciated!!!

Thank you,
Caren
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to import xplt, pylab?

2007-11-22 Thread Caren Balea
On 22 Nov, 23:17, "J. Clifford Dyer" <[EMAIL PROTECTED]> wrote:
> On Thu, Nov 22, 2007 at 02:00:00PM -0800, Caren Balea wrote regarding How to 
> import xplt, pylab?:
>
>
>
>
>
> > Hello,
>
> > I'm newbie to python.
>
> > So far, I'm a bit disappointed. It's awful to set Python up to work.
> > It's not working!!!
>
> > Ok, calm down. Here are my settings:
> > I'm using Windows XP machine and have installed
> > Python 2.5.1.
> > Also, I have also installed something called "Cygwin" to type
> > in my commands.
> > Finally, I have installed scipy-0.6.0.
>
> > After starting Cygin I type
>
> > python
> > import math
> > import scipy
> > *
> > Then I try
>
> > import xplt
>
> > and get the message
> > Traceback (most recent call last):
> > File "", line 1, in 
> > ImportError: No module named xplt
> > *
>
> xplt is a module within scipy, so it will not be available at the top level.  
> However, all you need to do is
>
> py>>> from scipy.sandbox import xplt
>
> or
>
> py>>> import scipy.sandbox.xplt
>
> The advantage of the former is that you can just use the names xplt.*, while 
> with the latter you have to type scipy.sandbox.xplt.*.
>
> > Also I try
>
> > import pylab
>
> > and get the message
> > Traceback (most recent call last):
> > File "", line 1, in 
> > ImportError: No module named pylab
>
> > *
>
> I haven't worked with pylab, but it looks like you may need another install 
> (matplotlib?)  I'm not sure.  I just did a quick google search.
>
> > So, how can I use xplt and pylab???
>
> > Any help would be much appreciated!!!
>
> > Thank you,
> > Caren
>
> Happy Thankgiving hacking!
>
> Cheers,
> Cliff

Thank you. I've tried both suggestions.
But they both don't work :(

Here are the outputs:

>>> import math
>>> import scipy
>>> from scipy.sandbox import xplt

Traceback (most recent call last):
  File "", line 1, in 
from scipy.sandbox import xplt
ImportError: cannot import name xplt
>>> import scipy.sandbox.xplt

Traceback (most recent call last):
  File "", line 1, in 
import scipy.sandbox.xplt
ImportError: No module named xplt
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to import xplt, pylab?

2007-11-23 Thread Caren Balea
On 23 Nov, 01:28, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>  scipy is pretty powerful, but has awful documentation and it's code
> is somewhat disorganized/hacked. Maybe, you could try:
>
>  import scipy
>  import scipy.sandbox
>  import scipy.sandbox.xplt

Okay, thanks. I've tried but without success :(
Here is what is displayed:

>>> import math
>>> import scipy
>>> import scipy.sandbox
>>> import scipy.sandbox.xplt

Traceback (most recent call last):
  File "", line 1, in 
import scipy.sandbox.xplt
ImportError: No module named xplt
-- 
http://mail.python.org/mailman/listinfo/python-list