help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

splot and 6-part data


From: John W. Eaton
Subject: splot and 6-part data
Date: Tue, 28 Mar 2006 17:01:25 -0500

On 28-Mar-2006, Donald J Bindner wrote:

| I'm writing an m-file to provide 3D vector field plots.  I have
| it working in a fashion than I am happy with except for one
| aspect.  I am writing my vector data to a temporary file created
| with mkstemp() and then using __gnuplot_raw__ to do the splot.
| 
| For example, to draw the <1,1,1> vector with base at the point
| (0,0,0) and the <2,3,4> vector with base at (5,5,5), I write
| lines into a file:
| 
| oct-123456.tmp:
| 0 0 0 1 1 1
| 5 5 5 2 3 4
| 
| Then to plot I use:
| __gnuplot_raw__ "splot \"oct-123456.tmp\" title \"\" with vectors
| 
| I'd prefer a solution that works somehow within the usual
| graphing system, rather than making an end-run around it.
| 
| Unfortunately, the natural thing to try doesn't work:
| 
|  octave:1> M = [ 0 0 0 1 1 1; 5 5 5 2 3 4];
|  octave:2> __gnuplot_splot__ M w v t ""
|  gnuplot> sp '/tmp/oct-pSVzJJ' u 1 t "" w vector
|                                                ^
|           line 0: no functions or data to plot

To make this work, the gnuplot-style command parsing code needs to be
modified to write out a different form of data file for the vector
plot style.

jwe



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]