Created
January 20, 2015 04:44
-
-
Save matiskay/6125bec8799d2b9035d7 to your computer and use it in GitHub Desktop.
Plotting RBF function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TEX_FILENAME="rbf" | |
latex ${TEX_FILENAME}.tex; | |
dvips ${TEX_FILENAME}.dvi -E -o ${TEX_FILENAME}.eps | |
convert -density 300 ${TEX_FILENAME}.eps ${TEX_FILENAME}.png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[letterpaper,dvips]{article} | |
\usepackage{pst-all} | |
\usepackage{pst-3dplot} | |
\usepackage{pst-eps} | |
\usepackage{pst-solides3d} | |
\begin{document} | |
\pagestyle{empty} | |
\psset{unit=0.35} | |
\begin{TeXtoEPS} | |
\psset{lightsrc=30 -10 10} | |
\psset{viewpoint=50 20 30 rtp2xyz,Decran=70} | |
\begin{pspicture}(-11,-8)(7,8) | |
\psSurface[ngrid=.2 .2,algebraic,Zmin=-1,Zmax=1, | |
linewidth=0.5\pslinewidth,spotX=r,spotY=d, | |
spotZ=l, | |
hue=0 1](-5,-5)(5,5){ | |
e^(-((x - 3)^2 + (y - 2)^2) * 2.0) + e^(-((x - 1)^2 + (y - 1)^2) * 2.0) + e^(-((x - -1)^2 + (y - 0)^2) * 2.0) + e^(-((x - 2)^2 + (y - -2)^2) * 2.0) | |
} | |
\end{pspicture} | |
\end{TeXtoEPS} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment