Re: Plot a function with matplotlib?

2012-05-19 Thread Vlastimil Brom
2012/5/19 Steven D'Aprano steve+comp.lang.pyt...@pearwood.info: I have matplotlib and iPython, and want to plot a function over an equally-spaced range of points. That is to say, I want to say something like this: plot(func, start, end) rather than generating the X and Y values by hand,

Re: Plot a function with matplotlib?

2012-05-19 Thread Alex van der Spek
On Sat, 19 May 2012 01:59:59 +, Steven D'Aprano wrote: I have matplotlib and iPython, and want to plot a function over an equally-spaced range of points. That is to say, I want to say something like this: plot(func, start, end) rather than generating the X and Y values by hand, and

Re: Plot a function with matplotlib?

2012-05-19 Thread Miki Tebeka
I'm looking for an interface closer to what my HP graphing calculator would use, i.e. something like this: plot(lambda x: sin(x*pi), # function or expression to plot, start=0.0, end=2.0, ) and have step size taken either from some default, or better still,

Re: Plot a function with matplotlib?

2012-05-19 Thread Mark Lawrence
On 19/05/2012 02:59, Steven D'Aprano wrote: I have matplotlib and iPython, and want to plot a function over an equally-spaced range of points. That is to say, I want to say something like this: plot(func, start, end) rather than generating the X and Y values by hand, and plotting a scatter

Plot a function with matplotlib?

2012-05-18 Thread Steven D'Aprano
I have matplotlib and iPython, and want to plot a function over an equally-spaced range of points. That is to say, I want to say something like this: plot(func, start, end) rather than generating the X and Y values by hand, and plotting a scatter graph. All the examples I've seen look