Re: [Matplotlib-users] Building current SVN trunk on Mac OS X 10.5

2009-07-29 Thread Uri Laserson
The first suggestion failed with the same error, while the same suggestion worked up through the last step (make installers) which fails with the same error. I decided to try Tommy's suggestion of just figuring out how to compile libpng as a universal binary. The way I did it was to run the confi

Re: [Matplotlib-users] overlaying a plot repeatedly

2009-07-29 Thread Art
On Wed, Jul 29, 2009 at 6:09 PM, John Hunter wrote: > On Wed, Jul 29, 2009 at 6:50 PM, Art wrote: > > > My bottleneck now is actually saving the pngs for mencoder to make into > an > > avi (as with the movie_demo example on your site) using savefig. Do you > also > > know of an alternative way of

Re: [Matplotlib-users] overlaying a plot repeatedly

2009-07-29 Thread Eric Firing
John Hunter wrote: > On Wed, Jul 29, 2009 at 6:50 PM, Art wrote: > >> My bottleneck now is actually saving the pngs for mencoder to make into an >> avi (as with the movie_demo example on your site) using savefig. Do you also >> know of an alternative way of generating an avi of the animation? My >

Re: [Matplotlib-users] matplotlib and no gui

2009-07-29 Thread John Hunter
On Wed, Jul 29, 2009 at 9:05 PM, Christian Lerrahn wrote: >> Why not:: >> >>   import matplotlib >>   matplotlib.use('Agg') >> >> Then you have a full featured mpl backend w/ no GUI or X requirements. > > Thanks for that! I had overlooked that backend. It seems to do the > trick perfectly. :) Gr

Re: [Matplotlib-users] matplotlib and no gui

2009-07-29 Thread Christian Lerrahn
On Wed, 29 Jul 2009 20:43:43 -0500 John Hunter wrote: > On Wed, Jul 29, 2009 at 7:33 PM, Christian > Lerrahn wrote: > > Hi, > > I'm trying to make a few matplotlib scripts work on a box without > > any X. However, I would like to change it as little as possible and > > therefore don't want to get

Re: [Matplotlib-users] animation/"live"-plotting + performance

2009-07-29 Thread John Hunter
On Wed, Jul 29, 2009 at 1:25 PM, Antonino Ingargiola wrote: > I have attached another example of blit animation that does NOT > require the svn version of MPL. How did this help with your performance problems? The animation/blit paradigm is great for *some* use cases, eg animating a cross-hair o

Re: [Matplotlib-users] Building current SVN trunk on Mac OS X 10.5

2009-07-29 Thread John Hunter
On Wed, Jul 29, 2009 at 4:34 PM, Uri Laserson wrote: > Hi everyone, > > I am trying to build the latest svn trunk version of MPL on OS X 10.5.  I am > getting the following error: Try make build_osx105 python setup.py install --prefix=~/somewhere If that doesn't work, try cd release/osx

Re: [Matplotlib-users] matplotlib and no gui

2009-07-29 Thread John Hunter
On Wed, Jul 29, 2009 at 7:33 PM, Christian Lerrahn wrote: > Hi, > I'm trying to make a few matplotlib scripts work on a box without any > X. However, I would like to change it as little as possible and > therefore don't want to get rid of the pylab interface. > > I almost got it to work already by

Re: [Matplotlib-users] overlaying a plot repeatedly

2009-07-29 Thread John Hunter
On Wed, Jul 29, 2009 at 6:50 PM, Art wrote: > My bottleneck now is actually saving the pngs for mencoder to make into an > avi (as with the movie_demo example on your site) using savefig. Do you also > know of an alternative way of generating an avi of the animation? My > animation has about 9000

Re: [Matplotlib-users] Building current SVN trunk on Mac OS X 10.5

2009-07-29 Thread Tommy Grav
On Jul 29, 2009, at 5:34 PM, Uri Laserson wrote: > Hi everyone, > > I am trying to build the latest svn trunk version of MPL on OS X > 10.5. I am getting the following error: > > ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libPng.dylib, > file is not of required architecture for arc

[Matplotlib-users] matplotlib and no gui

