3d and 2d plots combined

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

3d and 2d plots combined

by WesM :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi again

I have a strong suspicion that the answer to my following question will be "No" but
I need to ask anyhow. Is there a way to place a 2D plot on one of the planes formed
by two of the three axes used in a 3D surface plot? I would like to create such a 2D
plot simultaneously with a surface plot in 3D.

Incidentally I just purchased the book "Gnuplot in Action" by Janert. It is excellent
and has already saved me hours of searching the web. The book, however, does
not appear to address the question I am asking in this post.

Re: 3d and 2d plots combined

by Thomas Sefzick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

well, it's not impossible, have a look at this example:

set parametric
set xrange [0:pi]
set yrange [0:pi]
set urange [0:pi]
set vrange [0:pi]
set zrange [0:1]
set border 1+2+4+8+16+32+64+256+512
set xyplane 0
splot 0,v,sin(v), u,pi,sin(u), u,v,sin(u)*sin(v)

WesM wrote:
Hi again

I have a strong suspicion that the answer to my following question will be "No" but
I need to ask anyhow. Is there a way to place a 2D plot on one of the planes formed
by two of the three axes used in a 3D surface plot? I would like to create such a 2D
plot simultaneously with a surface plot in 3D.

Incidentally I just purchased the book "Gnuplot in Action" by Janert. It is excellent
and has already saved me hours of searching the web. The book, however, does
not appear to address the question I am asking in this post.

Re: 3d and 2d plots combined

by WesM :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Nice. I think Janert should mention this in the next edition of his book.

Thanks Thomas



WesM wrote:
Hi again

I have a strong suspicion that the answer to my following question will be "No" but
I need to ask anyhow. Is there a way to place a 2D plot on one of the planes formed
by two of the three axes used in a 3D surface plot? I would like to create such a 2D
plot simultaneously with a surface plot in 3D.

Incidentally I just purchased the book "Gnuplot in Action" by Janert. It is excellent
and has already saved me hours of searching the web. The book, however, does
not appear to address the question I am asking in this post.