2D function in 3D map view

View: New views
3 Messages — Rating Filter:   Alert me  

2D function in 3D map view

by atoms.h :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

my question is somewhat similar to the one recently asked. Nevertheless:

We have some 3D data which we plot like
$ set view map
$ set pm3d
$ splot 'somedata.dat' w image

Now we have a analytical function f(x) which we would like to put on top (i.e. like an analytical contour). By now the problem is that splot interprets the function value as 'z' and as it seems there is no axis command.

Any help is welcome!

cheers thomas

Re: 2D function in 3D map view

by Thomas Sefzick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

why 'splot'? 'plot' should be sufficient:

set xrange [...
set yrange [...
set size ratio 1
set cbrange [...
plot "somedata.dat" with image, f(x)

atoms.h wrote:
my question is somewhat similar to the one recently asked. Nevertheless:

We have some 3D data which we plot like
$ set view map
$ set pm3d
$ splot 'somedata.dat' w image

Now we have a analytical function f(x) which we would like to put on top (i.e. like an analytical contour). By now the problem is that splot interprets the function value as 'z' and as it seems there is no axis command.

Any help is welcome!

cheers thomas

Re: 2D function in 3D map view

by Thomas Sefzick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

with 'splot' it also works:

set view map
set pm3d
set parametric
# set urange the same like xrange
set urange [...
$ splot 'somedata.dat' w image, u,f(u),0

atoms.h wrote:
my question is somewhat similar to the one recently asked. Nevertheless:

We have some 3D data which we plot like
$ set view map
$ set pm3d
$ splot 'somedata.dat' w image

Now we have a analytical function f(x) which we would like to put on top (i.e. like an analytical contour). By now the problem is that splot interprets the function value as 'z' and as it seems there is no axis command.

Any help is welcome!

cheers thomas