[Matplotlib-users] matplotlib 0.91.2 build failure

2008-05-19 Thread frigoris . ma
Dear all, I am building the 0.91.2 version on a Fedora 9. I have compiled this version on Fedora 8 earlier with no problem. However, this time the package failed to build. Here is the last lines from the output: gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=

Re: [Matplotlib-users] Png stream through Stdout to the web (Answer)

2008-05-19 Thread John Hunter
On Mon, May 19, 2008 at 10:26 PM, Rodney Haynie <[EMAIL PROTECTED]> wrote: > Ok, I found the answer and just wanted to post it for the archives. Thanks Rodney -- when posting for the archives, be sure to reply to the original thread and not change the subject (eg adding "answer") since that will b

Re: [Matplotlib-users] Png stream through Stdout to the web (Answer)

2008-05-19 Thread Rodney Haynie
Ok, I found the answer and just wanted to post it for the archives. My script now begins with: #!c:/Python25/python.exe -u import os,sys import cgi import cgitb; cgitb.enable() # set HOME environment variable to a directory the httpd server can write to os.environ[ 'HOME' ] = 'c:/www/app/tmp/'

Re: [Matplotlib-users] Png stream through Stdout to the web

2008-05-19 Thread Rodney Haynie
Sorry, my file name is stdout.py, in both places. And here it is: #!c:/Python25/python.exe -u import sys import matplotlib matplotlib.use('Agg') from pylab import * plot ([1 ,2 ,3]) savefig( sys.stdout ) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of R

[Matplotlib-users] Png stream through Stdout to the web

2008-05-19 Thread Rodney Haynie
I could not find anywhere an example of exactly how I would call the py script and get the png to appear in a web page. I have py scripts working for cgi, which is great. So I placed my simple script in the cgi-bin folder and I tried calling it directly: Localhost/cgi-bin/stdoutTest.py No image f

Re: [Matplotlib-users] Adding labels to plots does not work

2008-05-19 Thread John Hunter
On Mon, May 19, 2008 at 6:07 PM, Chris <[EMAIL PROTECTED]> wrote: > In a recent SVN build of matplotlib on OSX 10.5, I have created a boxplot > then tried to add labels to the axes afterwards. However, though the "xlabel" > and "ylabel" commands run without error, no labels are added to the plots.

[Matplotlib-users] Adding labels to plots does not work

2008-05-19 Thread Chris
In a recent SVN build of matplotlib on OSX 10.5, I have created a boxplot then tried to add labels to the axes afterwards. However, though the "xlabel" and "ylabel" commands run without error, no labels are added to the plots. In [45]: boxplot(transpose(transpose(relative_risk.trace())[:-2])) In

Re: [Matplotlib-users] choose line color with plot?

2008-05-19 Thread Eric Firing
John Hunter wrote: > On Mon, May 19, 2008 at 8:38 AM, Zoho Vignochi <[EMAIL PROTECTED]> wrote: >> Hello: >> >> I want to plot a variable number of lines but I would like the colors to >> cycle through a set pattern defined by me. >> ...snip >> and it works great. But I need legends for each line so

Re: [Matplotlib-users] Bug with blitting in Qt4Agg backend

2008-05-19 Thread G Jones
On 5/19/08, John Hunter <[EMAIL PROTECTED]> wrote: > On Mon, May 19, 2008 at 2:36 AM, G Jones <[EMAIL PROTECTED]> wrote: > > Hello, > > I am experiencing a bug when trying to blit a canvas that contains two > > axes, one with a line plot and the other with an imshow plot. The > > attached examp

[Matplotlib-users] Record array help

