diff options
author | Karl Berry <karl@freefriends.org> | 2014-01-16 00:10:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-01-16 00:10:42 +0000 |
commit | e29414766d9839222ab5ea36f953729a00a373c5 (patch) | |
tree | 0f1ff2021415d8880b38d2fcc45327e0ba53a016 /Master | |
parent | 205e53722caf0f606776b6de7af029028b19eb6a (diff) |
pst-plot (15jan14)
git-svn-id: svn://tug.org/texlive/trunk@32683 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-plot/Changes | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.pdf | bin | 1225123 -> 1230422 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.tex | 31 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex | 10 |
4 files changed, 36 insertions, 7 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-plot/Changes b/Master/texmf-dist/doc/generic/pst-plot/Changes index 5ccad5322fa..3ca04564b3f 100644 --- a/Master/texmf-dist/doc/generic/pst-plot/Changes +++ b/Master/texmf-dist/doc/generic/pst-plot/Changes @@ -1,4 +1,6 @@ ----- pst-plot.tex +1.58 2014-01-15 - save last coordinates as /FinalState instead of + /SaveFinalState. Also for parametric plot 1.57 2013-12-01 - take Dx and Dy into account for special labels 1.56 2013-11-22 - deleted option quadrant and take coordinates into account for polar axes (x,phi) diff --git a/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.pdf b/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.pdf Binary files differindex 8a5b010c9e8..9acd6512513 100644 --- a/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.pdf +++ b/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.pdf diff --git a/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.tex b/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.tex index a78c58456fa..5325c305ed4 100644 --- a/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.tex +++ b/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.tex @@ -3,8 +3,9 @@ \listfiles \usepackage[utf8]{inputenc} -\usepackage{pst-node, - pst-plot,pst-ode +\usepackage{pst-ode, + pst-node, + pst-plot } %\usepackage{pstricks-gvb} \SpecialCoor @@ -754,7 +755,7 @@ which is LowerLeft, UpperLeft, LowerRight, and UpperRight. The values have no di %------------------------------------------------------------------------------------------- \begin{center} -\begin{tabular}{@{} l>{\tt}ll @{}} +\begin{tabular}{@{} l>{\ttfamily}ll @{}} \textrm{name} & \textrm{default} & meaning\\\hline \Lkeyword{xAxisLabel} & x & label for the x-axis\\ \Lkeyword{yAxisLabel} & y & label for the y-axis\\ @@ -3466,6 +3467,30 @@ and internally set by \texttt{1/}\Lkeyword{Ox} with a preset of \texttt{Ox=3}. \end{lstlisting} +\section{Internals} +The last pair of coordinates of \Lcs{psplot} and \Lcs{psparametricplot} +is saved in a PostScript array and can be used as \verb|FinalState| +inside PostScript code. + +\medskip +\begin{LTXexample}[pos=t] +\psset{unit=2} +\begin{pspicture}(0,-1)(3,0.5) + \pscustom[linejoin=1,arrows=->]{% + \psline(0,-1)(1,0) + \psplot[algebraic,plotpoints=100]{1}{2.25}{.25*sin(2*Pi*x/.25)} + \psline(3,0) + } +% + \pscustom[linejoin=1,arrows=->,linecolor=red]{% + \psline(0,-1)(1,0) + \psplot[algebraic,plotpoints=100]{1}{2.25}{.25*sin(2*Pi*x/.25)} + \psline(! FinalState aload pop )(3,0) + } +\end{pspicture} +\end{LTXexample} + + \clearpage diff --git a/Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex b/Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex index 49ba14926da..cea97afc4e9 100644 --- a/Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex +++ b/Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex @@ -19,8 +19,8 @@ \ifx\PSTFPloaded\endinput\else \input pst-fp.tex \fi \ifx\MultidoLoaded\endinput\else \input multido.tex \fi % -\def\fileversion{1.57} -\def\filedate{2013/12/01} +\def\fileversion{1.58} +\def\filedate{2014/01/16} \message{ v\fileversion, \filedate\space (tvz,hv)} % \edef\TheAtCode{\the\catcode`\@} @@ -1008,7 +1008,7 @@ D\space##1% } \ifx\psk@method\@varrkiv loop\else repeat \fi \space /x x1 def xy - 2 copy \tx@UserCoor 2 array astore /SaveFinalState ED + 2 copy \tx@UserCoor 2 array astore /FinalState ED n 2 roll}% \fi% \@nameuse{endplot@\psplotstyle}} @@ -1104,7 +1104,9 @@ D\space##1% /t 3 -1 roll def 2 copy gt { exch } if pop /t t 3 -1 roll dup /LastNonZeroStep exch def add dup t1 gt {pop t1} if def /n n 2 add def t t1 eq { exit } if } loop - xy n 2 roll}% + xy + 2 copy \tx@UserCoor 2 array astore /FinalState ED + n 2 roll}% \else\pst@killglue% \addto@pscode{ mark |