It would be nice if pylab.plot would accept python lists of length longer than two.
Currently, the call ipv.pylab.plot([0,1,3],[0,1,0],[3,5,5]) leads to the rather cryptic error message TypeError: only integer scalar arrays can be converted to a scalar index.
One solution would be to add a line values = np.array(values) to the function _grow_limit just before the call finites = np.isfinite(values)
It would be nice if
pylab.plot
would accept python lists of length longer than two.Currently, the call
ipv.pylab.plot([0,1,3],[0,1,0],[3,5,5])
leads to the rather cryptic error messageTypeError: only integer scalar arrays can be converted to a scalar index
.One solution would be to add a line
values = np.array(values)
to the function_grow_limit
just before the callfinites = np.isfinite(values)