Re: [Matplotlib-users] subplot with specified heights

2011-10-21 Thread Holger Brandsmeier
Indeed, with that link, I was able to make it work. Thanks a lot, Holger On Thu, Oct 20, 2011 at 11:30, Jean-Louis Durrieu wrote: > Hi Holger, > > On Oct 20, 2011, at 11:21 AM, Holger Brandsmeier wrote: >> I would like to have two subplots in a figure one below each other (so >> arranged in a 2x

[Matplotlib-users] update colorbar

2011-10-21 Thread Holger Brandsmeier
Dear list, I am making a 3d plot of a set of functions one after the other. Actually I do this interactively, but what matter should only be that I plot, clear the axis, plot again and so on. I want to display a colorbar for each of those plots. The first thing I tried was calling fig.colorbar(

Re: [Matplotlib-users] strange behavior of images when they have an alpha channel [resend]

2011-10-21 Thread Michael Droettboom
Thanks for looking into this deeper. Agg requires image buffers to be premultiplied, as described in the third bullet point here. (It's not exactly clear, to say the least, but that's what I take it to mean, and also from reading the code). http://www.antigrain.com/news/release_notes/v22.agd

Re: [Matplotlib-users] matplotlib-grayscale

2011-10-21 Thread Friedrich Romstedt
2011/10/20 Benjamin Root : > I have been doing some thinking about this problem and how it could relate > to issues I have encountered in my work on mplot3d.  The key problem I > encounter there is that shading of the colors needs to be performed based on > perspective (rotation of the scene and su

Re: [Matplotlib-users] strange behavior of images when they have an alpha channel [resend]

2011-10-21 Thread Daniel Hyams
All sounds reasonable Mike; I do agree that patching the agg source code is not that desirable; I was operating under the (incorrect) assumption that most, if not all, backends used straight alpha. I'll certainly test the patch tonight, but I can only test it under wxAgg reasonably, which is one o

Re: [Matplotlib-users] please help with arrow drawing.

2011-10-21 Thread Piter_
Thanks. The annotate function works. Does anybody knows a way to add some text above or belove an arrow? Now I do it using text command and coordinates for text. May be it possible to do directly with annotate command? Thanks. Petro.

Re: [Matplotlib-users] strange behavior of images when they have an alpha channel [resend]

2011-10-21 Thread Michael Droettboom
On 10/21/2011 09:49 AM, Daniel Hyams wrote: > All sounds reasonable Mike; I do agree that patching the agg source > code is not that desirable; I was operating under the (incorrect) > assumption that most, if not all, backends used straight alpha. > > I'll certainly test the patch tonight, but I ca

Re: [Matplotlib-users] strange behavior of images when they have an alpha channel [resend]

2011-10-21 Thread Benjamin Root
On Friday, October 21, 2011, Michael Droettboom wrote: > On 10/21/2011 09:49 AM, Daniel Hyams wrote: >> All sounds reasonable Mike; I do agree that patching the agg source >> code is not that desirable; I was operating under the (incorrect) >> assumption that most, if not all, backends used straig

Re: [Matplotlib-users] extreme navigation slowness for subplots

2011-10-21 Thread Michael Droettboom
I have a simple fix for this on this branch: https://github.com/mdboom/matplotlib/tree/slow_update It's sort of the simplest thing that could work. It caches the last results of "_update_ticks" and only updates them if the view limits or axis position have changed. It also invalidates this c

Re: [Matplotlib-users] strange behavior of images when they have an alpha channel [resend]

2011-10-21 Thread Daniel Hyams
> Thanks for clarifying.  I understand what you're saying now.  I think > what we want to do is store the unmultiplied alpha as a "canonical" > version of the image, and premultiply a copy (or use some C++ iterator > magic to avoid the copy) right before sending it off to Agg.  Then the > alpha can

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-21 Thread Paul Ivanov
Hi Rich, On Mon, Oct 17, 2011 at 10:57 AM, Rich Shepard wrote: >   After a long hiatus I'm again working on an application and just upgraded > matplotlib from 0.98.5.2 to 0.99.1.2. Is there a particular reason you just upgraded to a version of matplotlib that is almost 2 years old now? Matplotli

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-21 Thread Benjamin Root
On Friday, October 21, 2011, Paul Ivanov wrote: > Hi Rich, > > On Mon, Oct 17, 2011 at 10:57 AM, Rich Shepard wrote: >> After a long hiatus I'm again working on an application and just upgraded >> matplotlib from 0.98.5.2 to 0.99.1.2. > > Is there a particular reason you just upgraded to a vers

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-21 Thread Benjamin Root
On Friday, October 21, 2011, Benjamin Root wrote: > > > On Friday, October 21, 2011, Paul Ivanov wrote: >> Hi Rich, >> >> On Mon, Oct 17, 2011 at 10:57 AM, Rich Shepard wrote: >>> After a long hiatus I'm again working on an application and just upgraded >>> matplotlib from 0.98.5.2 to 0.99.1.2

Re: [Matplotlib-users] 0.99.1.2: error in afm.py

2011-10-21 Thread Paul Ivanov
On Mon, Oct 17, 2011 at 3:59 PM, Rich Shepard wrote: > On Mon, 17 Oct 2011, Benjamin Root wrote: > >> I only need the last line printed by that print statement.  I want to see >> how the parsing failed. > > Ben, > >   Here are the last 3: > > Line: C 125 ; WX 273 ; N braceright ; B 55 -68 244 707

[Matplotlib-users] Fwd: 0.99.1.2: error in afm.py

2011-10-21 Thread Benjamin Root
Paul, here is that email. The file name should be in the attached txt file. He is using Slackware (I forget which version). Ben Root -- Forwarded message -- From: Rich Shepard Date: Wednesday, October 19, 2011 Subject: [Matplotlib-users] 0.99.1.2: error in afm.py To: Benjamin Roo