Background:
For the analysis of some experimental data I am using sage's notebook.
several functions that I have written work together to turn the input
datafile from a silly propitiatory program into a nice simple text
file of x, y and z values separated by 1 space
e.g.
17 17 17
17 17 18
17 18 19
18 19 16
19 16 16
16 16 18
16 18 18
18 18 20
for that particular dataset it goes on for 668 lines in the same vein.

After coaxing these files into existence with their nice simple
coordinates, I want to plot them using gnuplot. Because I know this
works with both the version of gnuplot I have installed on my Ubuntu
7.10 computer and the version contained in the optional sage package.
gnuplot creates nice interactive 3D XYZ scatter graphs using these
files that have been created through the sage notebook.
the command: splot '/home/user/dropexp/xyz_8.txt'
typed at the interactive gnuplot command line causes the nice
interactive graph to be displayed.
Now I want to do this from the sage notebook and I can almost do it.
by modifying ~/bin/sage-2.8.15/devel/sage-main/sage/interfaces/
gnuplot.py
http://max.randor.googlepages.com/gnuplot.py
http://max.randor.googlepages.com/gnuplot.patch
and replacing a %s with a '%s' (This stops it doing what it normally
does and _should_ make it do what I want it to do (I hope))
I can do:
"
g = Gnuplot()
g.plot3d('/home/user/dropexp/xyz_8.txt')

gnuplot> splot '/home/user/dropexp/xyz_8.txt'
                                               ^
         "/home/user/.sage//temp/computer/13838//gnuplot", line 15:
All points z value undefined
"
however as you can see from: http://max.randor.googlepages.com/xyz_8.txt
there are z values, and exactly the same command (splot '/home/user/
dropexp/xyz_8.txt') works when used at the gnuplot command line.
somewhere along the line perhaps in the options that gnuplot uses the
z values have been removed or ignored.
before I modified gnuplot.py I got an error message telling me that my
file was not a function, my change fixed that error to give me another
one.
So it does not work.
which is _annoying_

I was wondering if anyone has any ideas that might help?

Thank You

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to