473,378 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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 "<stdin>", line 1, in <module>
ImportError: No module named xplt
*****************************************

Also I try

import pylab

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

*****************************************

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

Any help would be much appreciated!!!

Thank you,
Caren
Nov 22 '07 #1
3 5681
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 "<stdin>", line 1, in <module>
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 "<stdin>", line 1, in <module>
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
Nov 22 '07 #2
On 22 Nov, 23:17, "J. Clifford Dyer" <j...@sdf.lonestar.orgwrote:
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 "<stdin>", line 1, in <module>
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 "<stdin>", line 1, in <module>
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 "<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
Nov 22 '07 #3
On Nov 23, 8:03 pm, Robert Kern <robert.k...@gmail.comwrote:
>
In any case, xplt has been deprecated for a long time. It probably doesn't work.
I don't recommend using it unless if you want to take on the responsibility of
maintaining it.

--
BTW, does she need help with importing a module or with plotting some
graph ? :-)
Nov 24 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mathias | last post by:
Hi all, I'd like to display a number of pictures with xplt.imagesc() in the same window using xplt.subplot() Now I expected 3 or 4 parameters in subplot(): -total # of plots in X dir. -total #...
1
by: jean.rossier | last post by:
Hello All, I am facing a problem while importing pylab library(in a .py program file) via web browser however the same program works when I execute it from the command prompt. my...
3
by: Dr. Colombes | last post by:
On my home laptop computer, I'm trying to install the appropriate modules so that Python version 2.3.3 and IDLE version 1.0.2 (with an "import matplotlib.matlab" statement) can produce nice...
2
by: Charles Krug | last post by:
List: I'm trying to us pylab to see what I'm doing with some DSP algorithms, in case my posts about convolution and ffts weren't giving it away. I've been using pylab's plot function, but I'm...
6
by: googlinggoogler | last post by:
Hiya, I've got a PIC microcontroller reading me humidity data via rs232, this is in ASCII format. I can view this data easily using hyperterminal or pyserial and convert it to its value...
0
by: Petr Jakes | last post by:
Hi my script is working well when I am running it from the terminal window. While I am trying to start it as a Cron job, I am getting an Error described bellow: My configuration: Pentium III,...
11
by: Connelly Barnes | last post by:
Hi, I wrote the 'autoimp' module , which allows you to import lazy modules: from autoimp import * (Import lazy wrapper objects around all modules; "lazy modules" will turn into normal...
6
by: =?ISO-8859-1?Q?Sch=FCle_Daniel?= | last post by:
Hello, In : def simple_integral(func,a,b,dx = 0.001): ....: return sum(map(lambda x:dx*x, func(arange(a,b,dx)))) ....: In : simple_integral(sin, 0, 2*pi) Out: -7.5484213527594133e-08 ...
3
by: Willem-Jan Vriend | last post by:
I want to use pylab (matplotlib) on a machine without X11. I'm trying to generate onthefly graphics for an apache2 web service, so they do not have to be displayed on this machine ! When i do...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.