Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1361
| From | sfeam <sfeam@users.sourceforge.net> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: 3d plot with residuals at bottom in color |
| Followup-To | comp.graphics.apps.gnuplot |
| Date | 2012-08-25 20:42 -0700 |
| Organization | gnuplot development team |
| Message-ID | <k1c5vb$m1g$1@dont-email.me> (permalink) |
| References | <cb4849eb-e239-4898-acd0-a225267fb1d6@googlegroups.com> |
Followups directed to: comp.graphics.apps.gnuplot
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)
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
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
csiph-web