I want help on using python with gnuplot on windows platform. If somebody could help me I will be very happy
16 10810
I want help on using python with gnuplot on windows platform. If somebody could help me I will be very happy
We can help. What have you got so far?
I would like to know how I can you gnuplot with python on windows platform. I am getting some errors while installing gnuplot.py
I would like to know how I can you gnuplot with python on windows platform. I am getting some errors while installing gnuplot.py
We can help with that. You must provide specifics regarding your difficulty in order for us to know how to help.
Thanks.
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?
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?
A test of your NumPy installation would be: -
>>> from numpy import oldnumeric
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.
A test of your NumPy installation would be: -
>>> from numpy import oldnumeric
This test worked.
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.
I 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
I 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
Yep. 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.
Yep. 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.
yeah i have those two versions.
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.
A test of your NumPy installation would be: -
>>> from numpy import oldnumeric
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.
I 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: -
>>> from numpy import oldnumeric as Numeric
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).
I 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: -
>>> from numpy import oldnumeric as Numeric
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).
I just found some interesting links for you: Numericix for starters.
I 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\gnuplot-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\gnuplot-py-1.7\demo.py", line 22, in <module>
import Gnuplot, Gnuplot.funcutils
ImportError: No module named Gnuplot
>>>
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\gnuplot-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\gnuplot-py-1.7\demo.py", line 22, in <module>
import Gnuplot, Gnuplot.funcutils
ImportError: No module named Gnuplot
>>>
The best solution that I have at the moment is that you install Python 2.4.4 (I have both that and 2.5 installed on system and use 2.4 for just this type of scenario).
alright, well thank you for your help
alright, well thank you for your help
I think that I've found the answer to this.
In modules that depend on numeric, change the line
to - from numpy.core import numeric
This seems to work well and doesn't require original source code mods:
In your site-packages directory, create a file called "Numeric.py" (remember that python IS case sensitive). Two lines in that file should be all it takes to allow importers of the Numeric package to function properly: - from numpy import oldnumeric
-
globals().update(oldnumeric.__dict__)
To test this I used - import Numeric
-
help(Numeric)
Hi
The chances are that this is not to do with your numpy installation, but your environmental variables.
I'm afraid that I don't use windows anymore, but I remember there's a readme file in gnuplot.py that gives step-by-step for the set up, which involves fiddling with environmental variables and perhaps something else.
Apologies for the vagueness of the response. It's been a couple of years!
Sign in to post your reply or Sign up for a free account.
Similar topics
by: rhmd |
last post by:
I need to create image files (eg bmp or jpeg) of xy scatter graphs
(i.e., graphs in which markers denote individual points; the markers
need to be small polygons of various sizes, shapes, colors,...
|
by: Tim Henderson |
last post by:
Hi
I want to dynamically generate a graph in python that would be
displayable on a web page. What would be the best way to do this?
The reason I want to do this, is because I am making a program...
|
by: Jive |
last post by:
Here's my sitch:
I use gnuplot.py at work, platform Win32. I want to upgrade to Python 2.4.
Gnuplot.py uses extension module Numeric. Numeric is now "unsupported."
The documentation says "If...
|
by: Cedric |
last post by:
This is a 3 weeks old problem, but having found a solution (and having
looked for one here, finding only this message), I'm replying now.
From: Jive (someone@microsoft.com)
Subject: Upgrade...
|
by: Kenneth Miller |
last post by:
Hello All,
I am new to Python and i was wondering what graphing utlities would be
available to me. I have already tried BLT and after weeks of unsuccesful
installs i'd like to find something...
|
by: bwaha |
last post by:
I've posted this question to comp.graphics.apps.gnuplot too but given that
this python group may also comprise a lot of gnuplot users, and is far more
active, I've posted this question here too. My...
|
by: Paul Cochrane |
last post by:
Hi all,
I've got an application that I'm writing that autogenerates python code
which I then execute with exec(). I know that this is not the best way to
run things, and I'm not 100% sure as to...
|
by: diffuser78 |
last post by:
My python program spits lot of data. I take that data and plot graphs
using OfficeOrg spredsheet. I want to automate this task as this takes
so much of time. I have some questions.
1. Which is...
|
by: Santix |
last post by:
I am doing a python program that save the data in a text file in columns and
I want to do a gnuplot to plot the results.
But I want the program in python to show the result with gnuplot.
I have...
|
by: matthew43 |
last post by:
You might want to try
g.reset()
or something of the sort.
i saw this post because I'm also trying to figure out gnuplot.py
I can't seem to find proper documentation anywhere.
unless its...
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: giovanniandrean |
last post by:
The energy model is structured as follows and uses excel sheets to give input data:
1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
|
by: NeoPa |
last post by:
Hello everyone.
I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report).
I know it can be done by selecting :...
|
by: Teri B |
last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course.
0ne-to-many. One course many roles.
Then I created a report based on the Course form and...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM)
Please note that the UK and Europe revert to winter time on...
|
by: nia12 |
last post by:
Hi there,
I am very new to Access so apologies if any of this is obvious/not clear.
I am creating a data collection tool for health care employees to complete. It consists of a number of...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
| |