Hans-Bernhard Bröker wrote:
> Kamaraju S Kusumanchi wrote:
>> In octave one can do
>>
>> surf(A, B, C)
>>
>> where A is a 1-D vector of size n, B is a 1-D vector of size n, C is 2-D
>> matrix of size nxn.
>>
>> This basically plots the surface defined by C on the mesh generated by A,
>> B. Is there any way to achieve this gnuplot?
>
> Yes. Read 'help datafile', and particularly the sections about 'matrix'
> and 'binary' options.
>
>
I am aware of matrix flag. May be I am misinterpreting it.
In my above example, the values of A need not be equispaced. For example A
can have
A = [-1, -0.9, 0, 0.9, 1]
Similarly, B can be [-2, -1.7, 0.3, 1.5, 2]
The grid will be determined by the entries of A, B. In gnuplot, for 'matrix'
type data the x, and y values are defined by the row, column numbers. I
want it to be much more flexible.
'binary' flag seems to be what I am looking for. But it works only with the
binary data. I want the same functionality but something which works with
ascii data.
--
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/
|