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

>     Stefan> Now on to my real question.  Say I have a screen of 4x4
>     Stefan> subplots, created with subplot(221).  I'd like to be able
>     Stefan> to split the screen as such: __ __
>     Stefan> |  |  |
>     Stefan> |  |  |
>     Stefan> |--| |
>     Stefan> |  |  |
>     Stefan> |__|__|
> 
>     Stefan> 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

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to