|
From: BBands <bb...@ya...> - 2005-07-12 19:32:59
|
--- BBands <bb...@ya...> wrote:
> Here is an unexpected result:
>
> >>> import Gnuplot
> >>> gp = Gnuplot.Gnuplot()
> >>> a = range(10)
> >>> gp.plot(a, with='lines')
>
> Traceback (most recent call last):
> File "<pyshell#3>", line 1, in -toplevel-
> gp.plot(a, with='lines')
> File
> "d:\python24\Lib\site-packages\Gnuplot\_Gnuplot.py",
> line 269, in plot
> apply(self.set, (), keyw)
> File
> "d:\python24\Lib\site-packages\Gnuplot\_Gnuplot.py",
> line 441, in set
> raise 'option %s is not supported' % (k,)
> option with is not supported
> >>>
>
> What am I missing?
Solved. Here is how in case anyone else stumbles.
>>> import Gnuplot
>>> gp = Gnuplot.Gnuplot()
>>> a = range(10)
>>> gp.plot(Gnuplot.Data(a, with='lines'))
jab
John Bollinger, CFA, CMT
www.BollingerBands.com
If you advance far enough, you arrive at the beginning.
____________________________________________________
Sell on Yahoo! Auctions no fees. Bid on great items.
http://auctions.yahoo.com/
|