Do a Gnuplot of a file in python
gagsl-py2 at yahoo.com.ar
Fri Oct 24 01:56:22 CEST 2008
En Thu, 23 Oct 2008 13:58:20 -0200, Santix <santiortega2000 at 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.
More information about the Python-list