Re: scipy.plt legend?

2005-10-11 Thread John Hunter
> "gurkesaft" == gurkesaft <[EMAIL PROTECTED]> writes: gurkesaft> Thank you, Robert. I noticed how obsolete it is! gurkesaft> There is no documentation. gurkesaft> Matplotlib freezes my system if I close a plot and make gurkesaft> a new one :(. Bah. Windows :) Have you se

Re: [OT] Good C++ book for a Python programmer

2005-01-19 Thread John Hunter
> "Philippe" == Philippe C Martin <[EMAIL PROTECTED]> writes: Philippe> I suggest you google 'C++ tutorial' Regards, Stroustup's "The C++ Programming Language" is the best C++ book I've read. It is at a fairly high level, and I already had read several C++ books before reading it, so it

Re: problem with import pylab from a website

2005-01-20 Thread John Hunter
> "jean" == jean rossier <[EMAIL PROTECTED]> writes: jean> Hello All, I am facing a problem while importing pylab jean> library(in a .py program file) via web browser however the jean> same program works when I execute it from the command jean> prompt. jean> Error message

Re: Unbinding multiple variables

2005-01-20 Thread John Hunter
> "Johnny" == Johnny Lin <[EMAIL PROTECTED]> writes: Johnny> Hi! Is there a way to automate the unbinding of multiple Johnny> variables? Say I have a list of the names of all Johnny> variables in the current scope via dir(). Is there a Johnny> command using del or something

Re: problems with duplicating and slicing an array

2005-01-20 Thread John Hunter
> "Yun" == Yun Mao <[EMAIL PROTECTED]> writes: Yun> 2. Is there a way to do Matlab style slicing? e.g. if I have Yun> i = array([0, 2]) x = array([1.1, 2.2, 3.3, 4.4]) I wish y = Yun> x(i) would give me [1.1, 3.3] Now I'm using map, but it gets Yun> a little annoying when there

Re: how to write a tutorial

