summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-func/pst-func-doc.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-04-23 22:40:09 +0000
committerKarl Berry <karl@freefriends.org>2011-04-23 22:40:09 +0000
commit0c7d6abf80d6c8ae90936dfed87abd179341bdc4 (patch)
tree2d94913dda072d51de967d75c9bb4bcbe9842540 /Master/texmf-dist/doc/generic/pst-func/pst-func-doc.tex
parent59c2fb860cfc7f447fded1f644421e4ee9bff956 (diff)
pst-func 0.72 (23apr11)
git-svn-id: svn://tug.org/texlive/trunk@22177 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-func/pst-func-doc.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pst-func/pst-func-doc.tex54
1 files changed, 53 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-func/pst-func-doc.tex b/Master/texmf-dist/doc/generic/pst-func/pst-func-doc.tex
index 10b31b92ba3..306f8eb536f 100644
--- a/Master/texmf-dist/doc/generic/pst-func/pst-func-doc.tex
+++ b/Master/texmf-dist/doc/generic/pst-func/pst-func-doc.tex
@@ -1,4 +1,4 @@
-%% $Id: pst-func-doc.tex 411 2010-11-03 07:58:25Z herbert $
+%% $Id: pst-func-doc.tex 488 2011-04-23 09:19:40Z herbert $
\documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,
smallheadings, headexclude,footexclude,oneside]{pst-doc}
\usepackage[utf8]{inputenc}
@@ -1748,6 +1748,58 @@ for polar plots are also possible (see next example).
\end{LTXexample}
+The data of an implicit plot can be written into an external file for further purposes.
+Use the optional argument \Lkeyword[pstricks-add]{saveData} to write the $x|y$ values
+into the file \nxLcs{jobname.data}. The file name can be changed with the keyword {\Lkeyword[pstricks-add]{filename}.
+When running a \TeX\ file from within a GUI it may be possible that you get a writeaccess error from GhostScript, because
+it prevents writing into a file when called from another program. In this case run GhostScript on the \PS-output from
+the command line.
+
+\psset{mathLabel}
+\begin{LTXexample}[preset=\centering]
+\begin{pspicture*}(-3,-3)(3,3)
+ \psaxes[linewidth=0.25pt,
+ xlabelPos=top,
+ labelFontSize=\scriptscriptstyle,
+ labelsep=2pt,
+ ticksize=0.05]{<->}(0,0)(-2,-1.75)(2,2)[x,0][y,90]
+ \psplotImp[linecolor=red,linewidth=1pt,stepFactor=0.2,saveData,
+ algebraic](-2.5,-1.75)(2.5,2.5){x^2+(5*y/4-sqrt(abs(x)))^2-2.5}
+\end{pspicture*}
+\end{LTXexample}
+
+The values are saved pairwise in an array, e.\,g.:
+\begin{verbatim}
+...
+[
+-1.53237 0.695058
+-1.53237 1.29957
+]
+[
+-1.52534 0.666941
+-1.52534 1.32065
+]
+...
+\end{verbatim}
+
+In one array all $y$ values for the same $x$ value are stored.
+
+\iffalse
+The data then can be read back to get a continous line of the plot.
+
+\begin{LTXexample}[preset=\centering]
+\readdata[nStep=20]{\data}{\jobname.data}
+\begin{pspicture*}(-3,-3)(3,3)
+ \psaxes[linewidth=0.25pt,
+ xlabelPos=top,
+ labelFontSize=\scriptscriptstyle,
+ labelsep=2pt,
+ ticksize=0.05]{<->}(0,0)(-2,-1.75)(2,2)[x,0][y,90]
+ \pslistplot[linecolor=red,linewidth=1pt,plotstyle=curve]{\data}
+\end{pspicture*}
+\end{LTXexample}
+\fi
+
\clearpage
\section{\nxLcs{psVolume} -- Rotating functions around the x-axis}