2009-07-29 Thread Christian Lerrahn
Hi, I'm trying to make a few matplotlib scripts work on a box without any X. However, I would like to change it as little as possible and therefore don't want to get rid of the pylab interface. I almost got it to work already by just using the "dummy GUI", i.e. i use import matplotlib as m m.use(

Re: [Matplotlib-users] overlaying a plot repeatedly

2009-07-29 Thread Art
On Wed, Jul 29, 2009 at 4:38 AM, John Hunter wrote: > On Wed, Jul 29, 2009 at 1:01 AM, Art wrote: > > I have a scatter plot that requires some time to render. The horizontal > axis > > is time. Currently, I generate the full scatter plot each time and draw a > > axvline to indicate the progress o

[Matplotlib-users] [basemap] support shapefile in a zip archive

2009-07-29 Thread Sandro Tosi
Hello, thru data.gov, there are several shapefile archives available, in a zip format. Do someone believe it worths to support this kind of "distribution" of shp or we'd like still to have the zip unzip'ed first and the readshapefile() the resulting file? Regards, -- Sandro Tosi (aka morph, morp

[Matplotlib-users] Building current SVN trunk on Mac OS X 10.5

2009-07-29 Thread Uri Laserson
Hi everyone, I am trying to build the latest svn trunk version of MPL on OS X 10.5. I am getting the following error: ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libPng.dylib, file is not of required architecture for architecture ppc After googling quite a bit, this seems to be quite a

Re: [Matplotlib-users] Artifacts In Transparent Contour Plots?

2009-07-29 Thread Eric Firing
Michael Droettboom wrote: > This is a long-standing known issue with the contour code. The > contouring library we are using (in cntr.c) was written for a graphics > library that did not support compound paths, so to draw a donut-shaped > objects it creates "cut paths" from the inner to outer e

Re: [Matplotlib-users] Artifacts In Transparent Contour Plots?

2009-07-29 Thread Joseph Smidt
Thanks a lot. The code you mentioned: cs = contourf(Y,X,transpose(CHI),levels,alpha=0.7) for c in cs.collections: c.set_edgecolors('none') worked great and the extra lines are gone. Joseph Smidt PS. Good luck with this issue. I'd help but I'm not that good. -- -

Re: [Matplotlib-users] Artifacts In Transparent Contour Plots?

2009-07-29 Thread Eric Firing
Joseph Smidt wrote: > I am making contourf plots with some transparency as I want to > eventually overlay such plots. When I plot such plots I see artifacts > or lines that shouldn't be there as seen here: > http://josephsmidt.googlepages.com/ex.png > > Is this a bug or am I plotting incorrec

Re: [Matplotlib-users] animation/"live"-plotting + performance

2009-07-29 Thread Antonino Ingargiola
Hi, 2009/7/29 Jae-Joon Lee : > On Tue, Jul 28, 2009 at 9:11 AM, Roland Koebler wrote: [cut] >> Any ideas? >> > > http://matplotlib.sourceforge.net/examples/animation/animation_blit_gtk2.html > > The above example does something similar to (b). > It saves the previous plot (only axes area is saved)

Re: [Matplotlib-users] Artifacts In Transparent Contour Plots?

2009-07-29 Thread Michael Droettboom
This is a long-standing known issue with the contour code. The contouring library we are using (in cntr.c) was written for a graphics library that did not support compound paths, so to draw a donut-shaped objects it creates "cut paths" from the inner to outer edge. A number of the matplotlib

[Matplotlib-users] Artifacts In Transparent Contour Plots?

2009-07-29 Thread Joseph Smidt
I am making contourf plots with some transparency as I want to eventually overlay such plots. When I plot such plots I see artifacts or lines that shouldn't be there as seen here: http://josephsmidt.googlepages.com/ex.png Is this a bug or am I plotting incorrectly? My script is here: http://

Re: [Matplotlib-users] animation/"live"-plotting + performance

2009-07-29 Thread Ryan May
n Tue, Jul 28, 2009 at 8:11 AM, Roland Koebler wrote: > Hi, > > I've got some performance problems with matplotlib, and would like to > ask if you know any way I can make it faster. > > If there is no such way, I have to decide to (a) either enhance matplotlib > or (b) write my own plotting-libra

Re: [Matplotlib-users] question about legend

2009-07-29 Thread Jae-Joon Lee
The documentation for scatter command is out of date unfortunately. You need to use "scatterpoints" keyword. http://www.nabble.com/legend-bug--td22466216.html#a22466216 -JJ On Mon, Jul 27, 2009 at 3:44 PM, per freem wrote: > Hi all > > i am making a scatter plot and want to label one of the poin

Re: [Matplotlib-users] Sourceforge download page shows basemap as default download on windows

2009-07-29 Thread Michael Droettboom
It looks like SourceForge has been making some pretty major changes to the file download system. That part of SourceForge was always the most confusing and frustrating part of the system. I just went in and re-specified the default files, and it appears to be working now. Please report your

Re: [Matplotlib-users] Sourceforge download page shows basemap as default download on windows

2009-07-29 Thread Josh Hemann
I downloaded it also yesterday thinking I was getting a newer (than 0.98.5.3) version of matplotlib. Definitely misleading, so thanks for posting this thread. Josh Kaushik Ghose-3 wrote: > > Hi All, > > I was downloading matplotlib on a windows machine and the sourceforge site > (http://sourc

Re: [Matplotlib-users] Crosshairs

2009-07-29 Thread Jae-Joon Lee
scatter() currently does not support arbitrary path as its marker. The current marker customization is limited to what can be described by RegularPolyCollection and etc. And the crosshair marker do not fit in to this category. I'm attaching a snippet of a code I have been using for an exactly same

Re: [Matplotlib-users] animation/"live"-plotting + performance

2009-07-29 Thread Jae-Joon Lee
On Tue, Jul 28, 2009 at 9:11 AM, Roland Koebler wrote: > Hi, > > I've got some performance problems with matplotlib, and would like to > ask if you know any way I can make it faster. > > If there is no such way, I have to decide to (a) either enhance matplotlib > or (b) write my own plotting-librar

Re: [Matplotlib-users] curve fitting

2009-07-29 Thread Gökhan SEVER
Have you seen this? http://zunzun.com/ *"Online Curve Fitting and Surface Fitting Web Site*" On Wed, Jul 29, 2009 at 6:16 AM, Bala subramanian wrote: > Friends, > > I have to define two equations and fit my data on to it. could someone > please give me some example on how to do curve fitting u

Re: [Matplotlib-users] curve fitting

2009-07-29 Thread gaius hammond
Quoting Bala subramanian : > Friends, > > I have to define two equations and fit my data on to it. could someone > please give me some example on how to do curve fitting using matplotlib. http://docs.scipy.org/doc/numpy/reference/generated/numpy.polyfit.html (Matplotlib example at the bottom)

[Matplotlib-users] curve fitting

2009-07-29 Thread Bala subramanian
Friends, I have to define two equations and fit my data on to it. could someone please give me some example on how to do curve fitting using matplotlib. Thanks, Bala -- Let Crystal Reports handle the reporting - Free Crys

Re: [Matplotlib-users] Is there an easy way to change the subplot orders

2009-07-29 Thread John Hunter
On Tue, Jul 28, 2009 at 10:27 PM, Kun Hong wrote: > Hi, > > I am new to matplotlib. Currently I have a need to change the subplot > orders after the subplts have been added to a figure. I haven't found a > way to do it easily. One of my solution is to keep an ordered list of > the subplots and re-a

Re: [Matplotlib-users] overlaying a plot repeatedly

2009-07-29 Thread John Hunter
On Wed, Jul 29, 2009 at 1:01 AM, Art wrote: > I have a scatter plot that requires some time to render. The horizontal axis > is time. Currently, I generate the full scatter plot each time and draw a > axvline to indicate the progress of time, save the file as a png for each > time, and generate a m

Re: [Matplotlib-users] psd question...

2009-07-29 Thread John Hunter
On Wed, Jul 29, 2009 at 1:39 AM, 3togo wrote: > > mlab.psd and pyplot.psd are different The plotting command pyplot.psd scales the numbers in decibels (the dB in the ylabel in pyplot.psd). mlab.psd just returns the unscaled power. So in your example in subplot(3,1,3), call before plotting

[Matplotlib-users] Is there an easy way to change the subplot orders

2009-07-29 Thread Kun Hong
Hi, I am new to matplotlib. Currently I have a need to change the subplot orders after the subplts have been added to a figure. I haven't found a way to do it easily. One of my solution is to keep an ordered list of the subplots and re-add them in the correct order. But this way, all the navigatio

Re: [Matplotlib-users] psd question...

2009-07-29 Thread 3togo
mlab.psd and pyplot.psd are different http://www.nabble.com/file/p24713274/psd_testpng.png http://www.nabble.com/file/p24713274/psd_testpng.png psd_testpng.png #This program below do reveal that mlab.psd and pyplot.psd are different import numpy as np import matplotlib.pyplot as plt import