I want help on using python with gnuplot on windows platform. If somebody could help me I will be very happy
python with gnuplot
Collapse
X
-
-
Originally posted by jithesh82I would like to know how I can you gnuplot with python on windows platform. I am getting some errors while installing gnuplot.py
Thanks.Comment
-
I too am having a trouble getting GnuPlot to work with python. I have vista and have installed Numpy and GnuPlot. I have placed the gnuplot.py in the site packages folder along with GnuPlot and Numpy. When I try and run the gnuplot.py demo it says that there is no module Numeric. I found some help site that said that if Numpy is installed correctly you should be able to import Numeric.
Is there anything else you need to know?Comment
-
Originally posted by BigbadbradezeeI too am having a trouble getting GnuPlot to work with python. I have vista and have installed Numpy and GnuPlot. I have placed the gnuplot.py in the site packages folder along with GnuPlot and Numpy. When I try and run the gnuplot.py demo it says that there is no module Numeric. I found some help site that said that if Numpy is installed correctly you should be able to import Numeric.
Is there anything else you need to know?
>>> from numpy import oldnumeric[/CODE]
I know that I have Numeric and NumPy both installed on my system so that I never run into this problem. You can get Numeric on SourceForge.
SciPy has also proven to be invaluable.
I should also ask which OS you are on as there could be installation issues that we can look at in that light.Last edited by bartonc; Oct 22 '07, 02:49 AM.Comment
-
Originally posted by bartoncA test of your NumPy installation would be:[CODE=python]
>>> from numpy import oldnumeric[/CODE]
Originally posted by bartoncI know that I have Numeric and NumPy both installed on my system so that I never run into this problem. You can get Numeric on SourceForge.
SciPy has also proven to be invaluable.
I should also ask which OS you are on as there could be installation issues that we can look at in that light.Comment
-
Originally posted by BigbadbradezeeI have Vista and Python 2.5 installed, which when I tried to install Numeric it says it needs 2.4 to work and I couldn't find a version that worked with 2.5
Current officially released version is gnuplot 4.2.2
(released on September 1, 2007).
But # Gnuplot.py version 1.7 released 2003-10-19
My connection's the pits at the moment. I'll check out that for you. You may also want to check out matplotlib.Comment
-
Originally posted by bartoncYep. That's why I asked.
Current officially released version is gnuplot 4.2.2
(released on September 1, 2007).
But # Gnuplot.py version 1.7 released 2003-10-19
My connection's the pits at the moment. I'll check out that for you. You may also want to check out matplotlib.
also, i tried using that code they have with numpy to update from numeric but that didn't seem to work, but I doubt i was using it correctly.Comment
-
Originally posted by bartoncA test of your NumPy installation would be:[CODE=python]
>>> from numpy import oldnumeric[/CODE]
I know that I have Numeric and NumPy both installed on my system so that I never run into this problem. You can get Numeric on SourceForge.
SciPy has also proven to be invaluable.
I should also ask which OS you are on as there could be installation issues that we can look at in that light.
>>> from numpy import oldnumeric as Numeric[/CODE]Numeric may be imported in more that one place it the package, so I may need to come up with a better fix (like creating a new init.py for the package).Comment
-
Originally posted by bartoncI haven't had a chance to try this yet, but wanted to see some progress. Have you tried modifying the source code of the gnuplot library thusly:[CODE=python]
>>> from numpy import oldnumeric as Numeric[/CODE]Numeric may be imported in more that one place it the package, so I may need to come up with a better fix (like creating a new init.py for the package).Comment
-
Originally posted by bartoncI just found some interesting links for you:Numericix for starters.
I looked at that site but was confused as to what I am supposed to be looking for.
also I tried the above fix and this message then popped up and confused me even more.
>>> C:\Program Files\Python25\ Lib\site-packages\gnuplo t-py-1.7\demo.py:50: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
File "C:\Program Files\Python25\ Lib\site-packages\gnuplo t-py-1.7\demo.py", line 22, in <module>
import Gnuplot, Gnuplot.funcuti ls
ImportError: No module named Gnuplot
>>>Comment
-
Originally posted by BigbadbradezeeI looked at that site but was confused as to what I am supposed to be looking for.
also I tried the above fix and this message then popped up and confused me even more.
>>> C:\Program Files\Python25\ Lib\site-packages\gnuplo t-py-1.7\demo.py:50: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
File "C:\Program Files\Python25\ Lib\site-packages\gnuplo t-py-1.7\demo.py", line 22, in <module>
import Gnuplot, Gnuplot.funcuti ls
ImportError: No module named Gnuplot
>>>Comment
-
-
Originally posted by Bigbadbradezeealright, well thank you for your help
In modules that depend on numeric, change the line[CODE=python]import numeric[/CODE]to[CODE=python]from numpy.core import numeric[/CODE]Last edited by bartonc; Nov 12 '07, 05:25 PM.Comment
Comment