summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex120
1 files changed, 76 insertions, 44 deletions
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 e86490290f3..9206c0fb492 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
@@ -3257,14 +3257,14 @@ The option \verb+trigLabelBase+ set the demoninator of fraction. The default val
0 is the same as no fraction.
The following constants are are defined in the package:
\begin{lstlisting}
-\def§\ON§\PiFour§\OFF§{12.566371}
-\def§\ON§\PiTwo§\OFF§{6.283185}
-\def§\ON§\Pi§\OFF§{3.14159265}
-\def§\ON§\PiH§\OFF§{1.570796327}
-\newdimen\RadUnit
-\newdimen\RadUnitInv
-§\ON§\RadUnit§\OFF§=1.047198cm % this is pi/3
-§\ON§\RadUnitInv§\OFF§=0.95493cm % this is 3/pi
+\def§\ON§\psPiFour§\OFF§{12.566371}
+\def§\ON§\psPiTwo§\OFF§{6.283185}
+\def§\ON§\psPi§\OFF§{3.14159265}
+\def§\ON§\psPiH§\OFF§{1.570796327}
+\newdimen\pstRadUnit
+\newdimen\pstRadUnitInv
+§\ON§\pstRadUnit§\OFF§=1.047198cm % this is pi/3
+§\ON§\pstRadUnitInv§\OFF§=0.95493cm % this is 3/pi
\end{lstlisting}
@@ -3283,27 +3283,27 @@ because every 1 xunit (1cm) is a tick and the last one at 6cm.
\begin{minipage}{0.4\fullWidth}
\begin{pspicture}[trigLabels=true](-0.5,-1.25)(6.5,1.25)%
\pnode(5,0){A}%
- \psaxes{->}(0,0)(-0.5,-1.25)(\PiTwo,1.25)%
+ \psaxes{->}(0,0)(-0.5,-1.25)(\psPiTwo,1.25)%
\end{pspicture}
\end{minipage}%
\begin{minipage}{0.6\fullWidth}
\begin{lstlisting}
\begin{pspicture}(-0.5,-1.25)(6.5,1.25)%
\pnode(5,0){A}%
- \psaxes{->}(0,0)(-.5,-1.25)(\PiTwo,1.25)
+ \psaxes{->}(0,0)(-.5,-1.25)(\psPiTwo,1.25)
\end{pspicture}
\end{lstlisting}
\end{minipage}
\begin{minipage}{0.4\fullWidth}
\begin{pspicture}(-0.5,-1.25)(6.5,1.25)%
- \psaxes[trigLabelBase=3]{->}(0,0)(-0.5,-1.25)(\PiTwo,1.25)
+ \psaxes[trigLabelBase=3]{->}(0,0)(-0.5,-1.25)(\psPiTwo,1.25)
\end{pspicture}
\end{minipage}%
\begin{minipage}{0.6\fullWidth}
\begin{lstlisting}
\begin{pspicture}(-0.5,-1.25)(10,1.25)%
- \psaxes[§\ON§trigLabelBase=3§\OFF§]{->}(0,0)(-0.5,-1.25)(\PiTwo,1.25)
+ \psaxes[§\ON§trigLabelBase=3§\OFF§]{->}(0,0)(-0.5,-1.25)(\psPiTwo,1.25)
\end{pspicture}
\end{lstlisting}
\end{minipage}
@@ -3315,14 +3315,14 @@ with a different dx value ($\frac{\pi}{3}\approx 1.047$):
\begin{minipage}{0.4\fullWidth}
-\begin{pspicture}(-0.5,-1.25)(6.5,1.25)\pnode(\PiTwo,0){C}%
- \psaxes[dx=\RadUnit]{->}(0,0)(-0.5,-1.25)(\PiTwo,1.25)
+\begin{pspicture}(-0.5,-1.25)(6.5,1.25)\pnode(\psPiTwo,0){C}%
+ \psaxes[dx=\pstRadUnit]{->}(0,0)(-0.5,-1.25)(\psPiTwo,1.25)
\end{pspicture}%
\end{minipage}%
\begin{minipage}{0.6\fullWidth}
\begin{lstlisting}
-\begin{pspicture}(-0.5,-1.25)(6.5,1.25)\pnode(\PiTwo,0){C}%
- \psaxes[§\ON§dx=\RadUnit§\OFF§]{->}(0,0)(-0.5,-1.25)(\PiTwo,1.25)
+\begin{pspicture}(-0.5,-1.25)(6.5,1.25)\pnode(\psPiTwo,0){C}%
+ \psaxes[§\ON§dx=\pstRadUnit§\OFF§]{->}(0,0)(-0.5,-1.25)(\psPiTwo,1.25)
\end{pspicture}%
\end{lstlisting}
\end{minipage}
@@ -3330,13 +3330,13 @@ with a different dx value ($\frac{\pi}{3}\approx 1.047$):
\begin{minipage}{0.4\fullWidth}
\begin{pspicture}(-0.5,-1.25)(6.5,1.25)\pnode(5,0){B}%
- \psaxes[dx=\RadUnit,trigLabelBase=3]{->}(0,0)(-0.5,-1.25)(\PiTwo,1.25)
+ \psaxes[dx=\pstRadUnit,trigLabelBase=3]{->}(0,0)(-0.5,-1.25)(\psPiTwo,1.25)
\end{pspicture}%
\end{minipage}%
\begin{minipage}{0.6\fullWidth}
\begin{lstlisting}
\begin{pspicture}(-0.5,-1.25)(6.5,1.25)\pnode(5,0){B}%
- \psaxes[dx=\RadUnit,§\ON§trigLabelBase=3§\OFF§] {->}(0,0)(-0.5,-1.25)(\PiTwo,1.25)
+ \psaxes[dx=\pstRadUnit,§\ON§trigLabelBase=3§\OFF§] {->}(0,0)(-0.5,-1.25)(\psPiTwo,1.25)
\end{pspicture}%
\end{lstlisting}
\end{minipage}
@@ -3348,14 +3348,14 @@ are $6\pi$. Using \verb+trigLabelBase=3+ reduces this value to $2\pi$, a.s.o.
\bigskip
\begin{minipage}{0.4\fullWidth}
-\psset{xunit=\RadUnit}%
+\psset{xunit=\pstRadUnit}%
\begin{pspicture}(-0.5,-1.25)(6.5,1.25)\pnode(6,0){D}%
\psaxes{->}(0,0)(-0.5,-1.25)(6.5,1.25)%
\end{pspicture}%
\end{minipage}%
\begin{minipage}{0.6\fullWidth}
\begin{lstlisting}
-\psset{§\ON§xunit=\RadUnit§\OFF§}%
+\psset{§\ON§xunit=\pstRadUnit§\OFF§}%
\begin{pspicture}(-0.5,-1.25)(6.5,1.25)\pnode(6,0){D}%
\psaxes{->}(0,0)(-0.5,-1.25)(6.5,1.25)%
\end{pspicture}%
@@ -3365,14 +3365,14 @@ are $6\pi$. Using \verb+trigLabelBase=3+ reduces this value to $2\pi$, a.s.o.
\begin{minipage}{0.4\fullWidth}
-\psset{xunit=\RadUnit}%
+\psset{xunit=\pstRadUnit}%
\begin{pspicture}(-0.5,-1.25)(6.5,1.25)
\psaxes[trigLabelBase=3]{->}(0,0)(-0.5,-1.25)(6.5,1.25)
\end{pspicture}%
\end{minipage}%
\begin{minipage}{0.6\fullWidth}
\begin{lstlisting}
-\psset{§\ON§xunit=\RadUnit§\OFF§}%
+\psset{§\ON§xunit=\pstRadUnit§\OFF§}%
\begin{pspicture}(-0.5,-1.25)(6.5,1.25)
\psaxes[§\ON§trigLabelBase=3§\OFF§]{->}(0,0)(-0.5,-1.25)(6.5,1.25)
\end{pspicture}%
@@ -3382,14 +3382,14 @@ are $6\pi$. Using \verb+trigLabelBase=3+ reduces this value to $2\pi$, a.s.o.
\begin{minipage}{0.4\fullWidth}
-\psset{xunit=\RadUnit}%
+\psset{xunit=\pstRadUnit}%
\begin{pspicture}(-0.5,-1.25)(6.5,1.25)
\psaxes[trigLabelBase=4]{->}(0,0)(-0.5,-1.25)(6.5,1.25)
\end{pspicture}%
\end{minipage}%
\begin{minipage}{0.6\fullWidth}
\begin{lstlisting}
-\psset{§\ON§xunit=\RadUnit§\OFF§}%
+\psset{§\ON§xunit=\pstRadUnit§\OFF§}%
\begin{pspicture}(-0.5,-1.25)(6.5,1.25)
\psaxes[§\ON§trigLabelBase=4§\OFF§]{->}(0,0)(-0.5,-1.25)(6.5,1.25)
\end{pspicture}%
@@ -3397,14 +3397,14 @@ are $6\pi$. Using \verb+trigLabelBase=3+ reduces this value to $2\pi$, a.s.o.
\end{minipage}
\begin{minipage}{0.4\fullWidth}
-\psset{xunit=\RadUnit}%
+\psset{xunit=\pstRadUnit}%
\begin{pspicture}(-0.5,-1.25)(6.5,1.25)
\psaxes[trigLabelBase=6]{->}(0,0)(-0.5,-1.25)(6.5,1.25)
\end{pspicture}%
\end{minipage}%
\begin{minipage}{0.6\fullWidth}
\begin{lstlisting}
-\psset{§\ON§xunit=\RadUnit§\OFF§}%
+\psset{§\ON§xunit=\pstRadUnit§\OFF§}%
\begin{pspicture}(-0.5,-1.25)(6.5,1.25)
\psaxes[§\ON§trigLabelBase=6§\OFF§]{->}(0,0)(-0.5,-1.25)(6.5,1.25)
\end{pspicture}%
@@ -3413,31 +3413,31 @@ are $6\pi$. Using \verb+trigLabelBase=3+ reduces this value to $2\pi$, a.s.o.
-The best way seems to be setting the $x$-unit to \verb+\RadUnit+. Plotting a
+The best way seems to be setting the $x$-unit to \verb+\pstRadUnit+. Plotting a
function doesn't consider the value for \verb+trigLabelBase+, it has to be done by
the user. The first example sets the unit locally for the \verb+\psplot+
back to 1cm, which is needed, because we use this unit on PostScript side.
\begin{minipage}{0.4\fullWidth}
-\psset{xunit=\RadUnit}%
+\psset{xunit=\pstRadUnit}%
\begin{pspicture}(-0.5,-1.25)(6.5,1.25)
\psaxes[trigLabelBase=3]{->}(0,0)(-0.5,-1.25)(6.5,1.25)
- \psplot[xunit=1cm,linecolor=red,linewidth=1.5pt]{0}{\PiTwo}{x RadtoDeg sin}
+ \psplot[xunit=1cm,linecolor=red,linewidth=1.5pt]{0}{\psPiTwo}{x RadtoDeg sin}
\end{pspicture}
\end{minipage}%
\begin{minipage}{0.6\fullWidth}
\begin{lstlisting}
-\psset{xunit=\RadUnit}%
+\psset{xunit=\pstRadUnit}%
\begin{pspicture}(-0.5,-1.25)(6.5,1.25)
\psaxes[trigLabelBase=3]{->}(0,0)(-0.5,-1.25)(6.5,1.25)
- \psplot[§\ON§xunit=1cm§\OFF§,linecolor=red,linewidth=1.5pt]{0}{§\ON§\PiTwo§\OFF§}{x RadtoDeg sin}
+ \psplot[§\ON§xunit=1cm§\OFF§,linecolor=red,linewidth=1.5pt]{0}{§\ON§\psPiTwo§\OFF§}{x RadtoDeg sin}
\end{pspicture}
\end{lstlisting}
\end{minipage}
\begin{minipage}{0.4\fullWidth}
-\psset{xunit=\RadUnit}%
+\psset{xunit=\pstRadUnit}%
\begin{pspicture}(-0.5,-1.25)(6.5,1.25)
\psaxes[trigLabelBase=3]{->}(0,0)(-0.5,-1.25)(6.5,1.25)
\psplot[linecolor=red,linewidth=1.5pt]{0}{6}{x Pi 3 div mul RadtoDeg sin}
@@ -3445,7 +3445,7 @@ back to 1cm, which is needed, because we use this unit on PostScript side.
\end{minipage}%
\begin{minipage}{0.6\fullWidth}
\begin{lstlisting}
-\psset{xunit=\RadUnit}%
+\psset{xunit=\pstRadUnit}%
\begin{pspicture}(-0.5,-1.25)(6.5,1.25)
\psaxes[trigLabelBase=3]{->}(0,0)(-0.5,-1.25)(6.5,1.25)
\psplot[linecolor=red,linewidth=1.5pt]{0}{6}{x §\ON§Pi 3 div mul §\OFF§RadtoDeg sin}
@@ -3455,36 +3455,36 @@ back to 1cm, which is needed, because we use this unit on PostScript side.
\begin{minipage}{0.4\fullWidth}
-\psset{xunit=\RadUnit}%
+\psset{xunit=\pstRadUnit}%
\begin{pspicture}(-0.5,-1.25)(6.5,1.25)
\psaxes[dx=1.5]{->}(0,0)(-0.5,-1.25)(6.5,1.25)
- \psplot[xunit=.5cm,linecolor=red,linewidth=1.5pt]{0}{\PiFour}{x RadtoDeg sin}
+ \psplot[xunit=.5cm,linecolor=red,linewidth=1.5pt]{0}{\psPiFour}{x RadtoDeg sin}
\end{pspicture}
\end{minipage}%
\begin{minipage}{0.6\fullWidth}
\begin{lstlisting}
-\psset{xunit=\RadUnit}%
+\psset{xunit=\pstRadUnit}%
\begin{pspicture}(-0.5,-1.25)(6.5,1.25)
\psaxes[§\ON§dx=1.5§\OFF§]{->}(0,0)(-0.5,-1.25)(6.5,1.25)
- \psplot[§\ON§xunit=0.5cm§\OFF§,linecolor=red,linewidth=1.5pt]{0}{§\ON§\PiFour§\OFF§}{x RadtoDeg sin}
+ \psplot[§\ON§xunit=0.5cm§\OFF§,linecolor=red,linewidth=1.5pt]{0}{§\ON§\psPiFour§\OFF§}{x RadtoDeg sin}
\end{pspicture}
\end{lstlisting}
\end{minipage}
\begin{minipage}{0.4\fullWidth}
-\psset{xunit=\RadUnit}%
+\psset{xunit=\pstRadUnit}%
\begin{pspicture}(-0.5,-1.25)(6.5,1.25)
\psaxes[dx=0.75,trigLabelBase=2]{->}(0,0)(-0.5,-1.25)(6.5,1.25)
- \psplot[xunit=.5cm,linecolor=red,linewidth=1.5pt]{0}{\PiFour}{x RadtoDeg sin}
+ \psplot[xunit=.5cm,linecolor=red,linewidth=1.5pt]{0}{\psPiFour}{x RadtoDeg sin}
\end{pspicture}
\end{minipage}%
\begin{minipage}{0.6\fullWidth}
\begin{lstlisting}
-\psset{xunit=\RadUnit}%
+\psset{xunit=\pstRadUnit}%
\begin{pspicture}(-0.5,-1.25)(6.5,1.25)
\psaxes[§\ON§dx=0.75§\OFF§,§\ON§trigLabelBase=2§\OFF§]{->}(0,0)(-0.5,-1.25)(6.5,1.25)
- \psplot[§\ON§xunit=0.5cm§\OFF§,linecolor=red,linewidth=1.5pt]{0}{\PiFour}{x RadtoDeg sin}
+ \psplot[§\ON§xunit=0.5cm§\OFF§,linecolor=red,linewidth=1.5pt]{0}{\psPiFour}{x RadtoDeg sin}
\end{pspicture}
\end{lstlisting}
\end{minipage}
@@ -3519,7 +3519,7 @@ The function then is plotted from $0$ to $3\pi=9.424777961$.
\begin{center}
\psset{unit=1cm}
\begin{pspicture}(-0.5,-1.25)(10,1.25)
- \psaxes[xunit=\Pi,dx=0.25]{->}(0,0)(-0.25,-1.25)(3.2,1.25)
+ \psaxes[xunit=\psPi,dx=0.25]{->}(0,0)(-0.25,-1.25)(3.2,1.25)
\psplot[xunit=0.25,plotpoints=500,linecolor=red,linewidth=1.5pt]{0}{37.70}{%
x RadtoDeg dup sin exch 1.1 mul cos add}
\end{pspicture}
@@ -3537,7 +3537,7 @@ The function then is plotted from $0$ to $3\pi=9.424777961$.
\begin{pspicture}(-0.5,-2)(10,2)
\psplot[xunit=0.0625,linecolor=red,linewidth=1.5pt,plotpoints=5000]{0}{150.80}{%
x RadtoDeg dup sin exch 1.1 mul cos add}
- \psaxes[xunit=\Pi,dx=0.5,Dx=8,subticks=2]{->}(0,0)(-0.1,-2)(3.2,2)
+ \psaxes[xunit=\psPi,dx=0.5,Dx=8,subticks=2]{->}(0,0)(-0.1,-2)(3.2,2)
\end{pspicture}
\end{center}
\begin{lstlisting}
@@ -3546,7 +3546,39 @@ The function then is plotted from $0$ to $3\pi=9.424777961$.
\psplot[§\ON§xunit=0.0625§\OFF§,linecolor=red,linewidth=1.5pt,%
§\ON§plotpoints=5000§\OFF§]{0}{150.80}%
{x RadtoDeg dup sin exch 1.1 mul cos add}
- \psaxes[§\ON§xunit=\Pi§\OFF§,§\ON§dx=0.5§\OFF§,§\ON§Dx=8§\OFF§]{->}(0,0)(-0.25,-1.25)(3.2,1.25)
+ \psaxes[§\ON§xunit=\psPi§\OFF§,§\ON§dx=0.5§\OFF§,§\ON§Dx=8§\OFF§]{->}(0,0)(-0.25,-1.25)(3.2,1.25)
+\end{pspicture}
+\end{lstlisting}
+
+
+\begin{center}
+\psset{unit=1cm}
+\begin{pspicture}(-7,-1.5)(7,1.5)
+ \psaxes[trigLabels=true,xunit=\psPi]{->}(0,0)(-2.2,-1.5)(2.2,1.5)
+ \psplot[linecolor=red,linewidth=1.5pt]{-7}{7}{x RadtoDeg sin}
+\end{pspicture}
+\end{center}
+\begin{lstlisting}
+\begin{pspicture}(-7,-1.5)(7,1.5)
+ \psaxes[trigLabels=true,§\ON§xunit=\psPi§\OFF§]{->}(0,0)(-2.2,-1.5)(2.2,1.5)
+ \psplot[linecolor=red,linewidth=1.5pt]{-7}{7}{x RadtoDeg sin}
+\end{pspicture}
+\end{lstlisting}
+
+
+\begin{center}
+\psset{unit=1cm}
+\begin{pspicture}(-7,-1.5)(7,1.5)
+ \psaxes[trigLabels=true,
+ trigLabelBase=2,dx=\psPiH,xunit=\psPi]{->}(0,0)(-2.2,-1.5)(2.2,1.5)
+ \psplot[linecolor=red,linewidth=1.5pt]{-7}{7}{x RadtoDeg sin}
+\end{pspicture}
+\end{center}
+\begin{lstlisting}
+\begin{pspicture}(-7,-1.5)(7,1.5)
+ \psaxes[trigLabels=true,
+ trigLabelBase=2,dx=\psPiH,xunit=\psPi]{->}(0,0)(-2.2,-1.5)(2.2,1.5)
+ \psplot[linecolor=red,linewidth=1.5pt]{-7}{7}{x RadtoDeg sin}
\end{pspicture}
\end{lstlisting}