Re: [Matplotlib-users] Uniform transparency and background color?

2010-09-08 Thread Michael Droettboom
On 09/02/2010 10:23 AM, Benjamin Root wrote: On Thu, Sep 2, 2010 at 9:11 AM, Ryan May rma...@gmail.com mailto:rma...@gmail.com wrote: On Thu, Sep 2, 2010 at 2:15 AM, Mitesh Patel qed...@gmail.com mailto:qed...@gmail.com wrote: Hello, Is it possible to specify both an

[Matplotlib-users] Uniform transparency and background color?

2010-09-02 Thread Mitesh Patel
Hello, Is it possible to specify both an alpha level and a background color so that an entire saved image has a uniform transparency and color? For example, with matplotlib 1.0.0, this script yields the attached image: from matplotlib.pyplot import figure, savefig, show fig = figure() ax =

Re: [Matplotlib-users] Uniform transparency and background color?

2010-09-02 Thread Ryan May
On Thu, Sep 2, 2010 at 2:15 AM, Mitesh Patel qed...@gmail.com wrote: Hello, Is it possible to specify both an alpha level and a background color so that an entire saved image has a uniform transparency and color?  For example, with matplotlib 1.0.0, this script yields the attached image:

Re: [Matplotlib-users] Uniform transparency and background color?

2010-09-02 Thread Benjamin Root
On Thu, Sep 2, 2010 at 2:15 AM, Mitesh Patel qed...@gmail.com wrote: Hello, Is it possible to specify both an alpha level and a background color so that an entire saved image has a uniform transparency and color? For example, with matplotlib 1.0.0, this script yields the attached image:

Re: [Matplotlib-users] Uniform transparency and background color?

2010-09-02 Thread Benjamin Root
On Thu, Sep 2, 2010 at 9:11 AM, Ryan May rma...@gmail.com wrote: On Thu, Sep 2, 2010 at 2:15 AM, Mitesh Patel qed...@gmail.com wrote: Hello, Is it possible to specify both an alpha level and a background color so that an entire saved image has a uniform transparency and color? For

Re: [Matplotlib-users] Uniform transparency and background color?

2010-09-02 Thread Ryan May
On Thu, Sep 2, 2010 at 9:23 AM, Benjamin Root ben.r...@ou.edu wrote: This also raises another pet peeve of mine.  The Agg backend seems to use linear blending for alpha.  This is inconsistent with how the world works. It is more realistic for logarithmic blending, or at least, a piece-wise