Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

splot-error: cannot contour non grid data!

515 views
Skip to first unread message

Roger Zimmermann

unread,
Jun 10, 1998, 3:00:00 AM6/10/98
to

Hi all,

I try to plot data on a rectangular grid (spacing 40) with the 'splot'
function
as isolines. The data looks like:

0 0 3.5
0 40 2.2
40 0 2.0
40 40 3.1 etc.

I always get:

Notice: cannot contour non grid data!

Although I really looked through the FAQ's/Manual/NG I cannot see what I
am
doing wrong: Should this data be prepared in a special way or format ?

THNX in advance, Roger

If of Interest:
gnuplot: Linux version 3.5 (pre 3.6) patchlevel beta 335

--
Dr. Roger Zimmermann *** Elektro- & Magnetophysiologie, Berlin Buch
Wiltbergstra/3e 50 D - 13125 Berlin Tel.: /30 9417 2427
----------------------------------------- Fax.: /30 9417 2466
via E-mail: zimme...@fvk-berlin.de, r...@berlin.snafu.de
-=-=-=-=- The quick brown fox jumps over the lazy dog. -=-=-=-=-
PGP-ID: Roger Zimmermann <r...@berlin.snafu.de>
Key fingerprint = 83 16 D1 82 06 71 16 60 6F 61 95 65 BB CA 02 E0

crawford richard

unread,
Jun 10, 1998, 3:00:00 AM6/10/98
to

In message-Id: <357EF56D...@berlin.snafu.de>
Roger Zimmermann <r...@berlin.snafu.de> wrote:

> I try to plot data on a rectangular grid (spacing 40) with the 'splot'
> function
> as isolines. The data looks like:
>
> 0 0 3.5
> 0 40 2.2
> 40 0 2.0
> 40 40 3.1 etc.
>
> I always get:
>
> Notice: cannot contour non grid data!
>
> Although I really looked through the FAQ's/Manual/NG I cannot see what I
> am doing wrong: Should this data be prepared in a special way or format ?


Yes, it should.

In order for gnuplot to draw contours (or a mesh plot), it must see data
in "grid" form, which looks like this:
x(0,0) y(0,0) z(0,0)
x(1,0) y(1,0) z(1,0)
x(2,0) y(2,0) z(2,0)
. . .
x(N,0) y(N,0) z(N,0)
[null line -- nothing except \newline or CR]
x(0,1) y(0,1) z(0,1)
x(1,1) y(1,1) z(1,1)
x(2,1) y(2,1) z(2,1)
. . .
x(N,1) y(N,1) z(N,1)
[null line]
x(0,2) y(0,2) z(0,2)
x(1,2) y(1,2) z(1,2)
x(2,2) y(2,2) z(2,2)
. . .
x(N,2) y(N,2) z(N,2)
.. and so on. You can leave out all the x's and y's if you want, but the
nulls are crucial.


Dick Crawford, aka rccra...@lanl.gov

Roger Zimmermann

unread,
Jun 11, 1998, 3:00:00 AM6/11/98
to
Hi Dick,

thanks for Your quick response. I think, I still not understand this format of the data ...
Do the indices {e.g (0,1)} specify a point on the argument plane  or are they connected with the lines itself ? As far as I understand the format, my data (from my example) should look like:

0(0,0) 0(0,0) 3.5(0,0)
0(0,1) 40(0,1) 2.2(0,1)
40(0,2) 0(0,2) 2.0(0,2)
40(0,3) 40(0,3) 3.1(0,3) etc.
(But I'm not shure)

What do You mean with 'null line' ? I my sense it would be the isoline, were the 3rd value is =0
which is not neccessarily the case on some given points.

Cheers, Roger

-- 
Dr. Roger Zimmermann *** Elektro- & Magnetophysiologie, Berlin Buch
Wiltbergstra/3e 50   D - 13125 Berlin    Tel.: /30 9417 2427
-----------------------------------------  Fax.: /30 9417 2466
  via E-mail:  zimme...@fvk-berlin.der...@berlin.snafu.de
 -=-=-=-=-  The quick brown fox jumps over the lazy dog.  -=-=-=-=-
PGP-ID:  Roger Zimmermann 

0 new messages