<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello, I am having a few issues interfacing gnuplot with python. When I try to run the demo.py file I get the following error messages:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Traceback (most recent call last):</p>
<p class="MsoNormal">  File "C:\Program Files\Common Files\dSPACE\Python25\lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", line 310, in RunScript</p>
<p class="MsoNormal">    exec codeObject in __main__.__dict__</p>
<p class="MsoNormal">  File "C:\Program Files\Common Files\dSPACE\Python25\Lib\site-packages\Gnuplot\demo.py", line 110, in <module></p>
<p class="MsoNormal">    demo()</p>
<p class="MsoNormal">  File "C:\Program Files\Common Files\dSPACE\Python25\Lib\site-packages\Gnuplot\demo.py", line 36, in demo</p>
<p class="MsoNormal">    g.reset()</p>
<p class="MsoNormal">  File "C:\Program Files\Common Files\dSPACE\Python25\Lib\site-packages\Gnuplot\_Gnuplot.py", line 366, in reset</p>
<p class="MsoNormal">    self('reset')</p>
<p class="MsoNormal">  File "C:\Program Files\Common Files\dSPACE\Python25\Lib\site-packages\Gnuplot\_Gnuplot.py", line 210, in __call__</p>
<p class="MsoNormal">    self.gnuplot(s)</p>
<p class="MsoNormal">  File "C:\Program Files\Common Files\dSPACE\Python25\lib\site-packages\Gnuplot\gp_win32.py", line 130, in __call__</p>
<p class="MsoNormal">    self.write(s + '\n')</p>
<p class="MsoNormal">IOError: [Errno 22] Invalid argument</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">After reading other users having similar problems, I altered the ‘gnuplot_command’ line in gp_win32.py to ‘gnuplot_command = "c:\Program Files\wgnuplot\bin\pgnuplot.exe", in an attempt to directly get the pgnuplot.exe(which I believe is
 the root of the problem). However, I still get the same error message. Any ideas on how to solve this?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks</p>
</div>
**************************************************************************************** Note: If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby
 notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.
 ****************************************************************************************
</body>
</html>