Axes bg color bug or API change.

While revisiting some old plotting code, I ran across the following change in behaviour that seems to be buggy.

from pylab import *
ion()
clf()
x = linspace(0,1,10)
plot(x,x**2,'r')
a = gcf().add_axes([0.5,0.6,0.3,0.3])
a.set_axis_bgcolor(None)
draw()

The inset axes appear blue, whereas before this used to make the axes transparent (no background).

This changed between r5047 and r5048. (I have not had a chance to look at the code yet.) What is the intended way to allow for "transparent" inset axes?

Thanks,
Michael.

r5048.png

r5047.png

Okay, looking at the changes I figured this out:

a.set_axis_bgcolor('none')

Michael.

ยทยทยท

On 8 Aug 2008, at 8:42 PM, Michael McNeil Forbes wrote:

While revisiting some old plotting code, I ran across the following change in behaviour that seems to be buggy.

from pylab import *
ion()
clf()
x = linspace(0,1,10)
plot(x,x**2,'r')
a = gcf().add_axes([0.5,0.6,0.3,0.3])
a.set_axis_bgcolor(None)
draw()

The inset axes appear blue, whereas before this used to make the axes transparent (no background).

This changed between r5047 and r5048. (I have not had a chance to look at the code yet.) What is the intended way to allow for "transparent" inset axes?