summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-01-20 21:39:17 +0000
committerKarl Berry <karl@freefriends.org>2011-01-20 21:39:17 +0000
commitc8959017f6539e46109db2487682b6db54edce83 (patch)
tree3ff8208caa165216247147f82984546b83b21b14 /Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.tex
parente31bea88bc554767eb19f065d1d36c74509a1fe4 (diff)
pst-plot (20jan11)
git-svn-id: svn://tug.org/texlive/trunk@21134 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.tex57
1 files changed, 32 insertions, 25 deletions
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 4fdbba4048b..69243ee6a49 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
@@ -1,10 +1,10 @@
-%% $Id: pst-plot-doc.tex 432 2010-12-14 08:01:58Z herbert $
\documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings
headexclude,footexclude,oneside,dvipsnames,svgnames]{pst-doc}
\listfiles
\usepackage[utf8]{inputenc}
\usepackage{pst-node,pst-plot}
+%\usepackage{pstricks-gvb}
\SpecialCoor
\let\pstFV\fileversion
\let\belowcaptionskip\abovecaptionskip
@@ -46,6 +46,7 @@ documentation here: \url{http://mirrors.ctan.org/graphics/pstricks/base/doc/}.
\vfill
\noindent
Thanks to:
+Guillaume van Baalen;
Stefano Baroni;
Martin Chicoine;
Gerry Coombes;
@@ -829,7 +830,8 @@ redefinition, then do it for \Lcs{pst@@@hlabel} and
\Lkeyword{ylabelPos} & \Lkeyval{left}|\Lkeyval{axis}|\Lkeyval{right}
& \Lkeyval{left} & \pageref{labelpos}\\
\Lkeyword{ylogBase} & integer or empty & \{\} & \pageref{ylogbase}\\
-\Lkeyword{yMaxValue} & real & -1 & \pageref{yMaxValue}\\
+\Lkeyword{yMaxValue} & real & 1.e30 & \pageref{yMaxValue}\\
+\Lkeyword{yMinValue} & real & -1.e30 & \pageref{yMaxValue}\\
\Lkeyword{yStart} & integer or empty & \{\} & \pageref{ystartend}\\
\Lkeyword{yStep} & integer & 0 & \pageref{nxstep}\\
\Lkeyword{ysubtickcolor} & <color> & darkgray & \pageref{tickcolor}\\
@@ -861,23 +863,28 @@ redefinition, then do it for \Lcs{pst@@@hlabel} and
%------------------------------------------------------------------------------------
-\subsection{Option \nxLkeyword{yMaxValue}}\label{yMaxValue}
+\subsection{Option \nxLkeyword{yMaxValue} and \nxLkeyword{yMinValue}}\label{yMaxValue}
%------------------------------------------------------------------------------------
-With the new optional argument \Lkeyword{yMaxValue} one can control the behaviour
-of discontinued functions, like the tangent function. If \Lkeyword{yMaxValue} is set
-to a negative value, then the internal if clause is disabled, the function is plotted
-in the usual way.
+With the new optional arguments \Lkeyword{yMaxValue} and
+\Lkeyword{yMinValue} one can control the behaviour of
+discontinuous functions, like the tangent function. The
+code does not check that \Lkeyword{yMaxValue} is bigger than
+\Lkeyword{yMinValue} (if not, the function is {\em not} plotted at all).
+All four possibilities can be used, i.e. one, both or none of the
+two arguments \Lkeyword{yMaxValue} and \Lkeyword{yMinValue} can
+be set.
+
\begingroup
-\begin{pspicture}(-6.5,-7)(6.5,7.5)
+\begin{pspicture}(-6.5,-6)(6.5,7.5)
\multido{\rA=-4.71239+\psPiH}{7}{%
- \psline[linecolor=black!20,linestyle=dashed](\rA,-6.5)(\rA,6.5)}
-\psset{algebraic=true,plotpoints=200,plotstyle=line}
+ \psline[linecolor=black!20,linestyle=dashed](\rA,-5.5)(\rA,6.5)}
+\psset{algebraic=true,plotpoints=10000,plotstyle=line}
\psaxes[trigLabelBase=2,dx=\psPiH,xunit=\psPi,trigLabels]
- {->}(0,0)(-1.7,-6.5)(1.77,6.5)[$x$,0][$y$,-90]
-\psclip{\psframe[linestyle=none](-4.55,-6.5)(5.55,6.5)}
- \psplot[yMaxValue=10,linewidth=2pt,linecolor=red]{-4.55}{4.55}{(x)/(sin(2*x))}
+ {->}(0,0)(-1.7,-5.5)(1.77,6.5)[$x$,0][$y$,-90]
+\psclip{\psframe[linestyle=none](-4.55,-5.5)(5.55,6.5)}
+ \psplot[yMaxValue=6,yMinValue=-5,linewidth=2pt,linecolor=red]{-4.55}{4.55}{(x)/(sin(2*x))}
\endpsclip
\psplot[linestyle=dashed,linecolor=blue!30]{-4.8}{4.8}{x}
\psplot[linestyle=dashed,linecolor=blue!30]{-4.8}{4.8}{-x}
@@ -886,14 +893,14 @@ in the usual way.
\endgroup
\begin{lstlisting}
-\begin{pspicture}(-6.5,-7)(6.5,7.5)
+\begin{pspicture}(-6.5,-6)(6.5,7.5)
\multido{\rA=-4.71239+\psPiH}{7}{%
- \psline[linecolor=black!20,linestyle=dashed](\rA,-6.5)(\rA,6.5)}
-\psset{algebraic=true,plotpoints=200,plotstyle=line}
+ \psline[linecolor=black!20,linestyle=dashed](\rA,-5.5)(\rA,6.5)}
+\psset{algebraic=true,plotpoints=10000,plotstyle=line}
\psaxes[trigLabelBase=2,dx=\psPiH,xunit=\psPi,trigLabels]
- {->}(0,0)(-1.7,-6.5)(1.77,6.5)[$x$,0][$y$,-90]
-\psclip{\psframe[linestyle=none](-4.55,-6.5)(5.55,6.5)}
- \psplot[?\ON?yMaxValue=10?\OFF?,linewidth=2pt,linecolor=red]{-4.55}{4.55}{(x)/(sin(2*x))}
+ {->}(0,0)(-1.7,-5.5)(1.77,6.5)[$x$,0][$y$,-90]
+\psclip{\psframe[linestyle=none](-4.55,-5.5)(5.55,6.5)}
+ \psplot[?\ON?yMaxValue=6,yMinValue=-5?\OFF?,linewidth=2pt,linecolor=red]{-4.55}{4.55}{(x)/(sin(2*x))}
\endpsclip
\psplot[linestyle=dashed,linecolor=blue!30]{-4.8}{4.8}{x}
\psplot[linestyle=dashed,linecolor=blue!30]{-4.8}{4.8}{-x}
@@ -903,21 +910,21 @@ in the usual way.
\begingroup
-\begin{pspicture}(-6.5,-7)(6.5,7.5)
+\begin{pspicture}(-6.5,-4)(6.5,7.5)
\psaxes[trigLabelBase=2,dx=\psPiH,
- xunit=\psPi,trigLabels]{->}(0,0)(-1.7,-6.5)(1.77,6.5)[$x$,0][$y$,90]
+ xunit=\psPi,trigLabels]{->}(0,0)(-1.7,-3.5)(1.77,6.5)[$x$,0][$y$,90]
\psset{algebraic=true}
-\psplot[yMaxValue=6,linewidth=1.6pt,plotpoints=2000,
+\psplot[yMaxValue=6,yMinValue=-3,linewidth=1.6pt,plotpoints=2000,
linecolor=red]{-4.55}{4.55}{tan(x)}
\end{pspicture}
\endgroup
\begin{lstlisting}
-\begin{pspicture}(-6.5,-7)(6.5,7.5)
+\begin{pspicture}(-6.5,-4)(6.5,7.5)
\psaxes[trigLabelBase=2,dx=\psPiH,xunit=\psPi,trigLabels]%
- {->}(0,0)(-1.7,-6.5)(1.77,6.5)[$x$,0][$y$,90]
+ {->}(0,0)(-1.7,-3.5)(1.77,6.5)[$x$,0][$y$,90]
\psset{algebraic=true}
-\psplot[?\ON?yMaxValue=6?\OFF?,linewidth=1.6pt,plotpoints=2000,
+\psplot[?\ON?yMaxValue=6,yMinValue=-3?\OFF?,linewidth=1.6pt,plotpoints=2000,
linecolor=red]{-4.55}{4.55}{tan(x)}
\end{pspicture}
\end{lstlisting}