How to import xplt, pylab?
hdante at gmail.com
hdante at gmail.com
Thu Nov 22 20:28:37 EST 2007
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
pylab is in matplotlib. Install matplotlib, then, for example:
from matplotlib import pylab
pylab.plot([1, 2, 3])
pylab.show()
On Nov 22, 9:48 pm, Caren Balea <caren_ba... at xemail.de> wrote:
>
> 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 "<pyshell#2>", line 1, in <module>
> from scipy.sandbox import xplt
> ImportError: cannot import name xplt
>
> >>> import scipy.sandbox.xplt
>
> Traceback (most recent call last):
> File "<pyshell#3>", line 1, in <module>
> import scipy.sandbox.xplt
> ImportError: No module named xplt
More information about the Python-list
mailing list