Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2266 > unrolled thread
| Started by | marco.campe@gmail.com |
|---|---|
| First post | 2014-01-22 01:11 -0800 |
| Last post | 2014-01-23 02:09 +0700 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
Plotting pressure in 3d marco.campe@gmail.com - 2014-01-22 01:11 -0800
Re: Plotting pressure in 3d Michael <proximum@land.ru> - 2014-01-23 02:09 +0700
| From | marco.campe@gmail.com |
|---|---|
| Date | 2014-01-22 01:11 -0800 |
| Subject | Plotting pressure in 3d |
| Message-ID | <f280722c-79ee-4947-be55-288630c325bd@googlegroups.com> |
Hi all, I'm trying to do the following using gnuplot: I have a file that contains the 3d data (x,y,z columns) of a geometry (basically a pipe). In another file, I have to whole pressure distribution for each point p(x,y,z). In order to visualize the pressure in this geometry, I want to plot both the geometry and the pressure in one graph (anything like that http://journal.fluid-power.net/journal/issue6/number8.jpg for instance). Can somebody help me out here? Thank you!
[toc] | [next] | [standalone]
| From | Michael <proximum@land.ru> |
|---|---|
| Date | 2014-01-23 02:09 +0700 |
| Message-ID | <lbp51f$974$1@dont-email.me> |
| In reply to | #2266 |
22.01.2014 16:11, marco.campe@gmail.com пишет: > Hi all, > > I'm trying to do the following using gnuplot: > > I have a file that contains the 3d data (x,y,z columns) of a geometry (basically a pipe). > > In another file, I have to whole pressure distribution for each point p(x,y,z). In order to visualize the pressure in this geometry, I want to plot both the geometry and the pressure in one graph (anything like that http://journal.fluid-power.net/journal/issue6/number8.jpg for instance). > > Can somebody help me out here? > > Thank you! > Hello, I tried to plot 2d data over the surface with filledcurves, but it seems that gnuplot can't do it. So here is another solution with polygons: set term png enh size 1024,1024 set out 'pipe.png' set nokey set style fill solid 1.0 set size ratio 0.8 set pm3d at b interpolate 100,100 set view map set grid x set grid y set grid mxtics set grid mytics set object 1 polygon from 30,0 to 30,30 to 80,30 to 85,35 to 85,100 to 130,100 to 130,0 to 30,0 front set object 1 polygon fc rgb "white" fillstyle solid 1.0 border rgb "black" set object 2 polygon from 30,0 to 30,50 to 60,50 to 65,55 to 65,100 to 30,100 to 30,0 front set object 2 polygon fc rgb "white" fillstyle solid 1.0 border rgb "black" splot [30:130][0:100] 'surface.dat' with pm3d notitle Here is resulting picture: http://s006.radikal.ru/i214/1401/33/f3ab113a6d99.png It's an awkward solution, but if you will have enough points on the curved area, it would look pretty smoothly. Best regards, Michael.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web