diff options
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.tex | 54 |
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} |