Hi.
Is it possible to plot arbitrary lambda function with matplotlib? Say, if i
have f = lambda x: x*sin(x), can i just plot it without building
argument-value arrays? It would be a very convenient and useful feature.
--
Sincerely,
max ulidtko
You'd always have to specify the domain, so
plot(map(lambda x:x**2, range(1,10)))
shouldn't be much longer than the minimal command.
C
On Mar 10, 2010, at 10:12 AM, max ulidtko wrote:
Hi.
Is it possible to plot arbitrary lambda function with matplotlib?
Say, if i have f = lambda x:
How about this (though it is getting a little clunky):
plot(*transpose(map(lambda x:(x,sin(x**2)/x**3), arange(3,6, 0.01
On Wed, Mar 10, 2010 at 7:57 PM, Chloe Lewis chle...@berkeley.edu wrote:
...although
plot(map(lambda x:x**2, range(5,15)))
probably doesn't do exactly what you