469,591 Members | 1,601 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,591 developers. It's quick & easy.

Re: Do a Gnuplot of a file in python

You might want to try
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 telling me to run "demo.py" and analyse the code.
does any1 have any idea where else I could look? A comprehensive
tutorial/online documentation would
be ideal
Santix wrote:

Thanks a lot because it works with

But now I have this problem

gnuplotload 'power.p'
gnuplotset terminal postscript enhanced color
gnuplotset output "spectrum.ps"
gnuplotset terminal x11
gnuplotset output

line 0: function to plot expected

It plots one time and then I want the program to close the plot window and
do another iteration, then show a plot again, close it, another iteration,
What should I put in the "power.p" code? I've tried to put exit or close
but it doesn't close the plot window.

Thanks and Regards,


Gabriel Genellina-7 wrote:
En Thu, 23 Oct 2008 13:58:20 -0200, Santix <sa*************@gmail.com
>>I am doing a python program that save the data in a text file in columns
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 tried this:


but it gives me this error:

Traceback (most recent call last):
File "./spectrum_output.py", line 310, in <module>
File "./spectrum_output.py", line 289, in main_loop
AttributeError: 'file' object has no attribute 'p'

I don't know gnuplot nor what g.load expects - but probably some lines
above that you have something like this:
power = open(...)
Try with g.load("power.p") instead.

Gabriel Genellina


View this message in context: http://www.nabble.com/Do-a-Gnuplot-o...p20569471.html
Sent from the Python - python-list mailing list archive at Nabble.com.

Nov 18 '08 #1
0 1589

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Richard | last post: by
4 posts views Thread by Rama Calaga | last post: by
1 post views Thread by Nicola Kaiser | last post: by
reply views Thread by bwaha | last post: by
3 posts views Thread by arslanburney | last post: by
reply views Thread by Santix | last post: by
reply views Thread by Santix | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.