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.

(Original text : siehe unten)

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:
GNU head 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.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
Attribution:
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
This licensing tag was added to this file as part of the GFDL licensing update.
Category:CC-BY-SA-3.0-migrated#Gnuplot%20heatmap%203.svgCategory:License migration completed#Gnuplot%20heatmap%203.svgCategory:GFDL#Gnuplot%20heatmap%203.svg
Category:Self-published workCategory:User-created GFDL images#Gnuplot%20heatmap%203.svg
 
W3C-validity not checked.
Category:Unchecked SVG validity

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]
Category:Surface plots Category:Visualization Category:4D Category:Images with Gnuplot source code Category:Sinc function
Category:4D Category:CC-BY-SA-3.0-migrated Category:GFDL Category:Images with Gnuplot source code Category:License migration completed Category:Self-published work Category:Sinc function Category:Surface plots Category:Unchecked SVG validity Category:User-created GFDL images Category:Visualization