|
From: Nils W. <nw...@ia...> - 2008-06-18 15:04:18
|
On Wed, 18 Jun 2008 09:17:27 -0500
"John Hunter" <jd...@gm...> wrote:
> On Wed, Jun 18, 2008 at 8:56 AM, Nils Wagner
> <nw...@ia...> wrote:
>
>> Is it possible to produce transparent png's with mpl ?
>
> Yes, but you must explicitly set the transparency on
>every object you
> want to be transparent::
>
> fig = plt.figure()
> fig.figurePatch.set_alpha(0.5)
>
> ax = fig.add_subplot(111)
> ax.axesPatch.set_alpha(0.5)
>
> l, = ax.plot(x, y, alpha=0.8)
>
> t = ax.set_xlabel('hi', alpha=0.8)
>
> and so on....
>
> I wonder if we should support a global rc alpha....
>
+1
Nils
|