2008-05-19 Thread Johann Rohwer
Hi, [I've also asked this on scipy-user, but since 'csv2rec' is a pylab function which is not part of NumPy, I thought maybe someone here can give me some pointers...] Is there any extended documentation/tutorial on record arrays? The NumPy book is pretty cryptic about this and I'm still very n

Re: [Matplotlib-users] choose line color with plot?

2008-05-19 Thread John Hunter
On Mon, May 19, 2008 at 8:38 AM, Zoho Vignochi <[EMAIL PROTECTED]> wrote: > Hello: > > I want to plot a variable number of lines but I would like the colors to > cycle through a set pattern defined by me. > ...snip > and it works great. But I need legends for each line so I can't use > collections.

Re: [Matplotlib-users] Bug with blitting in Qt4Agg backend

2008-05-19 Thread John Hunter
On Mon, May 19, 2008 at 2:36 AM, G Jones <[EMAIL PROTECTED]> wrote: > Hello, > I am experiencing a bug when trying to blit a canvas that contains two > axes, one with a line plot and the other with an imshow plot. The > attached example, QtBlitBugDemo.py demonstrates the problem. As is, on > my mac

[Matplotlib-users] choose line color with plot?

2008-05-19 Thread Zoho Vignochi
Hello: I want to plot a variable number of lines but I would like the colors to cycle through a set pattern defined by me. I use this when working with line collections. colors = [colorConverter.to_rgba(c) for c in [('k','y','m','c','b','g','r')] line = collections.LineCollection( ... line.set

Re: [Matplotlib-users] Bug with blitting in Qt4Agg backend

2008-05-19 Thread Darren Dale
On Monday 19 May 2008 03:36:01 am G Jones wrote: > Hello, > I am experiencing a bug when trying to blit a canvas that contains two > axes, one with a line plot and the other with an imshow plot. The > attached example, QtBlitBugDemo.py demonstrates the problem. As is, on > my machine, the > imshow

Re: [Matplotlib-users] Help sending a PNG from matplotlib to stdout

2008-05-19 Thread Michael Droettboom
Rodney Haynie wrote: > From: John Hunter [mailto:[EMAIL PROTECTED] > Sent: Saturday, May 17, 2008 4:56 PM> I believe this has been fixed on the > maintenance branch (which will > >> become 0.91.3 shortly after the next release). You can get a svn > >> checkout of this branch at >> >> svn co

Re: [Matplotlib-users] Help sending a PNG from matplotlib to stdout

2008-05-19 Thread Michael Droettboom
John Hunter wrote: > On Sat, May 17, 2008 at 3:49 PM, Rodney Haynie <[EMAIL PROTECTED]> wrote: > > >> "C:\Python25\lib\site-packages\matplotlib-0.91.2.0001-py2.5-win32.egg\matplo >> tlib\backends\backend_agg.py", line 397, in print_png >>self.get_renderer()._renderer.write_png(str(filename),

Re: [Matplotlib-users] Help sending a PNG from matplotlib to stdout

2008-05-19 Thread Rodney Haynie
From: John Hunter [mailto:[EMAIL PROTECTED] Sent: Saturday, May 17, 2008 4:56 PM> I believe this has been fixed on the maintenance branch (which will > become 0.91.3 shortly after the next release). You can get a svn > > checkout of this branch at > > svn co > https://matplotlib.svn.sourcefo

Re: [Matplotlib-users] hist is broken in SVN when using numpy 1.1.0.dev5077

2008-05-19 Thread Manuel Metz
Hi Glenn, please update numpy!!! Indeed, it is the other way around: The "new" keyword-arg isn't deprecated it is *NEW* (has been added in numpy revision r5085, you are using r5077). Have a look at this: http://projects.scipy.org/scipy/numpy/roadmap#Semanticchangeforhistogram Please note that

Re: [Matplotlib-users] hist is broken in SVN when using numpy 1.1.0.dev5077

2008-05-19 Thread Johann Cohen-Tanugi
Hi Glenn, I do not reproduce your problem with current revisions of numpy and matplotlib. best, Johann G Jones wrote: > Hello, > I am using r5186 from the SVN with numpy 1.1.0.dev5077. When I try > hist(rand(512),arange(-128,127)) > I get: > ---

[Matplotlib-users] Bug with blitting in Qt4Agg backend

2008-05-19 Thread G Jones
Hello, I am experiencing a bug when trying to blit a canvas that contains two axes, one with a line plot and the other with an imshow plot. The attached example, QtBlitBugDemo.py demonstrates the problem. As is, on my machine, the imshow plot updates correctly, but the line plot acts like the backg

[Matplotlib-users] hist is broken in SVN when using numpy 1.1.0.dev5077

2008-05-19 Thread G Jones
Hello, I am using r5186 from the SVN with numpy 1.1.0.dev5077. When I try hist(rand(512),arange(-128,127)) I get: --- Traceback (most recent call last) /home/gej/casper_work/backend/qtSpec/src/ in () /usr/lib/pyt