Re: [Matplotlib-users] finish. now improvement - help

2010-02-19 Thread Samuel Teixeira Santos
anyone? please? Samuel 2010/2/18 Samuel Teixeira Santos arcano...@gmail.com Hi all. I finish my test code to learn the basics of matplotlib. Here my simplest code: http://dpaste.com/161149/ Now what I ask is for suggestions about turn this in better code Because in some sites that

Re: [Matplotlib-users] finish. now improvement - help

2010-02-19 Thread Pierre de Buyl
add import numpy at the beginning of your code. Then, y1=[Decimal('0.3041997084285048793446312110'), Decimal ('0.3041811120982812429734672735'), Decimal ('0.3041586008929715390350375366'), Decimal ('0.08256793883349254633032840545'), Decimal ('0.08255838341506859117962741714')] (just a

Re: [Matplotlib-users] Looking for a Compiled Demo of MPL Graphics

2010-02-19 Thread Wayne Watson
Strange that there wouldn't be any such demos. ;-) However, I'm now rolling my own. On 2/15/2010 6:55 AM, Wayne Watson wrote: Does anyone know where I can find a compiled demo that uses MPL grphics? I'd like, if possible, a Win version whose size is less than 10M, so that I can send it via

Re: [Matplotlib-users] Looking for a Compiled Demo of MPL Graphics

2010-02-19 Thread Christopher Barker
Wayne Watson wrote: Strange that there wouldn't be any such demos. ;-) I've got a small prototype app that embeds MPL in wxPython, bundled up with py2exe (and py2app for the Mac). It's 11.7MB, if you want me to mail it to you. Bundled up python apps tend to be big, they have to include all

[Matplotlib-users] Help needed on specific plot

2010-02-19 Thread matplotlib
Hi, I have the exterior shape of a nozzle given by S(x). Now what I want to do is first reflect it with respect to the y=0 axis (easily achieved by -S(x) right?) and then map each x node's value of an array (say density) to a color that would fill the vertical space between S(x) and -S(x). In

Re: [Matplotlib-users] Help needed on specific plot

2010-02-19 Thread PHobson
Whoops. Give this one a shot: http://dpaste.com/161847/ -Original Message- From: Paul Hobson Sent: Friday, February 19, 2010 2:54 PM To: matplot...@liste.fastmail.fm; matplotlib-users@lists.sourceforge.net Subject: RE: [Matplotlib-users] Help needed on specific plot Hugo, I

[Matplotlib-users] py2exe message RuntimeError: Could not find the matplotlib data files?

2010-02-19 Thread Wayne Watson
OK, I'm on Win7. From the py2exe tutorial, I've found that hello.exe works as expected by the tutorial. That file is in the dist folder. I've now tried this program, pylab_scatter.py: #!/usr/bin/env python from pylab import * N = 30 x = 0.9*rand(N) y = 0.9*rand(N) area = pi*(10 *

Re: [Matplotlib-users] Looking for a Compiled Demo of MPL Graphics

2010-02-19 Thread Wayne Watson
Thanks for the offer, but potentially I'm OK on py2exe. I saw that, because I just ran into a snag in an unexpected way. I had tried two text output programs with success, then I tried one using pylab, and things went haywire. My problem is in route to this mail list right now. An objection

Re: [Matplotlib-users] py2exe message RuntimeError: Could not find the matplotlib data files?

2010-02-19 Thread Christoph Gohlke
http://lmgtfy.com/?q=py2exe+matplotlib+data+filesl=1 leads me to http://www.py2exe.org/index.cgi/MatPlotLib. - Christoph On 2/19/2010 7:11 PM, Wayne Watson wrote: OK, I'm on Win7. From the py2exe tutorial, I've found that hello.exe works as expected by the tutorial. That file is in the