[SciPy-user] Re: Plotting Question

Christian Kristukat ckkart at hoc.net
Fri Jul 1 13:43:08 CDT 2005


CJ Fleck wrote:
> I'm sorry.  I meant using gplt.
> 
> On 6/30/05, Grant Edwards <grante at visi.com> wrote:
> 
>>On 2005-06-30, CJ Fleck <list.cj at gmail.com> wrote:
>>
>>>Using the gnuplot module to plot data, is it possible to plot
>>>functions?  That is, can I plot x**2 somehow?  If so, how?
>>
>>p = Gnuplot.Gnuplot()
>>p.plot("x**2")
>>

gplt.plot expects two 1D arrays of equal length as x- and y-data. e.g.
x= arange(-10,10,1)
y=x**2
gpl.plot(x,y)

Regards, Christian



More information about the SciPy-user mailing list