2005-01-21 Thread John Hunter
> "Xah" == Xah Lee <[EMAIL PROTECTED]> writes: Xah> at places often a whole paragraph on some so called computer Xah> science jargons should be deleted. They are there more to Xah> showcase inane technicality than do help the Xah> reader. (related, many passages with jargons sh

Re: Graph and Table implementation

2005-01-21 Thread John Hunter
> "Jan" == Jan Rienyer Gadil <[EMAIL PROTECTED]> writes: Jan> could anyone please help me! what and how is the best Jan> implementation of creating a table based on data coming from Jan> the serial port ? and also how would i be able to create Jan> graphs (2D) based on these d

ANN: matplotlib-0.71

2005-01-25 Thread John Hunter
matplotlib is a 2D graphics package that produces plots from python scripts, the python shell, or embeds them in your favorite python GUI -- wx, gtk, tk, fltk currently supported with qt in the works. Unlike many python plotting alternatives is written in python, so it is easy to extend. matplotli

detect tk mainloop

2005-01-26 Thread John Hunter
In matplotlib using the tkagg backend, the tk mainloop is started at the end of a python script by issuing a call to a "show" function, which realizes all the created figure windows and the calls Tkinter.mainloop(). This can cause problems if the mainloop was started by another module (eg idle).

Re: python without OO

2005-01-26 Thread John Hunter
> "Davor" == Davor <[EMAIL PROTECTED]> writes: Davor> not really - it was not my intention at all - but it seems Davor> people get upset whenever this OO stuff is mentioned - and Davor> what I did not expect at all at this forum as I believed Davor> Python people should not be

Re: python without OO

2005-01-26 Thread John Hunter
> "beliavsky" == beliavsky <[EMAIL PROTECTED]> writes: beliavsky> I think the OO way is slightly more obscure. It's beliavsky> obvious what x = reverse(x) does, but it is not clear beliavsky> unless you have the source code whether x.reverse() You don't need to read the src, you

Re: Installing Numeric with ATLAS and LAPACK

2005-01-28 Thread John Hunter
> "drife" == drife <[EMAIL PROTECTED]> writes: drife> Hello, Could someone please provide instructions for drife> install Numeric with ATLAS and LAPACK? Locate libcblas.a and add that dir to the setup.py library_dirs_list. Eg on my system, /usr/local/lib/ATLAS/lib/Linux_P4SSE2_2/libc

handling xls with pyuno

2005-01-28 Thread John Hunter
Does anyone have any example scripts using the OpenOffince python-bridge module pyuno to load xls, extract the data, and/or save to another format such as xsc or csv. Thanks, JDH -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Numeric with ATLAS and LAPACK

2005-01-28 Thread John Hunter
> "drife" == drife <[EMAIL PROTECTED]> writes: drife> Thanks John. Those are the steps I followed, and to no drife> avail. Make sure you get a clean build by rm -rf ing the build dir before you build again. Then capture the output of your build to a file. When you say "to no avai

Re: LinearAlgebra incredibly slow for eigenvalue problems

2005-01-28 Thread John Hunter
> "drife" == drife <[EMAIL PROTECTED]> writes: drife> Hi David, I performed the above check, and sure enough, drife> Numeric is --not-- linked to the ATLAS libraries. drife> I followed each of your steps outlined above, and Numeric drife> still is not linking to the ATLAS lib

python and gpl

2005-01-30 Thread John Hunter
I have a question about what it takes to trigger GPL restrictions in python code which conditionally uses a GPL library. Here is the context of my question. matplotlib, which I develop, is a plotting module which is distributed under a PSF compatible license, and hence we avoid using GPLd code s

Re: barchart for webpage needed

2005-01-31 Thread John Hunter
> "dimitri" == dimitri pater <[EMAIL PROTECTED]> writes: dimitri> Hello, I am looking for a Python tool to create graphs dimitri> and charts on a webpage. Chartdirector is too expensive dimitri> for me. A simple script for creating a barchart should be dimitri> sufficient as a

Re: Python's idiom for function overloads

2005-01-31 Thread John Hunter
> "Frans" == Frans Englich <[EMAIL PROTECTED]> writes: Frans> Hello, Frans> Since Python doesn't have static typing, how is the same Frans> result as traditional function overloads results in Frans> acheived? With function overloads the "selection of code Frans> path depen

exporting mesh from image data

2005-02-03 Thread John Hunter
I am trying to generate a mesh for a finite volume solver (gambit, fluent) from 3D image data (CT, MRI). To generate the fluent msh file, you need not only a list of vertices and polygons, much like what is available in the vtk file format, but also the volume elements in the mesh that the polygo

Re: [Fwd: [gnu.org #220719] Re: python and gpl]

2005-02-03 Thread John Hunter
> "Paul" == Paul Rubin <"http://phr.cx"@NOSPAM.invalid> writes: Paul> Various possible candidates for such dragging have Paul> apparently decided that their chances weren't too good. Or simply that it wasn't worth the cost to go to court, even if they presumed they would eventually wi

Re: exporting mesh from image data

2005-02-04 Thread John Hunter
> "Fernando" == Fernando Perez <[EMAIL PROTECTED]> writes: Fernando> I hope you posted this on the VTK list with a CC to Fernando> Prabhu as well... The hopes of a positive reply there Fernando> are, I suspect, a fair bit higher. The scipy list would Fernando> be a good idea,

Re: Medical GUI Application With Python

2005-02-05 Thread John Hunter
> "Evrim" == Evrim Ozcelik <[EMAIL PROTECTED]> writes: Evrim> We are developing a medical software about PSG Evrim> (PolySomnoGraphy) analysis. The application takes signal Evrim> data from an electronic device and we will show this Evrim> continious signal function on the inte

ANN: matplotlib 0.83.2

2005-08-02 Thread John Hunter
matplotlib is a 2D plotting package for python. This is a summary of recent developments in matplotlib since 0.80. For detailed notes, see http://matplotlib.sf.net/whats_new.html, http://matplotlib.sf.net/CHANGELOG and http://matplotlib.sf.net/API_CHANGES == Whats New == matplotlib wiki: this

Re: Passing a variable number of arguments to a wrapped function.

2005-08-05 Thread John Hunter
> "stephen" == stephen <[EMAIL PROTECTED]> writes: stephen> Is there a better way of doing this so that I don't have stephen> to go through every permutation of possible arguments stephen> (the example here from the matplotlib 'plot' function): You can make linecolor=None and lin

Re: Gotchas in user-space matplotlib install?

2005-08-11 Thread John Hunter
> "Matt" == Matt Feinstein <[EMAIL PROTECTED]> writes: Matt> Hi all-- I'm planning to try to do a completely local Matt> install of matplotlib (in Fedora Core 1)-- the system Matt> administrator isn't going to stop me-- but he isn't going to Matt> cooperate either. I've got the

Re: Gotchas in user-space matplotlib install?

2005-08-15 Thread John Hunter
> "Matt" == Matt Feinstein <[EMAIL PROTECTED]> writes: Matt> All in all, not actually excruciating-- and now I have a Matt> working version of matplotlib! Matt Feinstein Great! While this is all fresh in your mind, would you be able to add a wiki entry at http://www.scipy.org/wikis/

Re: GUI tookit for science and education

2005-08-17 Thread John Hunter
> "James" == James Sungjin Kim <[EMAIL PROTECTED]> writes: James> Michele Simionato wrote: >> My vote is for ipython + matplotlib. Very easy and very >> powerful. James> Is it really easier than to use MATLAB(TM)? Do you find matlab easy to use? What aspects are hard or easy

Re: GUI tookit for science and education

2005-08-17 Thread John Hunter
> "Robert" == Robert Kern <[EMAIL PROTECTED]> writes: Robert>H = U*D*V.T Robert> then I'm more than happy with that tradeoff. The small Robert> syntactic conveniences MATLAB provides are dwarfed by the Robert> intrinsic power of Python. Of course, U*D*V (transpose omitted

Re: while c = f.read(1)

2005-08-22 Thread John Hunter
> "Robert" == Robert Kern <[EMAIL PROTECTED]> writes: Robert> Greg McIntyre wrote: >> The 2nd option has real potential for me. Although the total >> amount of code is greater, it factors out some complexity away >> from the actual job, so that code is not obscured by >> un

Re: use SciPy with Python 2.4.1?

2005-08-24 Thread John Hunter
> "Robert" == Robert Kern <[EMAIL PROTECTED]> writes: Robert> [EMAIL PROTECTED] wrote: >> Is SciPy usable with Python 2.4.1? At >> http://www.scipy.org/download/ it says that 2.3.3 is >> recommended, and I don't see a binary for 2.4.1. Robert> It is usable with Python 2.4.

Re: Creating Pie Chart from Python

2005-09-16 Thread John Hunter
> "Thierry" == Thierry Lam <[EMAIL PROTECTED]> writes: Thierry> Let's say I have the following data: 500 objects: -100 Thierry> are red -300 are blue -the rest are green Thierry> Is there some python package which can represen the above Thierry> information in a pie chart? I

Re: Variable size plot symbols, variable hue plot colors in Python (MatPlotLib) ?

2005-02-10 Thread John Hunter
> "Colombes" == Colombes <[EMAIL PROTECTED]> writes: Colombes> Using MatPlotLib plot function, is there a way to get Colombes> variable size plot symbols? For example, using symbol Colombes> strings like 'o' (circle), 's' (square), 'x' (cross), Colombes> etc., is there a way

Re: Commerical graphing packages?

2005-02-14 Thread John Hunter
> "Francis" == Francis Girard <[EMAIL PROTECTED]> writes: Francis> PyX might also be interesting, depending on your needs. While pyx is a very nice package, it is probably not a good choice for web app developers simply because it generates postscript, which is not very browser friendly.

Re: Getting milliseconds in Python

2005-02-16 Thread John Hunter
> "mjs7231" == mjs7231 <[EMAIL PROTECTED]> writes: mjs7231> This is no good, I am looking for milliseconds, not mjs7231> seconds.. as stated above. Well seconds/1000.0 = millseconds -- or are you worries about floating point error? 7 >>> from datetime import datetime 8 >>> dt = date

Re: Matplotlib, py2exe and pytz

2005-02-19 Thread John Hunter
> "scott" == scott <[EMAIL PROTECTED]> writes: scott> I am trying to convert a python app that uses matplotlib to scott> a standalone executable using py2exe. scott> After running py2exe and executing my app I get the scott> following stack trace: scott> Traceback (most

Re: MatPlotLib.MatLab troubles (how to install/run matplotlib.PyLab?)

2005-02-21 Thread John Hunter
> "Colombes" == Colombes <[EMAIL PROTECTED]> writes: Colombes> matplotlib.matlab deprecated, please import Colombes> matplotlib.pylab or simply pylab instead. See Colombes> http://matplotlib.sf.net/matplotlib_to_pylab.py for a Colombes> script which explains this change and w

Re: MatPlotLib.MatLab troubles (how to install/run matplotlib.PyLab?)

2005-02-23 Thread John Hunter
> "Colombes" == Colombes <[EMAIL PROTECTED]> writes: Colombes>Now I only need to figure out how to install the Colombes> correct "Numeric" module(s). I'm making progress, Colombes> almost have my home laptop fully capable with the Colombes> MatLab-like (PyLab) graphs, plo

Re: Minor, but annoying legend problem in matplotlib

2005-02-28 Thread John Hunter
> "Jorl" == Jorl Shefner <[EMAIL PROTECTED]> writes: Jorl>The obvious solution is to plot the lines and symbols in Jorl> two different commands: ___ You want to explicitly pass the lines you want to legend into the legend command, as in Symb=

Re: generic text read function

2005-03-17 Thread John Hunter
> "les" == les ander <[EMAIL PROTECTED]> writes: les> Hi, matlab has a useful function called "textread" which I am les> trying to reproduce in python. les> two inputs: filename, format (%s for string, %d for integers, les> etc and arbitary delimiters) les> variable numbe

Re: Ideas for projects

2004-12-10 Thread John Hunter
> "Phillip" == Phillip Bowden <[EMAIL PROTECTED]> writes: Phillip> I feel that I've learned the language pretty well, but Phillip> I'm having trouble thinking of a medium to large project Phillip> to start. Some of these may be on the "large" side, but - Provide a full-feature

Re: Python 3.0

2004-12-12 Thread John Hunter
> "duane" == duane osterloth <[EMAIL PROTECTED]> writes: duane> I'm looking for a stand alone email program which is not duane> browser based. I simply want to write, send and receive duane> email without accessing the internet. Is Python 3.0 that duane> kind of program? I'd

building extension modules under 2.4 / cygwin

2004-12-13 Thread John Hunter
For the first time, I am trying to compile a matplotlib installer for win32 / python2.4 under cygwin. I tested this earlier with one of the pre-release candidates and had no troubles. But when I compile with python2.4, I get the following error when I try and import my extension code the proc

Re: Looking for a coder to do some work

2004-12-13 Thread John Hunter
> "Cameron" == Cameron Laird <[EMAIL PROTECTED]> writes: Cameron> I don't understand the last sentence; in particular, Cameron> "fort hsi" is beyond my power to decode unambiguously. "for this", clearly JDH -- http://mail.python.org/mailman/listinfo/python-list

Re: Efficient grep using Python?

2004-12-15 Thread John Hunter
> "sf" == sf <[EMAIL PROTECTED]> writes: sf> Just started thinking about learning python. Is there any sf> place where I can get some free examples, especially for sf> following kind of problem ( it must be trivial for those using sf> python) sf> I have files A, and B ea

Re: Legend problems in MatPlotLib

2004-12-16 Thread John Hunter
> "Jorl" == Jorl Shefner <[EMAIL PROTECTED]> writes: Jorl>I've only been able to plot data with both symbols and Jorl> lines by issuing two plot commands, one for markers and one Jorl> for lines. That's perfectly fine, but it creates a problem Jorl> when I try to create a

Re: Is Python good for graphics?

2004-12-16 Thread John Hunter
> "djw" == djw <[EMAIL PROTECTED]> writes: djw> PyGame? djw> http://www.pygame.org/ Seconded, despite the plethora of packages proposed in response to the original query, pygame seems like a clear winner for the problem described. And this coming from the author a different graphic

Re: Create linear spaced vector?

2004-12-17 Thread John Hunter
> "kjm" == kjm <[EMAIL PROTECTED]> writes: kjm> Hi Everyone, I am trying to port some old MatLab code to kjm> python, and am stuck on how to accomplish something. kjm> I am trying to write a generalized function that will create kjm> a linearly spaced vector, given the start

Re: Create linear spaced vector?

2004-12-17 Thread John Hunter
> "kjmacken" == kjmacken <[EMAIL PROTECTED]> writes: kjmacken> Thanks for the code snippets guys. Exactly what I kjmacken> needed to get going. I knew I could get the solution kjmacken> from matplotlib, but getting it installed using Fink (OS kjmacken> X) has been giving me

Re: Using Python in my programs

2004-12-29 Thread John Hunter
> "Squirrel" == Squirrel Havoc <[EMAIL PROTECTED] (takeout) (takeout)> > writes: Squirrel> Hello. I am sorry if this has been asked before, but I Squirrel> am new here. Welcome Squirrel> If I recall correctly, Python can be used as a scripting Squirrel> language for othe

ANN: matplotlib-0.70

2004-12-31 Thread John Hunter
tp://sourceforge.net/projects/matplotlib Screenshots : http://matplotlib.sourceforge.net/screenshots.html Tutorial: http://matplotlib.sourceforge.net/tutorial.html Credits : http://matplotlib.sourceforge.net/credits.html John Hunter -- http://mail.python.org/mailman/listinfo/python-list

using distutils.command.config

2005-03-28 Thread John Hunter
I am trying to utilize the config module in distutils to test for certain headers and libraries and fail elegantly if they are not found with a helpful message. The typical gcc error message when a header is missing is inscrutable to many. I have subclassed config and can use my class with >

Re: Matplotlib question-- Numeric or numarray?

2005-04-08 Thread John Hunter
> "Matt" == Matt Feinstein <[EMAIL PROTECTED]> writes: Matt> I'm working my way through the matplotlib documentation & Matt> there's a point that's ambiguous-- the pdf file (dated Matt> Mar. 1, 2005) warns of dire consequences if I use the Matt> 'wrong' array package-- e.g., pu

Re: Gnuplot.py and, _by far_, the weirdest thing I've ever seen on my computer

2005-04-11 Thread John Hunter
> "syd" == syd <[EMAIL PROTECTED]> writes: syd> As for matplotlib, I checked it out. Looks amazing! I syd> really, really like what demos I tried. syd> HOWEVER, I could not find a good way to do smoothing. I like syd> the gnuplot bezier smoothing. This wouldn't be the har

ANN: matplotlib-0.80

2005-04-14 Thread John Hunter
matplotlib is a 2D graphics package that produces plots from python scripts, the python shell, or embeds them in your favorite python GUI -- wx, gtk, tk, fltk and qt. Unlike many python plotting alternatives it is written in python, so it is easy to extend. matplotlib is used in the finance indu

Re: Is there a better interactive plotter then pylab?

2005-04-27 Thread John Hunter
> "Charles" == Charles Krug <[EMAIL PROTECTED]> writes: Charles> List: I'm trying to us pylab to see what I'm doing with Charles> some DSP algorithms, in case my posts about convolution Charles> and ffts weren't giving it away. Charles> I've been using pylab's plot function, b

Re: newbie graphing recommendations ?

2006-07-17 Thread John Hunter
> "bearophileHUGS" == bearophileHUGS <[EMAIL PROTECTED]> writes: bearophileHUGS> I think MatPlotLib can do this too, if your bearophileHUGS> computer is fast enough. >> i would also like to have the bars and graphs have nice shading >> if possible to give it a really attracti

Re: how not to run out of memory in cursor.execute

2006-06-07 Thread John Hunter
> "[EMAIL PROTECTED]" == [EMAIL PROTECTED] com <[EMAIL PROTECTED]> writes: [EMAIL PROTECTED]> whenever you are using a package that leaks memory. [EMAIL PROTECTED]> it can be appropriate to use Rpyc [EMAIL PROTECTED]> (http://rpyc.wikispaces.com/) to run the leaking [EMAIL PROT

curses event handling

2006-06-07 Thread John Hunter
I have a curses app that is displaying real time data. I would like to bind certain keys to certain functions, but do not want to block waiting for c = screen.getch() Is it possible to register callbacks with curses, something like screen.register('keypress', myfunc) Thanks, JDH -- ht

Re: numeric/numpy/numarray

2006-06-13 Thread John Hunter
> "Bryan" == Bryan <[EMAIL PROTECTED]> writes: Bryan> hi, what is the difference among numeric, numpy and Bryan> numarray? i'm going to start using matplotlib soon and i'm Bryan> not sure which one i should use. numpy is the successor to numarray and Numeric. All three do basic

Re: image output in matplotlib

2006-07-03 Thread John Hunter
> "mart" == mart jeeha <[EMAIL PROTECTED]> writes: mart> Hey folks, I got a problem in printing images from a mart> matplotlib - FigureCanvas Object (child of a wxFrame, mart> library backend_wx) into jpeg-formatted files. (I like to mart> create a sequence of images that I can

tk filesave dialog triggers unexpected destroy event

2006-07-09 Thread John Hunter
The following behavior surprised me. I have a Tk window and launch a file save dialog from it. When the filesave dialog is finished, it calls callbacks bound to the destroy event on the main window. Is this expected, and can I avoid this? To expose the problem, run this script and click the mo

Re: Global module variables as default parameters

2006-09-22 Thread John Hunter
> "Christoph" == Christoph Haas <[EMAIL PROTECTED]> writes: Christoph> Hi, list... I wondered if it's possible to use global Christoph> (module) variables as default parameters. A simple Christoph> working example: Christoph> Chris

Re: memory error with matplot

2006-12-07 Thread John Hunter
> "lisa" == lisa engblom <[EMAIL PROTECTED]> writes: lisa> Hi, I am using matplotlib with python to generate a bunch of lisa> charts. My code works fine for a single iteration, which lisa> creates and saves 4 different charts. The trouble is that lisa> when I try to run it fo

Re: matplotlib legend problem

2006-01-27 Thread John Hunter
> "bwaha" == bwaha <[EMAIL PROTECTED]> writes: bwaha> added the location argument. Finally realised it was due to bwaha> having a default of 'best' location in my code which meant bwaha> it went searching for intersection with lines that don't bwaha> exist (outside of the LineC

Re: Matplotlib logarithmic scatter plot

2006-02-27 Thread John Hunter
> "Derek" == Derek Basch <[EMAIL PROTECTED]> writes: Derek> Thanks for the reply. I need a scatter plot though. Can Derek> that be done? You can set the scale of xaxis and yaxis to either log or linear for scatter plots In [33]: ax = subplot(111) In [34]: ax.scatter( 1e6*rand(1000),

Re: Matplotlib logarithmic scatter plot

2006-02-28 Thread John Hunter
> "Derek" == Derek Basch <[EMAIL PROTECTED]> writes: Derek> Great! That worked fine after I played with it for a Derek> bit. One last question though. How do I label the ticks Derek> with the product of the exponentiation? For instance: Derek> 100 Derek> instead of D

Re: Matplotlib logarithmic scatter plot

2006-03-01 Thread John Hunter
> "Derek" == Derek Basch <[EMAIL PROTECTED]> writes: Derek> formatter = FuncFormatter(log_10_product) Derek> ax.xaxis.set_major_formatter(formatter) Derek> ax.yaxis.set_major_formatter(formatter) I would caution you against using identical objects for the x and y axis *Locators*.

Re: Calling Python from Matlab

2006-04-17 Thread John Hunter
> "AgenteSegreto" == AgenteSegreto <[EMAIL PROTECTED]> writes: AgenteSegreto> I've been a Matlab user for years and have recently AgenteSegreto> started using Python with matplotlib and NumPy for AgenteSegreto> most of my work. The only thing I found that is AgenteSegreto> st

Re: Phython and graphing

2006-04-20 Thread John Hunter
> "mostro" == mostro <[EMAIL PROTECTED]> writes: mostro> Hello, Can someone lead me to an easy way to create a mostro> graph in Python. mostro> For example, I have a script running that creates a list mostro> of dates, times and values. I would like to turn this into most

Re: Plotting package?

2006-04-25 Thread John Hunter
> "Andrew" == Andrew Koenig <[EMAIL PROTECTED]> writes: Andrew> This may be a foolish question, but what's the most Andrew> straightforward way to plot a bunch of data in Python? in matplotlib/pylab from pylab import figure, show x = range(10) y = [val**2 for val in x] fig =

Re: Events in Python?

2006-04-26 Thread John Hunter
> "redefined" == redefined horizons <[EMAIL PROTECTED]> writes: redefined> Here is another non-pythonic question from the Java redefined> Developer. (I beg for forgiveness...) redefined> Does Python have a mechanism for events/event-driven redefined> programming? The enthough

Re: Non-web-based templating system

2006-05-01 Thread John Hunter
> "Alex" == Alex Martelli <[EMAIL PROTECTED]> writes: Alex> I have a certain fondness for the first over-100-lines Alex> module I wrote for Python, which eventually resulted in: As well you should! YAPTU powers the entire matplotlib website (screenshots, FAQ, what's new, etc), as evi

Re: two of pylab.py

2006-05-09 Thread John Hunter
> "Diez" == Diez B Roggisch <[EMAIL PROTECTED]> 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-packa

Re: FIR filtering

2006-03-15 Thread John Hunter
> "LabWINC" == LabWINC <[EMAIL PROTECTED]> writes: LabWINC> Hi all, i'm looking for a module to implement a digital LabWINC> FIR filter! Can anyone help me? scipy.org Between scipy and matplotlib, you'll feel quite comfortable with python as a former matlab user help scipy.filter

Re: FIR filtering

2006-03-15 Thread John Hunter
> "Terry" == Terry Reedy <[EMAIL PROTECTED]> writes: Terry> "LabWINC" <[EMAIL PROTECTED]> wrote in message Terry> news:[EMAIL PROTECTED] >> If i type help scipy.filter it give me an error >> >> help scipy.filter File "", line 1 help scipy.filter ^ >> SyntaxError: inval

Re: Computing correlations with SciPy

2006-03-16 Thread John Hunter
> "tkpmep" == tkpmep <[EMAIL PROTECTED]> writes: tkpmep> I want to compute the correlation between two sequences X tkpmep> and Y, and tried using SciPy to do so without success.l tkpmep> Here's what I have, how can I correct it? X = [1, 2, 3, 4, 5] Y = [5, 4, 3, 2, 1] im

Re: Matplotlib: Histogram with bars inside grid lines...how??

2006-03-29 Thread John Hunter
> "Enigma" == Enigma Curry <[EMAIL PROTECTED]> writes: Enigma> I'm playing around with matplotlib for the first time. I'm Enigma> trying to make a very simple histogram of values 1-6 and Enigma> how many times they occur in a sequence. However, after Enigma> about an hour of se

Re: Matplotlib: Histogram with bars inside grid lines...how??

2006-03-29 Thread John Hunter
> "Enigma" == Enigma Curry <[EMAIL PROTECTED]> writes: Enigma> pylab.xlim(0.5,6.5) should be: Enigma> pylab.xlim(min_x-(bar_width/2),max_x+(bar_width/2)) Glad it's working better for you -- just a couple more smallish hints. You might prefer to have your grid lines behind, rather th

Re: Matplotlib: How to set number of ticks on an axis?

2006-03-30 Thread John Hunter
> "Caleb" == Caleb Hattingh <[EMAIL PROTECTED]> writes: Caleb> It seems that the locater() classes are where I should Caleb> look, and there seem to be some defaults in ticker.py: Caleb> class AutoLocator(MaxNLocator): def __init__(self): Caleb> MaxNLocator.__init__(self, nbin

Re: can I get the index number in for x in y loop?

2006-04-03 Thread John Hunter
> "Scott" == Scott David Daniels <[EMAIL PROTECTED]> writes: Scott> I cannot find the distance in meters between Paris and Scott> London with: for i in range(10): print i Works for me def range(x): yield '332.8 km' for i in range(10): print i ...may not be considered b

Re: Using Python To Create An Encrypted Container

2006-04-17 Thread John Hunter
> "Michael" == Michael Sperlle <[EMAIL PROTECTED]> writes: Michael> Is it possible? Bestcrypt can supposedly be set up on Michael> linux, but it seems to need changes to the kernel before Michael> it can be installed, and I have no intention of going Michael> through whatever h