Re: [Matplotlib-users] subplot(1,1,[...]) and pprint_getters

2006-10-12 Thread Stefan van der Walt
On Thu, Oct 12, 2006 at 07:00:05PM -0500, John Hunter wrote: > > "Stefan" == Stefan van der Walt <[EMAIL PROTECTED]> writes: > Stefan> if hasattr(val, 'size') and val.size > 6: > > This looks like a numpy vs numeric thing here so we want to make sure > the solution works across

Re: [Matplotlib-users] subplot(1,1,[...]) and pprint_getters

2006-10-12 Thread John Hunter
> "Stefan" == Stefan van der Walt <[EMAIL PROTECTED]> writes: Stefan> One way to fix this would be to change line 379 in Stefan> artist.py from Stefan> if hasattr(val, 'shape') and len(val)>6: Stefan> to Stefan> if hasattr(val, 'size') and val.size

[Matplotlib-users] subplot(1,1,[...]) and pprint_getters

2006-10-12 Thread Stefan van der Walt
Hi all First, a small bug: In [4]: s = subplot(121) In [5]: getp(s.get_frame()) --- exceptions.TypeError Traceback (most recent call last) /home/stefan/work/scipy/debug/ /home/stefan/lib/p