Hello,<br>
&nbsp; Maybe you have to upgrade your numeric to 24.2<br>
Refer to the recent thread in gnuplot-py-user list:<br>
<a href="http://sourceforge.net/mailarchive/forum.php?forum_id=11272&amp;max_rows=25&amp;style=nested&amp;viewmonth=200602" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://sourceforge.net/mailarchive/forum.php?forum_id=11272&amp;max_rows=25&amp;style=nested&amp;viewmonth=200602
</a><br>
<br>
David<br><br><div><span class="gmail_quote">2006/2/10, Brian Blais &lt;<a href="mailto:bblais@bryant.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bblais@bryant.edu</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hello,<br><br>I have been trying to use the <a href="http://Gnuplot1.7.py" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Gnuplot1.7.py</a> module, but it doesn't seem to work with<br>numpy (although it works with Numeric).&nbsp;&nbsp;The following code plots two &quot;identical&quot;
<br>sets of data, but the numpy data gets rounded to the nearest integer when passed to<br>Gnuplot.&nbsp;&nbsp;What is odd is that the offending code in utils.py, is the function<br>float_array(m), which does the conversion that I do in this script, but it doesn't
<br>seem to work.&nbsp;&nbsp;Any ideas?<br><br>#----------------------------<br>import numpy<br>import Numeric<br>import Gnuplot<br><br>g = Gnuplot.Gnuplot(debug=1)<br>dh=.1;<br>x=numpy.arange(dh,2+dh,dh,'d')<br>y1 = x**2<br><br><br>

y2=y1<br><br>d1 = Gnuplot.Data(x, y1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;title='numpy',<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;with='points')&nbsp;&nbsp;#
doesn't work<br>d2 = Gnuplot.Data(Numeric.asarray(x,'f'), Numeric.asarray(y2,'f'),<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;title='Numeric',<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;with='points')&nbsp;&nbsp;
# works<br><br>g.plot(d1,d2)<br><br>#----------------------------<br><br><br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;thanks,<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bb<br><br>--<br>-----------------<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:bblais@bryant.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

bblais@bryant.edu</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://web.bryant.edu/%7Ebblais" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://web.bryant.edu/~bblais</a><br><br><br>-------------------------------------------------------
<br>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
<br>for problems?&nbsp;&nbsp;Stop!&nbsp;&nbsp;Download the new AJAX search engine that makes<br>searching your log files as easy as surfing the&nbsp;&nbsp;web.&nbsp;&nbsp;DOWNLOAD SPLUNK!<br><a href="http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=103432&amp;bid=230486&amp;dat=121642" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=103432&amp;bid=230486&amp;dat=121642</a><br>_______________________________________________<br>Numpy-discussion mailing list<br><a href="mailto:Numpy-discussion@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

Numpy-discussion@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/numpy-discussion" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.sourceforge.net/lists/listinfo/numpy-discussion
</a><br></blockquote></div><br>