Fwd: Gnuplot 3D suface color coded by altitude
drew einhorn
drew.einhorn at gmail.com
Tue Apr 8 15:44:03 UTC 2008
Arghh. The images are too big for this list.
And I've never seen a moderator actually approve
a message with attachements that are too big.
Maybe I'm not patient enough.
Anway this is probably understandable from
the text talking about the images. If anybody
needs to see the images I'll put them up on a
webserver.
Tried sending this to the info-gnuplot list.
But it's not at any of the published locations I've found:
majordomo at dartmouth.edu
majordomo at lists.sourceforge.net
Anybody know the correct location of this list?
Back to my immediate problem:
Gnuplot 3D suface color coded by altitude
So far the only way I have found to do it is with pm3d and pallete.
Here is the gnuplot commands I put together by combing code
from a couple of examples, without really understanding the details
set terminal x11
set title "Iozone - Read Performance"
set grid lt 2 lw 1
unset surface
set xtics
set ytics
set logscale x 2
set logscale y 2
set autoscale z
set xrange [2.**5:2.**24]
set xlabel "File size in 2^n KBytes"
set ylabel "Record size in 2^n Kbytes"
set zlabel "Kbytes/sec"
set data style lines
set dgrid3d 80,80,3
set pm3d; set palette
splot 'read/iozone_gen_out.gnuplot' using 1:2:3
pause -1 "Hit return to continue"
Attached is datafile from 'read/iozone_gen_out.gnuplot'
the resulting image viewed from a couple directions.
Screenshot-1 is viewed from above so we can easily
read the x and y coordinates.
Screenshot-2 is view from an angle so we can see
the 3D shapes.
Screenshot-2 looks awfully bumpy. This is an
artifact of generating the 3D surface which we
can see clearly in Screenshot-1.
All of our data points are on a rectangular grid
at the tick marks,
Data values between tick marks are interpolated
somehow by the surface generating algorithm.
If we look at the high value yellow data points
we see theat the interpolated values are hanging
down into the orange.
And if we look at the low value black data points
we see that the intepolated values are rising up
into blue.
Here's how I would like to see the 3D surface
generated. When viewing the xy plane from
above above we have all our data points on
a the corners of little squares. I'd like to add
interpolated data points at the center of the
little squares with the z value being the
average of the 4 corners. This technique is
certainly well know and has a name I could
use in a google search (if I knew it).
--
Drew Einhorn
--
Drew Einhorn
--
Drew Einhorn
--
Drew Einhorn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iozone_gen_out.gnuplot.gz
Type: application/x-gzip
Size: 1154 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080408/db18d098/attachment.bin>
More information about the ubuntu-users
mailing list