summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pstricks-add
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-05-17 22:38:58 +0000
committerKarl Berry <karl@freefriends.org>2009-05-17 22:38:58 +0000
commit249444f732b68d762005367d91ff6f4717d86301 (patch)
treeac74b8881616adaa082721c36f816f8f05b34825 /Master/texmf-dist/doc/generic/pstricks-add
parent3ae3e7426f883c549a427ed3940e3beb8a40ea78 (diff)
pstricks-add 3.32 (13may09)
git-svn-id: svn://tug.org/texlive/trunk@13185 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pstricks-add')
-rw-r--r--Master/texmf-dist/doc/generic/pstricks-add/Changes7
-rw-r--r--Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.pdfbin2127836 -> 2136440 bytes
-rw-r--r--Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex41
3 files changed, 43 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/generic/pstricks-add/Changes b/Master/texmf-dist/doc/generic/pstricks-add/Changes
index 9b52ca56881..428a54f158f 100644
--- a/Master/texmf-dist/doc/generic/pstricks-add/Changes
+++ b/Master/texmf-dist/doc/generic/pstricks-add/Changes
@@ -1,4 +1,4 @@
-%% $Id: Changes 114 2009-04-24 19:25:37Z herbert $
+%% $Id: Changes 115 2009-04-29 08:19:40Z herbert $
%%
pstricks-add.pro -----------
v 0.22 2009-03-17 - add LineByHand stuff
@@ -36,7 +36,10 @@ pstricks-add.sty ----------- (hv)
pstricks-add.tex ----------- (Dominik Rodriguez/hv)
- v 3.31 2009-04-24 - added \pstFPDiv for division int(#1=#2/#3)
+ v 3.32 2009-05-11 - added psTangentLine for a curve of three points
+ Tnormal option is valid
+ - load pst-math for equation solver
+ v 3.31 2009-04-29 - added \pstFPDiv for division int(#1=#2/#3)
- added axes style "polar" \psaxes[axesstyle=polar](5,5)
- fix trailing space with yAxisLabel
- added option decimalSeparator to allow special symbols
diff --git a/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.pdf b/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.pdf
index 954c14cf845..ac831dfc841 100644
--- a/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.pdf
+++ b/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex b/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex
index b1408858a32..353adf55ae6 100644
--- a/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex
+++ b/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex
@@ -5135,6 +5135,7 @@ as for the x-axis.
\end{psgraph}
\end{center}
+\resetOptions
\begin{lstlisting}
\readdata{\data}{demo1.data}
\pstScalePoints(1,0.000001){}{}% (x,y){additional x operator}{y op}
@@ -5175,6 +5176,7 @@ In the following example, the y unit gets the same value as the one for the x-ax
\listplot[linecolor=red, linewidth=2pt, showpoints=true]{\data}
\end{psgraph}
\end{center}
+\resetOptions
\begin{lstlisting}
\readdata{\data}{demo1.data}
@@ -5201,6 +5203,7 @@ In the following example, the y unit gets the same value as the one for the x-ax
%-----------------------------------------------------------------------------
+\resetOptions
\begin{center}
\readdata{\data}{demo1.data}
\pstScalePoints(1,0.2){}{log}
@@ -5210,6 +5213,9 @@ In the following example, the y unit gets the same value as the one for the x-ax
\endpsgraph
\end{center}
+
+
+
\begin{lstlisting}
\readdata{\data}{demo1.data}
\pstScalePoints(1,0.2){}{log}
@@ -5221,17 +5227,21 @@ In the following example, the y unit gets the same value as the one for the x-ax
%-----------------------------------------------------------------------------
+\resetOptions
\begin{LTXexample}[pos=t,preset=\centering]
\readdata{\data}{demo0.data}
\psset{lly=-0.75cm,ury=0.5cm}
\pstScalePoints(1,1){}{log}
\begin{psgraph}[arrows=->,Dx=0.5,ylogBase=10,Oy=-1,xsubticks=10,%
ysubticks=2](0,-3)(3,1){12cm}{4cm}
- \listplot[linecolor=red,linewidth=2pt,showpoints=true,plotstyle=LineToXAxis]{\data}
+ \psset{Oy=-2}% must be global
+ \listplot[linecolor=red,linewidth=2pt,showpoints=true,
+ plotstyle=LineToXAxis]{\data}
\end{psgraph}
\end{LTXexample}
+\resetOptions
\begin{LTXexample}[pos=t,preset=\centering]
\psset{lly=-0.75cm,ury=0.5cm}
\readdata{\data}{demo0.data}
@@ -5242,7 +5252,9 @@ In the following example, the y unit gets the same value as the one for the x-ax
\end{LTXexample}
+
%-----------------------------------------------------------------------------
+\resetOptions
\begin{center}
\readdata{\data}{demo2.data}%
\readdata{\dataII}{demo3.data}%
@@ -5270,6 +5282,7 @@ In the following example, the y unit gets the same value as the one for the x-ax
\end{lstlisting}
%-----------------------------------------------------------------------------
+\resetOptions
%\begin{LTXexample}[pos=t,preset=\centering]
\begin{center}
\readdata{\data}{demo2.data}%
@@ -5299,6 +5312,7 @@ In the following example, the y unit gets the same value as the one for the x-ax
%\newpage
An example with ticks on every side of the frame and filled areas:
+\resetOptions
\begin{center}
\def\data{0 0 1 4 1.5 1.75 2.25 4 2.75 7 3 9}
\psset{lly=-0.5cm}
@@ -5363,7 +5377,6 @@ can be outside the visible \Lenv{pspicture} environment
\medskip
\resetOptions
-
\begin{center}
\readdata{\data}{demo2.data}%
\readdata{\dataII}{demo3.data}%
@@ -5524,7 +5537,29 @@ the mathematical function in postfix or algebraic notation (with
\clearpage
%--------------------------------------------------------------------------------------
-\section{\nxLcs{psplotTangent} and option \nxLkeyword{Tnormal}}
+
+\section{Plotting tangent lines}
+There are two macros for plotting a tangent line or the tangent normal line.
+The first one is \Lcs{psTangentLine} which expects three pairs of coordinates,
+a $x$ and a $dx$ value. The second one is \Lcs{psplotTangent} which expects
+a function for the curve.
+
+\subsection{\nxLcs{psTangentLine} and option \nxLkeyword{Tnormal}}
+
+\begin{BDef}
+\Lcs{psTangentLine}\OptArgs\Largr{\coord1}\Largr{\coord2}\Largr{\coord3}\Largb{x}\Largb{dx}
+\end{BDef}
+
+\begin{LTXexample}[pos=t,preset=\centering,wide]
+\psset{unit=2}
+\begin{pspicture}[showgrid=true](1,-1)(4,1)
+ \pscurve[showpoints=true](2.1,-0.2)(2.5,0.2)(3.2,0.235)(3.8,-0.2)
+ \psTangentLine[Tnormal,arrows=->,linecolor=red](2.5,0.2)(3.2,0.235)(3.8,-0.2){3}{0.1}
+ \psTangentLine[arrows=<->,linecolor=blue](2.5,0.2)(3.2,0.235)(3.8,-0.2){3}{0.5}
+\end{pspicture}
+\end{LTXexample}
+
+\subsection{\nxLcs{psplotTangent} and option \nxLkeyword{Tnormal}}
%--------------------------------------------------------------------------------------
There is an additional option, named \Lkeyword{Derive} for an
alternative function (see following example) to calculate the