problem with gnuplot in XP



Hi all,

I made 2 arrays, which are i and uzuy (both are
float). And I want to plot the graph between those
arrays.

I followed from the manual

==================

from Gnuplot import Gnuplot, Data

g=Gnuplot()
results=Data(i,uzuy)

g.plot(results)
=================

here I got the message

============================
Traceback (most recent call last):
File "<pyshell#85>", line 1, in -toplevel-
g.plot(i,uzuy)
File
"C:\Python23\Lib\site-packages\Gnuplot\_Gnuplot.py",
line 274, in plot
self.refresh()
File
"C:\Python23\Lib\site-packages\Gnuplot\_Gnuplot.py",
line 215, in refresh
self(self.plotcmd + ' ' + string.join(plotcmds, ',
'))
File
"C:\Python23\Lib\site-packages\Gnuplot\_Gnuplot.py",
line 199, in __call__
self.gnuplot(s)
File
"C:\Python23\Lib\site-packages\Gnuplot\gp_win32.py",
line 125, in __call__
self.write(s + '\n')
IOError: [Errno 22] Invalid argument
======================================

FYI, I use python2.3 and Gnuplot-py-1.7. Any problems
with my code ??

Thanks





__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
.



Relevant Pages

  • Re: 3D graph plotting
    ... I'm wanting to plot a graph from a formula, as opposed to a set of data ... but from the above web page: "GnuPlot is a ... command-line driven interactive function, graph and data plotting program. ...
    (comp.sys.acorn.misc)
  • Re: Area Charts With Negative Numbers
    ... to shift all the benchmark points to be non-negative and then plot ... > I'm curious if anyone has had success trying to design an area chart ... > 3) Currently I'm generating line plots for all the arrays. ... Then I put the shifted graph below another graph ...
    (microsoft.public.excel)
  • Re: bar chart plot syntax help
    ... I have been able to produce the graph from your data. ... Can you produce just one plot, i.e., ... bash and shouldn't have any quoting problems. ... gnuplot> plot newhistogram "Date" at 0.0, ...
    (comp.graphics.apps.gnuplot)
  • Re: extract arrays according the number of consecutive values
    ... different plots on a same graph when the value in column A changes.I managed to have 2 arrays (thanks to the forum with some ... modifications):-One to tell me each first indexes when the value changes-One to tell me each last indexes when the values changesMy idea would be to use theses indexes to split the initial ... arrays will be created when I will try to split the initial array.Is someone know if this solution is possible?Thank you in advance for the help. ...
    (comp.lang.labview)
  • Opening gnuplot from java application under WINDOWS
    ... I am trying to open gnuplot from a java application as well as plot the ... graph on opening. ... The above opens the wgnuplot terminal, however doesnt pipe in the input ...
    (comp.graphics.apps.gnuplot)