diff options
author | Karl Berry <karl@freefriends.org> | 2010-11-15 23:48:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-11-15 23:48:38 +0000 |
commit | 64334d6ae2213ccd2a115c5d22884f9465acb16c (patch) | |
tree | 2b08b3a9dba86972b8434385eee28ca2ee7121d9 /Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.tex | |
parent | 4a1168ec20c1ee90dc794d040a9d343bc533ab00 (diff) |
pst-plot (15nov10)
git-svn-id: svn://tug.org/texlive/trunk@20453 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.tex | 68 |
1 files changed, 66 insertions, 2 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 a82d58c6601..715e74c97c5 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,4 +1,4 @@ -%% $Id: pst-plot-doc.tex 369 2010-08-15 08:07:42Z herbert $ +%% $Id: pst-plot-doc.tex 401 2010-10-21 07:34:02Z herbert $ \documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings headexclude,footexclude,oneside,dvipsnames,svgnames]{pst-doc} \listfiles @@ -2266,7 +2266,7 @@ of all records with the plotstyle option \Lkeyval{curve}.\xLkeyword{nStep}\xLkey %-------------------------------------------------------------------------------------- -\subsection{Options \nxLkeyword{plotNo} and \nxLkeyword{plotNoMax}}\label{plotno} +\subsection{Options \nxLkeyword{plotNo}, \nxLkeyword{plotNoX}, and \nxLkeyword{plotNoMax}}\label{plotno} %-------------------------------------------------------------------------------------- By default the plot macros expect \verb+x|y+ data records, but when having data files with multiple values for y, like: @@ -2314,6 +2314,70 @@ without any modification to the data file: \end{pspicture} \end{LTXexample} +It is also possible to select another column for the $x$-value. Suppose we have +a data base with records like \verb+x y y x y+, then it is by default a record +with one $x$ value and four possible $y$ values. We still have to define +\Lkeyword{plotNoMax}=4. However, it is possible to select the forth value as +new $x$ value by setting \Lkeyword{plotNoX=4} (it is preset to 1). +Then the forth value is taken as $x$. The example uses the the following +data set. + +\begin{lstlisting}[style=syntax] +% X1 X2 Y1 Y2 + 2 55.1500 10.35 11.26 + 31 59.7167 11.06 11.11 + 34 65.7167 11.87 10.83 + 40 62.1833 11.59 11.19 + 45 56.0500 10.74 11.50 + 47 68.2667 12.65 11.11 + 52 69.7500 13.23 11.38 + 55 76.3333 14.28 11.22 + 59 75.4000 14.69 11.69 + 62 78.6000 15.25 11.64 + 66 69.3167 14.06 12.17 + 69 77.5500 15.24 11.79 + 73 70.8833 14.52 12.29 + 75 60.6167 13.10 12.97 + 79 68.3833 14.43 12.66 + 82 56.6833 12.05 12.75 + 87 95.1333 21.10 13.31 +\end{lstlisting} + + +\begin{filecontents*}{demo.txt} +% X1 X2 Y1 Y2 + 2 55.1500 10.35 11.26 + 31 59.7167 11.06 11.11 + 34 65.7167 11.87 10.83 + 40 62.1833 11.59 11.19 + 45 56.0500 10.74 11.50 + 47 68.2667 12.65 11.11 + 52 69.7500 13.23 11.38 + 55 76.3333 14.28 11.22 + 59 75.4000 14.69 11.69 + 62 78.6000 15.25 11.64 + 66 69.3167 14.06 12.17 + 69 77.5500 15.24 11.79 + 73 70.8833 14.52 12.29 + 75 60.6167 13.10 12.97 + 79 68.3833 14.43 12.66 + 82 56.6833 12.05 12.75 + 87 95.1333 21.10 13.31 +\end{filecontents*} + + +\begin{LTXexample}[pos=t,preset=\centering] +\readdata{\data}{demo.txt} +\psset{xAxisLabel={},yAxisLabel={},llx=-5mm} +\begin{psgraph}[axesstyle=frame,Dy=5,Dx=10,ticksize=5pt 0](0,0)(100,25){10cm}{8cm} +\psset{dotstyle=square,dotscale=1.5,linewidth=1.5pt} +\listplot[plotNoMax=3,plotNo=2,linecolor=red,plotstyle=dots]{\data} +\listplot[plotNoMax=3,plotNoX=2,plotNo=3,linecolor=blue,plotstyle=dots]{\data} +\end{psgraph} +\end{LTXexample} + + + \clearpage |