diff options
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.tex | 53 |
1 files changed, 44 insertions, 9 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 54e44880d68..05eb13ff4f3 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 @@ -1,4 +1,4 @@ -%% $Id: pstricks-add-doc.tex 1142 2020-02-12 19:07:50Z herbert $ +%% $Id: pstricks-add-doc.tex 358 2021-12-25 09:13:46Z herbert $ \RequirePackage{pdfmanagement-testphase} \DeclareDocumentMetadata{} % @@ -1552,6 +1552,41 @@ the following example was created by Patrice Mégret. \clearpage %-------------------------------------------------------------------------------------- +\section{\nxLcs{psColorLine}} +%-------------------------------------------------------------------------------------- +This macro plots a streight line between two given points and two colors. +\begin{lstlisting}[style=syntax] +\psColorLine[<OptArgs>](<P0>)(<P1>) +\end{lstlisting} + +\begin{LTXexample}[width=5.5cm] +\begin{pspicture}[linewidth=12pt,showgrid](-2.5,-2.5)(2.5,2.5) +\psColorLine(0,-2.5)(0,2.5) +\psColorLine[startColor=cyan,endColor=magenta](-2.5,0)(2.5,0) +\psColorLine[startColor=blue,endColor=green]{->}(-2.5,2.5)(2.5,-2.5) +\psColorLine[startColor=red,endColor=blue]{<->}(-2.5,-2.5)(2.5,2.5) +\end{pspicture} +\end{LTXexample} + + +\begin{LTXexample}[width=5.5cm] +\begin{pspicture}[linewidth=12pt,showgrid,colorsteps=5, + strokeopacity=0.5](-2.5,-2.5)(2.5,2.5) +\psColorLine(0,-2.5)(0,2.5) +\psColorLine[startColor=cyan,endColor=magenta](-2.5,0)(2.5,0) +\psColorLine[startColor=blue,endColor=green]{->}(-2.5,2.5)(2.5,-2.5) +\psColorLine[startColor=red,endColor=blue]{<->}(-2.5,-2.5)(2.5,2.5) +\end{pspicture} +\end{LTXexample} + + + + + + +\clearpage + +%-------------------------------------------------------------------------------------- \section{\nxLcs{psIntersectionPoint}} %-------------------------------------------------------------------------------------- This macro calculates the intersection point of two lines, given by the four coordinates. @@ -3937,16 +3972,16 @@ is the first plotted line ($y=1$). With the option \psscalebox{0.6}{% \begin{pspicture}(-0.5,-0.75)(11,11) \psaxes{->}(11,11) - \psMatrixPlot[dotsize=0.7cm,dotstyle=square*,linecolor=magenta]% + \psMatrixPlot[dotsize=0.95cm,dotstyle=square*,linecolor=magenta]% {10}{10}{data/matrix.data} - \psMatrixPlot[dotsize=.4cm,dotstyle=o,ChangeOrder]{10}{10}{data/matrix.data} + \psMatrixPlot[dotsize=.7cm,dotstyle=o,ChangeOrder]{10}{10}{data/matrix.data} \end{pspicture}}\quad \psscalebox{0.6}{% \begin{pspicture}(-0.5,-0.75)(11,11) \psaxes[ticksize=-5pt 0]{->}(11,11) - \psMatrixPlot[dotsize=0.7cm,dotstyle=square*,linecolor=magenta,XYoffset=-0.5]% + \psMatrixPlot[dotsize=0.95cm,dotstyle=square*,linecolor=magenta,XYoffset=-0.5]% {10}{10}{data/matrix.data} - \psMatrixPlot[dotsize=.4cm,dotstyle=o,ChangeOrder,XYoffset=-0.5]{10}{10}{data/matrix.data} + \psMatrixPlot[dotsize=.7cm,dotstyle=o,ChangeOrder,XYoffset=-0.5]{10}{10}{data/matrix.data} \end{pspicture}} \end{center} @@ -3954,16 +3989,16 @@ is the first plotted line ($y=1$). With the option \psscalebox{0.6}{% \begin{pspicture}(-0.5,-0.75)(11,11) \psaxes{->}(11,11) - \psMatrixPlot[dotsize=0.7cm,dotstyle=square*,linecolor=magenta]% + \psMatrixPlot[dotsize=0.95cm,dotstyle=square*,linecolor=magenta]% {10}{10}{data/matrix.data} - \psMatrixPlot[dotsize=.4cm,dotstyle=o,ChangeOrder]{10}{10}{data/matrix.data} + \psMatrixPlot[dotsize=.7cm,dotstyle=o,ChangeOrder]{10}{10}{data/matrix.data} \end{pspicture}}\quad \psscalebox{0.6}{% \begin{pspicture}(-0.5,-0.75)(11,11) \psaxes[ticksize=-5pt 0]{->}(11,11) - \psMatrixPlot[dotsize=0.7cm,dotstyle=square*,linecolor=magenta,XYoffset=-0.5]% + \psMatrixPlot[dotsize=0.95cm,dotstyle=square*,linecolor=magenta,XYoffset=-0.5]% {10}{10}{data/matrix.data} - \psMatrixPlot[dotsize=.4cm,dotstyle=o,ChangeOrder,XYoffset=-0.5]{10}{10}{data/matrix.data} + \psMatrixPlot[dotsize=.7cm,dotstyle=o,ChangeOrder,XYoffset=-0.5]{10}{10}{data/matrix.data} \end{pspicture}} \end{lstlisting} |