473,624 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

two of pylab.py

Hi

I use debian/testing linux Linux debian/testing 2.6.15-1-686

I found some duplicate files in my system, I don't if the are both
needed, should I delete one of the groups below and which one?

-rw-r--r-- 1 root root 80375 2006-01-24 00:28 /usr/lib/python2.3/site-packages/matplotlib/pylab.py
-rw-r--r-- 1 root root 96202 2006-05-07 13:44 /usr/lib/python2.3/site-packages/matplotlib/pylab.pyc
-rw-r--r-- 1 root root 96202 2006-05-07 13:45 /usr/lib/python2.3/site-packages/matplotlib/pylab.pyo
-rw-r--r-- 1 root root 31 2004-12-10 03:05 /usr/lib/python2.3/site-packages/pylab.py
-rw-r--r-- 1 root root 160 2006-05-07 13:44 /usr/lib/python2.3/site-packages/pylab.pyc
-rw-r--r-- 1 root root 160 2006-05-07 13:45 /usr/lib/python2.3/site-packages/pylab.pyo
my sys.path shows that /usr/lib/python2.3/site-packages/ is present.

*************** *************** *************** *************** ****
$cat /usr/lib/python2.3/site-packages/pylab.py
from matplotlib.pyla b import *
*************** *************** *************** *************** ****

This imports all names except those beginning with an underscore (_).

thanks
May 10 '06 #1
2 1809
Gary Wessle wrote:
Hi

I use debian/testing linux Linux debian/testing 2.6.15-1-686

I found some duplicate files in my system, I don't if the are both
needed, should I delete one of the groups below and which one?

Do you have any problems related to pylab? Or are you concerned about disk
consumption?
-rw-r--r-- 1 root root 80375 2006-01-24 00:28
/usr/lib/python2.3/site-packages/matplotlib/pylab.py -rw-r--r-- 1 root
root 96202 2006-05-07 13:44
/usr/lib/python2.3/site-packages/matplotlib/pylab.pyc -rw-r--r-- 1 root
root 96202 2006-05-07 13:45
/usr/lib/python2.3/site-packages/matplotlib/pylab.pyo
-rw-r--r-- 1 root root 31 2004-12-10 03:05
/usr/lib/python2.3/site-packages/pylab.py
-rw-r--r-- 1 root root 160 2006-05-07 13:44
/usr/lib/python2.3/site-packages/pylab.pyc
-rw-r--r-- 1 root root 160 2006-05-07 13:45
/usr/lib/python2.3/site-packages/pylab.pyo
my sys.path shows that /usr/lib/python2.3/site-packages/ is present.

*************** *************** *************** *************** ****
$cat /usr/lib/python2.3/site-packages/pylab.py
from matplotlib.pyla b import *
*************** *************** *************** *************** ****

This imports all names except those beginning with an underscore (_).


So it appears to be some sort of alias for matplotlib.pyla b. And unless you
want to risk that other packages that rely on the import

import pylab

to fail, you should keep things as they are.

Diez
May 10 '06 #2
>>>>> "Diez" == Diez B Roggisch <de***@nospam.w eb.de> writes:
I use debian/testing linux Linux debian/testing 2.6.15-1-686

I found some duplicate files in my system, I don't if the are
both needed, should I delete one of the groups below and which
one?
site-packages/pylab.py is just there for convenience to import
matplotlib.pyla b, since it is easier to type
import pylab
rather than
import matplotlib.pyla b


You should leave all of the file as is, because code will assume both
are there.

JDH
May 10 '06 #3

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

Similar topics

1
2691
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
4046
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
7803
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
17688
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
2
2716
by: timw.google | last post by:
Hi all. I installed matplotlib 0.87.3 under Python 2.4 on both Linux (FC3) and Windows XP Pro. On the linux install, I can import pylab, but when I try to do the same thing on the Windows installation, I get >>> from pylab import * Traceback (most recent call last): File "<pyshell#7>", line 1, in -toplevel-
0
1962
by: ehenlin | last post by:
Hi, How to make pylab work together with py2exe? Have anyone managed to build a stand alone exe with pylab package? I have made a small test script but that does not work. setup.py ------------
14
6745
by: amitsoni.1984 | last post by:
hi, I have some values(say from -a to a) stored in a vector and I want to plot a histogram for those values. How can I get it done in python. I have installed and imported the Matplotlib package but on executing the code =hist(eig, 10) # make a histogram I am getting an error saying "NameError: name 'hist' is not defined". Is there any other way to plot histograms over a given range?
3
5697
by: Caren Balea | last post by:
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.
3
2803
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
8236
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
8173
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
8679
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8621
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7159
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6110
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
5563
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();...
1
1785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1482
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.