Closed GoogleCodeExporter closed 9 years ago
I have a proposed fix over in a clone:
http://code.google.com/r/rschroll-surf/source/list?name=surf
I haven't pushed this to the trunk because this will produce some slight
changes to the behavior of surf() and grid():
- They no longer accept a C that is the right size but the the wrong shape.
- X and Y must be numpy arrays; lists were previously accepted.
- X and Y may now be 2D arrays of the same shape as Z. This is new behavior,
mimicking matplotlib and Matlab.
I think it's worth these changes, but I wanted to check with you before pushing
them for real. If you're worried about the second point, I can add a coercion
to Numpy arrays.
Original comment by rschr...@gmail.com
on 28 Sep 2012 at 3:14
Thanks for taking this on Robert. Pleas commit the fix.
I'm all for compatibility with MPL and Matlab.
Yes, I think it would be nice if we check the inputs and convert them if
necessary, not only for backward compatibility, but also because it makes it
very easy to create a small surface.
> They no longer accept a C that is the right size but the the wrong shape.
Was this a feature or a bug? I assume the latter since you use the word
"wrong". I suppose the chance that this breaks someones code is slim...
Original comment by almar.klein@gmail.com
on 28 Sep 2012 at 9:24
>> They no longer accept a C that is the right size but the the wrong shape.
>
> Was this a feature or a bug? I assume the latter since you use the word
> "wrong". I suppose the chance that this breaks someones code is slim...
I would rate it as a misfeature. I expect most people would stumble into it by
accident, and then be confused as to why it was doing what it was doing. If
someone was using it on purpose, they can just use reshape explicitly now.
Original comment by rschr...@gmail.com
on 28 Sep 2012 at 1:41
Original issue reported on code.google.com by
rschr...@gmail.com
on 28 Sep 2012 at 1:24Attachments: