File:Gnuplot heatmap 3.svg
Summary
Description |
English: Demonstrate use of 4th data column to color a 3D surface (heatmap). |
Date | |
Source |
Own work (Original caption: " eigene Arbeit nach Quellcode aus Gnuplot Projekt ") |
Author | Karsten Adam at de.wikipedia |
Permission (Reusing this file) |
Released under the GNU Free Documentation License. |
Sourcecode
Dieser Quellcode ist Teil des Gnuplot-Projekts
set encoding iso_8859_1
set terminal svg size 600,400 dynamic enhanced fname 'arial' fsize 11 butt solid
set output 'heatmaps.3.svg'
set format cb "%4.1f"
set view 49, 28, 1, 1.48
set samples 25, 25
set isosamples 50, 50
set ticslevel 0
set cbtics border in scale 0,0 mirror norotate offset character 0, 0, 0
# set title "4D data (3D Heat Map)\nIndependent value color-mapped onto 3D surface"
set title "4D Daten (3D Heatmap)\nUnabh\344ngige Variable farbcodiert auf 3D Oberfl\344che"
set title offset character 0, 1, 0 font "" norotate
set rrange [ * : * ] noreverse nowriteback # (currently [8.98847e+307:-8.98847e+307] )
set trange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] )
set urange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] )
set vrange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] )
set xlabel "x"
set xlabel offset character 3, 0, 0 font "" textcolor lt -1 norotate
set xrange [ 5.00000 : 35.0000 ] noreverse nowriteback
set x2range [ * : * ] noreverse nowriteback # (currently [-0.500000:4.50000] )
set ylabel "y"
set ylabel offset character -5, 0, 0 font "" textcolor lt -1 rotate by -270
set yrange [ 5.00000 : 35.0000 ] noreverse nowriteback
set y2range [ * : * ] noreverse nowriteback # (currently [-0.500000:4.50000] )
set zlabel "z"
set zlabel offset character 2, 0, 0 font "" textcolor lt -1 norotate
set zrange [ * : * ] noreverse nowriteback # (currently [120.000:260.000] )
set cbrange [ * : * ] noreverse nowriteback # (currently [0.00000:22.0000] )
set pm3d implicit at s
set colorbox user
set colorbox vertical origin screen 0.9, 0.2, 0 size screen 0.03, 0.6, 0 front noborder
Z(x,y) = 100. * (sinc(x,y) + 1.5)
sinc(x,y) = sin(sqrt((x-20.)**2+(y-20.)**2))/sqrt((x-20.)**2+(y-20.)**2)
color(x,y) = 10. * (1.1 + sin((x-20.)/5.)*cos((y-20.)/10.))
GPFUN_Z = "Z(x,y) = 100. * (sinc(x,y) + 1.5)"
GPFUN_sinc = "sinc(x,y) = sin(sqrt((x-20.)**2+(y-20.)**2))/sqrt((x-20.)**2+(y-20.)**2)"
GPFUN_color = "color(x,y) = 10. * (1.1 + sin((x-20.)/5.)*cos((y-20.)/10.))"
# splot '++' using 1:2:(Z($1,$2)):(color($1,$2)) with pm3d title "4 data columns x/y/z/color"
splot '++' using 1:2:(Z($1,$2)):(color($1,$2)) with pm3d title "4 Datenreihen x/y/z/Farbe"
Licensing
Karsten Adam at the German-language Wikipedia, the copyright holder of this work, hereby publishes it under the following license:
![]() |
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License. |
![]() ![]() ![]() |
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license. | |
Attribution: | ||
| ||
This licensing tag was added to this file as part of the GFDL licensing update. |
Original upload log
The original description page was here. All following user names refer to de.wikipedia.
- 2011-08-26 21:28 Karsten Adam 512×341× (143240 bytes) == {{int:filedesc}} == {{Information |Beschreibung = Demonstrate use of 4th data column to color a 3D surface (heatmap). |Quelle = eigene Arbeit nach Quellcode aus [http://gnuplot.sourceforge.net/demo_svg/heatmaps.html Gnuplot Projekt]