Week 10: GNUPlot continued
- A game on smart phone:
- Plot 3D functions using
splot:
splot x**2+y**2
set isosample 20,30
set xyplane at 0
replot
- Plot f(x,y)=sin(x)cos(y)
f(x,y)=sin(x)*cos(y)
set xlabel "{/Times-Italic x}"
set ylabel "{/Times-Italic y}"
set zlabel "{/Times-Italic f(x,y)}"
unset key
splot f(x,y)
set isosample 75
set xyplane at -1
replot
set hidden3d
replot
set pm3d
replot
set isosample 150
set view 20,50
replot
set contour base
replot
unset surface
set view map
set size square
replot
- Now use 3D plots to solve for the math game again.
- Plot the radial wavefunction for the 3s orbital of hydrogen atom. formula
Hint: For hydrogen, set Z=1; for 3s orbital, n=3, l=0 and m=0.
-
References:
GNUPLot Cookbook
B.G. Moore, Orbital Plots Using GNUPlot, J. Chem. Edu. Vol. 77, No. 6, June 2000.