On Sat, Jul 25, 2009 at 3:13 PM, Rob Clewley<[email protected]> wrote:
> I wrote a wrapper to do this for my own code because I wanted it so
> much. I can't see why it would be a problem to support, it's only one
> extra if statement.
Or zero extra statements, if one just replaces the
if len(x.shape) == 1:
x = x[:, np.newaxis]
lines with
while len(x.shape) < 2:
x = x[:, np.newaxis]
-- Nathaniel
------------------------------------------------------------------------------
_______________________________________________
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel