odd plot behaviour using symbol -- bug?

I'm seeing a rather odd behaviour when plotting (using mpl 3405):
- create a figure with two subplots
- plot something on each axis
- plot an extra something on the first axis USING A SYMBOL
- set axis off
- show()
Result: the second plot won't be shown

However, the second plot will be shown if I follow the same process
without using a symbol, or if I don't switch off the axes.

To illustrate, consider the following code:

from pylab import figure, rand, show
fig = figure()
ax1 = fig.add_subplot(121)
ax2 = fig.add_subplot(122)
ax1.plot(rand(100))
ax1.plot([50, 60], [.5, .6], '^')
ax2.plot(rand(100))
for ax in fig.axes: ax.set_axis_off()
show()

The second plot (ax2) is not shown. Now, if line 8 is commented, or if a
symbol is not used in line 6, as in:
ax1.plot([50, 60], [.5, .6])
then the two plots are shown as expected.

Looks like a bug to me, right?

Regards,
Antonio

Truly an interesting bug. It doesn't show up in PS but does in Agg.
The most likely explanation is that the draw marker function is
setting a clip path that isn't properly getting cleared and subsequent
draws are being clipped to the original axes.

I'll look into it.

JDH

···

On 6/22/07, Antonio Gonzalez <Antonio.Gonzalez@...1053...> wrote:

I'm seeing a rather odd behaviour when plotting (using mpl 3405):
- create a figure with two subplots
- plot something on each axis
- plot an extra something on the first axis USING A SYMBOL
- set axis off
- show()
Result: the second plot won't be shown

Yep this was it -- fixed in svn. Thanks for the clever test case!

JDH

···

On 6/22/07, John Hunter <jdh2358@...287...> wrote:

Truly an interesting bug. It doesn't show up in PS but does in Agg.
The most likely explanation is that the draw marker function is
setting a clip path that isn't properly getting cleared and subsequent
draws are being clipped to the original axes.

Yep this was it -- fixed in svn. Thanks for the clever test case!

JDH

Oh, well -- thanks for the very quick fix. Comes in very handy.
A