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


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

3d plot with residuals at bottom in color

Started bystefan.meingast@gmail.com
First post2012-08-24 03:42 -0700
Last post2012-08-28 00:32 -0700
Articles 4 — 2 participants

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


Contents

  3d plot with residuals at bottom in color stefan.meingast@gmail.com - 2012-08-24 03:42 -0700
    Re: 3d plot with residuals at bottom in color stefan.meingast@gmail.com - 2012-08-24 03:45 -0700
    Re: 3d plot with residuals at bottom in color sfeam <sfeam@users.sourceforge.net> - 2012-08-25 20:42 -0700
      Re: 3d plot with residuals at bottom in color stefan.meingast@gmail.com - 2012-08-28 00:32 -0700

#1357 — 3d plot with residuals at bottom in color

Fromstefan.meingast@gmail.com
Date2012-08-24 03:42 -0700
Subject3d plot with residuals at bottom in color
Message-ID<cb4849eb-e239-4898-acd0-a225267fb1d6@googlegroups.com>
Hi

I have a 3d data set which I can easily display with splot. What I want, however, is the following:

The 3 axes simply contain the 3d data and I also want to show a 3d-fit (i.e. a plane) which I also know already. Thats simple enough, but I would like to show the residuals of the fit to the data as a color map on the bottom of the graph.

Is that somehow possible?

thanks

[toc] | [next] | [standalone]


#1358

Fromstefan.meingast@gmail.com
Date2012-08-24 03:45 -0700
Message-ID<a278751f-859e-469c-85a1-ca57e9dc1834@googlegroups.com>
In reply to#1357
Am Freitag, 24. August 2012 12:42:56 UTC+2 schrieb stefan....@gmail.com:
> Hi
> 
> 
> 
> I have a 3d data set which I can easily display with splot. What I want, however, is the following:
> 
> 
> 
> The 3 axes simply contain the 3d data and I also want to show a 3d-fit (i.e. a plane) which I also know already. Thats simple enough, but I would like to show the residuals of the fit to the data as a color map on the bottom of the graph.
> 
> 
> 
> Is that somehow possible?
> 
> 
> 
> thanks

Ah, by the way: My data file is just a simple 3-column file without any spaces and it irregular...

[toc] | [prev] | [next] | [standalone]


#1361

Fromsfeam <sfeam@users.sourceforge.net>
Date2012-08-25 20:42 -0700
Message-ID<k1c5vb$m1g$1@dont-email.me>
In reply to#1357
stefan.meingast@gmail.com wrote:

> Hi
> 
> I have a 3d data set which I can easily display with splot. What I
> want, however, is the following:
> 
> The 3 axes simply contain the 3d data and I also want to show a 3d-fit
> (i.e. a plane) which I also know already. Thats simple enough, but I
> would like to show the residuals of the fit to the data as a color map
> on the bottom of the graph.
> 
> Is that somehow possible?

Let P(x,y) be the equation for the plane fit.
Suppose your data is in columns 1, 2, and 3.
The the following command will plot
1) The data
2) The plane fit to the data
3) A pm3d (heat map) representation of the residual
   projected onto the xy plane 

splot 'data' using 1:2:3 with points, \
      P(x,y) using lines, \
      1:2:(0):($3 - P($1,$2)) using pm3d

(warning: this command not tested on actual data)

[toc] | [prev] | [next] | [standalone]


#1362

Fromstefan.meingast@gmail.com
Date2012-08-28 00:32 -0700
Message-ID<4e3a91d3-333a-410d-b800-c2d7cefd748f@googlegroups.com>
In reply to#1361
Am Sonntag, 26. August 2012 05:42:32 UTC+2 schrieb sfeam:
> 
> 
> 
> > Hi
> 
> > 
> 
> > I have a 3d data set which I can easily display with splot. What I
> 
> > want, however, is the following:
> 
> > 
> 
> > The 3 axes simply contain the 3d data and I also want to show a 3d-fit
> 
> > (i.e. a plane) which I also know already. Thats simple enough, but I
> 
> > would like to show the residuals of the fit to the data as a color map
> 
> > on the bottom of the graph.
> 
> > 
> 
> > Is that somehow possible?
> 
> 
> 
> Let P(x,y) be the equation for the plane fit.
> 
> Suppose your data is in columns 1, 2, and 3.
> 
> The the following command will plot
> 
> 1) The data
> 
> 2) The plane fit to the data
> 
> 3) A pm3d (heat map) representation of the residual
> 
>    projected onto the xy plane 
> 
> 
> 
> splot 'data' using 1:2:3 with points, \
> 
>       P(x,y) using lines, \
> 
>       1:2:(0):($3 - P($1,$2)) using pm3d
> 
> 
> 
> (warning: this command not tested on actual data)

Hi

This was also my first approach, but it does not work since I do have irregular spaced data and no "space" between consecutive blocks in the file. In general, pm3d does not work well with irregular spaced data and after some time I gave up this idea because I do not think it is possible with gnuplot.

thanks anyway
cheers

[toc] | [prev] | [standalone]


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


csiph-web