One way to fix this would be to change line 379 in
> artist.py from
> if hasattr(val, 'shape') and len(val)>6:
> to
> 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 packages. This is an attempt to pretty
print an array that is long by snipping it.
> Now on to my real question. Say I have a screen of 4x4
> subplots, created with subplot(221). I'd like to be able
> to split the screen as such: __ __
> > > >
> > > >
> >--| |
> > > >
> >__|__|
This looks like a numpy vs numeric thing here so we want to make sure
the solution works across packages. This is an attempt to pretty
print an array that is long by snipping it.
The problem slips in when you have a scalar, which has attribute
'shape' but no length. The above line works for Numeric, but I don't
have numarray to test on.
> Now on to my real question. Say I have a screen of 4x4
> subplots, created with subplot(221). I'd like to be able
> to split the screen as such: __ __
> > > >
> > > >
> >--| |
> > > >
> >__|__|