subplot(1,1,[...]) and pprint_getters

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: __ __
    > > > >
    > > > >
    > >--| |
    > > > >
    > >__|__|

    > I.e., to draw in the window on the right:

ax1 = subplot(221)
ax2 = subplot(223)
ax3 = subplot(122)

should do it.

JDH

    > 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.

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: __ __
    > > > >
    > > > >
    > >--| |
    > > > >
    > >__|__|

    > I.e., to draw in the window on the right:

ax1 = subplot(221)
ax2 = subplot(223)
ax3 = subplot(122)

That is so simple I never even expected it to work! Thanks a lot.

Cheers
Stéfan

···

On Thu, Oct 12, 2006 at 07:00:05PM -0500, John Hunter wrote:

Hi, everyone:
is there any function in any libraray to do a multidimensional downhill
minimization for a given function?
Thanks