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


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

Creating 3D Surface Plots From a Series of 2D Graphs

Started byFrederick Brown <frederick.brown@gmail.com>
First post2014-05-04 01:10 -0700
Last post2014-05-05 11:14 -0700
Articles 4 — 2 participants

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


Contents

  Creating 3D Surface Plots From a Series of 2D Graphs Frederick Brown <frederick.brown@gmail.com> - 2014-05-04 01:10 -0700
    Re: Creating 3D Surface Plots From a Series of 2D Graphs Karl <ratzsch@kit.edu> - 2014-05-04 12:53 +0200
    Re: Creating 3D Surface Plots From a Series of 2D Graphs Frederick Brown <frederick.brown@gmail.com> - 2014-05-05 09:30 -0700
    Re: Creating 3D Surface Plots From a Series of 2D Graphs Frederick Brown <frederick.brown@gmail.com> - 2014-05-05 11:14 -0700

#2441 — Creating 3D Surface Plots From a Series of 2D Graphs

FromFrederick Brown <frederick.brown@gmail.com>
Date2014-05-04 01:10 -0700
SubjectCreating 3D Surface Plots From a Series of 2D Graphs
Message-ID<32a7fe13-79a5-4bba-bfb9-492b525f46a6@googlegroups.com>
Hi,

I'd like to create a smoothed 3D surface plot from a series of 2d graphs.

Here is a link to a 2d graph that shows a number of line graphs.  

http://i.imgur.com/a2AUGFb.png

Each line graph has a unique and constant z coordinate.  I want to use these to create a nifty looking 3d surface graph.  There will be more line graphs than are shown here to complete the surface.

I have scidavis, octave, and gnuplot, and have used them a little bit, scidavis the most because it's so quick and easy for 2d stuff.  Any ideas as to how I could accomplish this 3D plot?

Best regards,

Fred B

[toc] | [next] | [standalone]


#2450

FromKarl <ratzsch@kit.edu>
Date2014-05-04 12:53 +0200
Message-ID<53661c32$0$6713$9b4e6d93@newsspool2.arcor-online.net>
In reply to#2441
Hi Fred,

just write all 2D datasets to a single file, with a blank line
between each, so pm3d knows knows how to construct the grid.

Then

  splot "fname" using 1:(column(-1)*z_increment):2 with pm3d

for explanations see

 help pseudocolumn
 help pm3d

I your 2D datasets don´t have the same number of points (or they´re
not sampled evenly), pm3d´s "interpolate" option might be of interest.

  Karl


On 04.05.2014 10:10, Frederick Brown wrote:
> Hi,
> 
> I'd like to create a smoothed 3D surface plot from a series of 2d graphs.
> 
> Here is a link to a 2d graph that shows a number of line graphs.  
> 
> http://i.imgur.com/a2AUGFb.png
> 
> Each line graph has a unique and constant z coordinate.  I want to use these to create a nifty looking 3d surface graph.  There will be more line graphs than are shown here to complete the surface.
> 
> I have scidavis, octave, and gnuplot, and have used them a little bit, scidavis the most because it's so quick and easy for 2d stuff.  Any ideas as to how I could accomplish this 3D plot?
> 
> Best regards,
> 
> Fred B
> 

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


#2457

FromFrederick Brown <frederick.brown@gmail.com>
Date2014-05-05 09:30 -0700
Message-ID<601dfb18-3caf-42be-ab8c-358a4c87862c@googlegroups.com>
In reply to#2441
On Sunday, May 4, 2014 4:10:16 AM UTC-4, Frederick Brown wrote:
> Hi,
> 
> 
> 
> I'd like to create a smoothed 3D surface plot from a series of 2d graphs.
> 
> 
> 
> Here is a link to a 2d graph that shows a number of line graphs.  
> 
> 
> 
> http://i.imgur.com/a2AUGFb.png
> 
> 
> 
> Each line graph has a unique and constant z coordinate.  I want to use these to create a nifty looking 3d surface graph.  There will be more line graphs than are shown here to complete the surface.
> 
> 
> 
> I have scidavis, octave, and gnuplot, and have used them a little bit, scidavis the most because it's so quick and easy for 2d stuff.  Any ideas as to how I could accomplish this 3D plot?
> 
> 
> 
> Best regards,
> 
> 
> 
> Fred B

Hi Karl,

Thanks, that worked like a charm.

http://i.imgur.com/AZJxAsR.png

Now just to remember out how to label the axes properly.  It been a while since I used gnuplot.

Best regards,

Fred

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


#2459

FromFrederick Brown <frederick.brown@gmail.com>
Date2014-05-05 11:14 -0700
Message-ID<ee9dbbba-7298-439b-ba32-6bc48a57618d@googlegroups.com>
In reply to#2441
On Sunday, May 4, 2014 4:10:16 AM UTC-4, Frederick Brown wrote:
> Hi,
> 
> 
> 
> I'd like to create a smoothed 3D surface plot from a series of 2d graphs.
> 
> 
> 
> Here is a link to a 2d graph that shows a number of line graphs.  
> 
> 
> 
> http://i.imgur.com/a2AUGFb.png
> 
> 
> 
> Each line graph has a unique and constant z coordinate.  I want to use these to create a nifty looking 3d surface graph.  There will be more line graphs than are shown here to complete the surface.
> 
> 
> 
> I have scidavis, octave, and gnuplot, and have used them a little bit, scidavis the most because it's so quick and easy for 2d stuff.  Any ideas as to how I could accomplish this 3D plot?
> 
> 
> 
> Best regards,
> 
> 
> 
> Fred B

Yep, I can definately work with that!  

http://i.imgur.com/d6xcll5.png

:)

[toc] | [prev] | [standalone]


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


csiph-web