Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #2711 > unrolled thread

Correlation function in 2 Dimensions

Started byaris amvrosiadis <aramvros@gmail.com>
First post2015-01-18 05:13 -0800
Last post2015-01-18 20:27 +0100
Articles 2 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  Correlation function in 2 Dimensions aris amvrosiadis <aramvros@gmail.com> - 2015-01-18 05:13 -0800
    Re: Correlation function in 2 Dimensions Karl <mail.kfr@gmx.net> - 2015-01-18 20:27 +0100

#2711 — Correlation function in 2 Dimensions

Fromaris amvrosiadis <aramvros@gmail.com>
Date2015-01-18 05:13 -0800
SubjectCorrelation function in 2 Dimensions
Message-ID<c4d3762c-ae76-42dd-a4f2-d8a3c4ffef45@googlegroups.com>
 Hello, I have the following data.dat file arranged like:

   X_1   Y_1   Z_1
   X_1   Y_2   Z_2
    .     .     .
    .     .     .
   X_1   Y_n   Z_n
   X_2   Y_1   Z_{n+1}
    .     .     .
    .     .     .
   X_2   Y_n   Z_{2*,}
    .     .     .
    .     .     .
   X_n   Y_n   Z_{n*n}

So i have created a 2D grid, which if we imagine it as squares, each square has a value Z_i ( where z=(0,2) ). Now i want to create a 2D graph {x,y}  like the one found in (http://arxiv.org/pdf/astro-ph/0103143v1.pdf) figure 2.

Since i have x=(0,11) , y=(0,11) i need to create the graph in one quadrant and then duplicate it. 

Can anyone provide me with the code to create the graph in one quadrant, in other words if you imagine a grid of squares in 2D, i need each square to have a different colour depending on the value on the Z that each square has.

Hope i haven't confuse you.  







 

[toc] | [next] | [standalone]


#2713

FromKarl <mail.kfr@gmx.net>
Date2015-01-18 20:27 +0100
Message-ID<m9h1f5$rj9$1@news.rz.uni-karlsruhe.de>
In reply to#2711
Am 18.01.2015 um 14:13 schrieb aris amvrosiadis:
> 
>  Hello, I have the following data.dat file arranged like:
> 
>    X_1   Y_1   Z_1
>    X_1   Y_2   Z_2
>     .     .     .
>     .     .     .
>    X_1   Y_n   Z_n

> 
> So i have created a 2D grid, which if we imagine it as squares, each square has a value Z_i ( where z=(0,2) ). Now i want to create a 2D graph {x,y}  like the one found in (http://arxiv.org/pdf/astro-ph/0103143v1.pdf) figure 2.
> 
> Since i have x=(0,11) , y=(0,11) i need to create the graph in one quadrant and then duplicate it. 
> 
> Can anyone provide me with the code to create the graph in one quadrant, in other words if you imagine a grid of squares in 2D, i need each square to have a different colour depending on the value on the Z that each square has.
> 
> Hope i haven't confuse you.  

Not sure if i understood this correctly, but have you tried the "image"
plotting style?

gp> plot 'data.dat' matrix with image

? You´ll probably want to map Z->colour with a special function
colour(Z), so

gp> plot "data.dat' matrix using 1:2:(colour($3)) with image


[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web