Re: [matplotlib-devel] PNG transparency

2008-06-24 Thread Chris Barker
Michael Droettboom wrote: > I don't understand why anyone would want the one on the left, > but if you can provide a use case for it, it should be implementable. I know I can't. I think john may be right that it's just not that hard to do by hand. -Chris -- Christopher Barker, Ph.D. Oceanog

Re: [matplotlib-devel] Number of points in legend

2008-06-24 Thread Stéfan van der Walt
2008/6/24 John Hunter <[EMAIL PROTECTED]>: > Committed to svn r5654 -- here is the test script:: > > import numpy as np > import matplotlib.pyplot as plt > plt.plot(np.random.rand(10), 'x-', label='first line') > plt.plot(np.random.rand(10), 'o-.', label='second line') > plt.legend(numpoints=1

Re: [matplotlib-devel] Feature request for a watermark function

2008-06-24 Thread Nils Wagner
On Tue, 24 Jun 2008 14:03:33 -0500 "John Hunter" <[EMAIL PROTECTED]> wrote: > On Tue, Jun 24, 2008 at 1:27 PM, Nils Wagner > <[EMAIL PROTECTED]> wrote: > >> Actually, I would like to display an image (png format) >> 'under' several lines. >> Assuming that a watermark function will be supported b

Re: [matplotlib-devel] Feature request for a watermark function

2008-06-24 Thread John Hunter
On Tue, Jun 24, 2008 at 1:27 PM, Nils Wagner <[EMAIL PROTECTED]> wrote: > Actually, I would like to display an image (png format) > 'under' several lines. > Assuming that a watermark function will be supported by > mpl, it would be nice to have an example in > > matplotlib/examples/pylab_examples

Re: [matplotlib-devel] Feature request for a watermark function

2008-06-24 Thread Nils Wagner
On Tue, 24 Jun 2008 14:10:08 -0400 Michael Droettboom <[EMAIL PROTECTED]> wrote: > There are a couple of different ways this could be done. > > Alpha-blending over top of the image (should work for >everything but Postscript): > > gcf().text(0.1, 0.1, "Watermark", rotation=45, >fontproperties

Re: [matplotlib-devel] Feature request for a watermark function

2008-06-24 Thread John Hunter
On Tue, Jun 24, 2008 at 1:10 PM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > There are a couple of different ways this could be done. > > Alpha-blending over top of the image (should work for everything but > Postscript): > > gcf().text(0.1, 0.1, "Watermark", rotation=45, > fontproperties=FontP

Re: [matplotlib-devel] Feature request for a watermark function

2008-06-24 Thread Michael Droettboom
There are a couple of different ways this could be done. Alpha-blending over top of the image (should work for everything but Postscript): gcf().text(0.1, 0.1, "Watermark", rotation=45, fontproperties=FontProperties(size=64), alpha=0.2) Or under the axes as described here: http://www.mail-ar

[matplotlib-devel] Feature request for a watermark function

2008-06-24 Thread Nils Wagner
Hi All, This is to let you know that I have filed a feature request for a watermark function in mpl. http://sourceforge.net/tracker/index.php?func=detail&atid=560721&aid=2001940&group_id=80706 Nils - Check out the new So

Re: [matplotlib-devel] matplotlib hangs

2008-06-24 Thread Fernando Perez
On Tue, Jun 24, 2008 at 6:59 AM, John Hunter <[EMAIL PROTECTED]> wrote: > My fault -- I was working on adding an idle event handler across > backends and implemented something using threads for tkagg and haven't > solved the problem of cross thread signal handling. That's a nasty problem. See ht

Re: [matplotlib-devel] upcoming release

2008-06-24 Thread Chris Walker
"Sandro Tosi" <[EMAIL PROTECTED]> writes: > On Mon, Jun 23, 2008 at 13:48, Sandro Tosi <[EMAIL PROTECTED]> wrote: > > On Mon, Jun 23, 2008 at 04:43, Charles Moad <[EMAIL PROTECTED]> wrote: > >> The releases and builds are up. Please test them out, and I'll leave the > >> announcements to you, Joh

Re: [matplotlib-devel] PNG transparency

2008-06-24 Thread Michael Droettboom
John wrote: "I believe the unspoken consensus was it is easy to set the alpha on the figurePatch and axesPatch so a global alpha was unneccessary." It still might be convenient to make this an option on savefig. Sure it's only a few lines of code, but not necessarily obvious lines of code. Wa

Re: [matplotlib-devel] PNG transparency

2008-06-24 Thread Michael Droettboom
Nils, I saw your bump about this transparency issue. Before moving forward on this, I'd like to know what your use case is. I've attached a mock-up example. On the left is the effect of changing the alpha value of everything to 50% (what you and Christopher had suggested). But it seems to

Re: [matplotlib-devel] matplotlib hangs

2008-06-24 Thread John Hunter
On Tue, Jun 24, 2008 at 9:17 AM, Nils Wagner <[EMAIL PROTECTED]> wrote: > Thank you for your prompt reply and sorry for my rudimental bug report. > > BTW, is the transparency option for png files in progress ? I believe the unspoken consensus was it is easy to set the alpha on the figurePatch and

Re: [matplotlib-devel] matplotlib hangs

2008-06-24 Thread Nils Wagner
On Tue, 24 Jun 2008 08:59:30 -0500 "John Hunter" <[EMAIL PROTECTED]> wrote: > On Tue, Jun 24, 2008 at 8:35 AM, Darren Dale ><[EMAIL PROTECTED]> wrote: >> On Tuesday 24 June 2008 09:22:34 am Nils Wagner wrote: >>> Hi all, >>> >>> Since *yesterday* I have some trouble with pylab. >>> Some program

Re: [matplotlib-devel] matplotlib hangs

2008-06-24 Thread John Hunter
On Tue, Jun 24, 2008 at 8:35 AM, Darren Dale <[EMAIL PROTECTED]> wrote: > On Tuesday 24 June 2008 09:22:34 am Nils Wagner wrote: >> Hi all, >> >> Since *yesterday* I have some trouble with pylab. >> Some program hang. I cannot use Ctrl C to kill them. >> Ctrl Z works. If I use ps I get >> >> 1091

Re: [matplotlib-devel] matplotlib hangs

2008-06-24 Thread Darren Dale
On Tuesday 24 June 2008 09:22:34 am Nils Wagner wrote: > Hi all, > > Since *yesterday* I have some trouble with pylab. > Some program hang. I cannot use Ctrl C to kill them. > Ctrl Z works. If I use ps I get > > 1091 pts/500:00:02 python > 1119 pts/500:00:00 gs > > gs is somehow connec

[matplotlib-devel] matplotlib hangs

2008-06-24 Thread Nils Wagner
Hi all, Since *yesterday* I have some trouble with pylab. Some program hang. I cannot use Ctrl C to kill them. Ctrl Z works. If I use ps I get 1091 pts/500:00:02 python 1119 pts/500:00:00 gs gs is somehow connected to my problem. I can kill the job by kill -9 1091. Then the gs pro

Re: [matplotlib-devel] Number of points in legend

2008-06-24 Thread John Hunter
On Tue, Jun 24, 2008 at 1:57 AM, Stéfan van der Walt <[EMAIL PROTECTED]> wrote: > Hi all, > > Sorry to bump the thread, but has anyone had a chance to take a look? > > I've re-attached the patch. Thanks for the reminder and sorry for the delay getting back. The problem in the patch was that the "