473,770 Members | 1,833 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5706
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.x plt

The advantage of the former is that you can just use the names xplt.*, while with the latter you have to type scipy.sandbox.x plt.*.
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.lones tar.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.x plt

The advantage of the former is that you can just use the names xplt.*, while with the latter you have to type scipy.sandbox.x plt.*.
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.x plt
Traceback (most recent call last):
File "<pyshell#3 >", line 1, in <module>
import scipy.sandbox.x plt
ImportError: No module named xplt
Nov 22 '07 #3
On Nov 23, 8:03 pm, Robert Kern <robert.k...@gm ail.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
1393
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 # of plots in Y dir. -number or coordinates of current plot However, there seem to be only Numy and Numx. Documentation on this function is ...well... scarce ;)
1
2697
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 configuration : Fedora Core 3 Apache 2.0
3
4064
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 MatLab-like plots. I have a matplotlib.matlab-capable Python set-up running OK on my office desktop, which I obtained after downloading and installing a few more modules (numarray and numeric, I think). Now I get the following message about...
2
7812
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 finding it a bit cumbersome. It works, but if I switch from the interactive window to the plot window and back, the plot window gets trashed.
6
17694
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 (relative humidty with ord(input)) But what im trying to do is plot the data in real time, ideally with pylab - as it looks simple to use and simple is the way i want to go! My code is below, it doesnt show a graph, I was wondering whether
0
2321
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, Python 2.4.1, Fedora Core4 Thanks for your comments. Petr Jakes File "/root/eric/analyza_dat_TPC/htmlgenerator.py", line 7, in ?
11
1851
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 modules when an attribute is first accessed with getattr()). from autoimp import A, B (Import specific lazy module wrapper objects). The main point of autoimp is to make usage of the interactive Python prompt
6
5283
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 ok, can be thought as zero
3
2809
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 pylab.figure() I get the error TclError: couldn't connect to display ":0.0" I tried setting the DISPLAY environment variable to "", ":0.0" but I got
0
9617
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9904
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.