472,353 Members | 2,255 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

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 1656

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Richard | last post by:
I am going to need to plot some data and formula results from Python. A few years ago I used gnuplot (not from Python) and was wondering which...
by: Rama Calaga | last post by:
Hi, I use both python and gnuplot a lot, but I am unable to find a way to embed gnuplot "window/canvas" into tkinter. BLT option in PMW is not so...
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:...
by: syd | last post by:
I don't even know where to begin. This is just bizarre. I just picked up the Gnuplot.py module (a light interface to gnuplot commands) and was...
by: Nicola Kaiser | last post by:
Hi, I´m using Gnuplot via gnuplot.py and I´m looking for a way to get the plotting output (terminal set to png in my case) piped in a string ...
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...
by: arslanburney | last post by:
Hello. Was trying to create a simple plotting function. Wasnt working however. If i write the same code without putting it inside a function it...
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...
by: Santix | last post by:
Thanks a lot because it works with g.load("power.p") But now I have this problem gnuplotload 'power.p' gnuplotset terminal postscript...
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.