summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-05-10 21:26:22 +0000
committerKarl Berry <karl@freefriends.org>2016-05-10 21:26:22 +0000
commitd2cbd5d0742f30305d0debc84b932d2064d890c7 (patch)
tree3a0bb3e2ac6a86a2bd7faa6077f897d8261ead7f /Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.tex
parentb656cfa10e3f0e35eb31d350548a1c2c325314b6 (diff)
pst-plot (10may16)
git-svn-id: svn://tug.org/texlive/trunk@41006 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.tex303
1 files changed, 128 insertions, 175 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 6a7e4d2b69c..74f1e8bcb8c 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,15 +1,12 @@
-% $Id: pst-plot-doc.tex 83 2014-08-23 15:04:57Z herbert $
+% $Id: pst-plot-doc.tex 133 2014-11-03 09:10:47Z herbert $
\documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings
headexclude,footexclude,oneside,dvipsnames,svgnames]{pst-doc}
\listfiles
-
\usepackage[utf8]{inputenc}
\usepackage{pst-ode,
pst-node,
pst-plot
}
-%\usepackage{pstricks-gvb}
-\SpecialCoor
\let\pstFV\fileversion
\let\belowcaptionskip\abovecaptionskip
%
@@ -25,8 +22,6 @@
escapechar=?}
\def\textat{\char064}%
-\input{\jobname.dat}
-
\begin{document}
\title{\texttt{pst-plot}\\plotting data and functions \\\small v.\pstFV}
\docauthor{Herbert Vo\ss}
@@ -53,8 +48,8 @@ Martin Chicoine;
Gerry Coombes;
Ulrich Dirr;
Christophe Fourey;
-Hubert G\"a\ss lein;
-J\"urgen Gilg;
+Hubert Gäßlein;
+Jürgen Gilg;
Denis Girou;
Peter Hutnick;
Christophe Jorssen;
@@ -63,11 +58,11 @@ Alexander Kornrumpf;
Manuel Luque;
Patrice Mégret;
Jens-Uwe Morawski;
-Tobias N\"ahring;
+Tobias Nähring;
Rolf Niepraschk;
Martin Paech;
Alan Ristow;
-Christine R\"omer;
+Christine Römer;
Arnaud Schmittbuhl
\end{abstract}
@@ -152,8 +147,8 @@ the data in \Lcs{fileplot} (with \Lcs{savedata}, the data must be delimited by
\verb|[ ]|, and with \Lcs{readdata}, bracketing the data with \verb|[ ]| speeds things
up). You can concatenate and reuse lists, as in
\begin{lstlisting}[style=syntax]
-\readdata{\foo}{foo.data}
-\readdata{\bar}{bar.data}
+\readdata{\foo}{data/foo.data}
+\readdata{\bar}{data/bar.data}
\dataplot{\foo\bar}
\dataplot[origin={0,1}]{\bar}
\end{lstlisting}
@@ -383,13 +378,9 @@ The next example uses an external file for the data, which must first be read by
macro \Lcs{readdata}. The next one creates a horizontal boxplot by rotating
the output with $-90$ degrees.
-\begin{filecontents}{boxplot.data}
-2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32
-\end{filecontents}
-
%\begin{LTXexample}[pos=t]
-\readdata{\data}{boxplot.data}
+\readdata{\data}{data/boxplot.data}
\begin{pspicture}(-1,-1)(2,10)
\psset{yunit=0.25,fillstyle=solid}
\savedata{\data}[2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32]
@@ -406,7 +397,7 @@ the output with $-90$ degrees.
%\end{LTXexample}
\begin{lstlisting}
-\readdata{\data}{boxplot.data}
+\readdata{\data}{data/boxplot.data}
\begin{pspicture}(-1,-1)(2,10)
\psset{yunit=0.25,fillstyle=solid}
\savedata{\data}[2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32]
@@ -426,38 +417,16 @@ the output with $-90$ degrees.
It is also possible to read a data column from an external file:
-\begin{filecontents*}{Data.dat}
-98, 32
-20, 11
-79, 26
-14, 9
-23, 22
-21, 10
-58, 25
-13, 8
-19, 5
-53, 29
-41, 37
-11, 2
-83, 25
-71, 51
-10, 7
-89, 17
-10, 6
- , 41
- , 75
-\end{filecontents*}
-
\begin{pspicture}(-1,-1)(5,6)
\psaxes[axesstyle=frame,dy=1cm,Dy=20,ticksize=4pt 0](0,0)(4,5)
-\psreadDataColumn{1}{,}{\data}{Data.dat}
+\psreadDataColumn{1}{,}{\data}{data/Data.dat}
\rput(1,0){\psBoxplot[fillcolor=red!40,yunit=0.05]{\data}}
-\psreadDataColumn{2}{,}{\data}{Data.dat}
+\psreadDataColumn{2}{,}{\data}{data/Data.dat}
\rput(3,0){\psBoxplot[fillcolor=blue!40,yunit=0.05]{\data}}
\end{pspicture}
\begin{lstlisting}
-\begin{filecontents*}{Data.dat}
+\begin{filecontents*}{data/Data.dat}
98, 32
20, 11
79, 26
@@ -481,9 +450,9 @@ It is also possible to read a data column from an external file:
\begin{pspicture}(-1,-1)(5,6)
\psaxes[axesstyle=frame,dy=1cm,Dy=20,ticksize=4pt 0](0,0)(4,5)
-\psreadDataColumn{1}{,}{\data}{Data.dat}
+\psreadDataColumn{1}{,}{\data}{data/Data.dat}
\rput(1,0){\psBoxplot[fillcolor=red!40,yunit=0.05]{\data}}
-\psreadDataColumn{2}{,}{\data}{Data.dat}
+\psreadDataColumn{2}{,}{\data}{data/Data.dat}
\rput(3,0){\psBoxplot[fillcolor=blue!40,yunit=0.05]{\data}}
\end{pspicture}
\end{lstlisting}
@@ -493,36 +462,39 @@ With the optional argument \Lkeyword{postAction} one can modify the $y$ value of
an output with a vertical axis in logarithm scaling:
-\begin{pspicture}(-1,-3)(9,5)
+\begin{pspicture}(-1,-3)(6,5)
\psset{fillstyle=solid}
+\iffalse
\psaxes[ylogBase=10,Oy=-2,logLines=y,ticksize=0 4pt, subticks=5](1,-2)(9,4)
-\rput(3,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=Log]{
+\rput(3,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=1 gt {Log} if]{
0.09 0.44 0.12 0.06 0.32 0.23 0.44 0.02 0.15 0.18 0 0.29 0 0.11 0.26 0.11
0 0.45 0.04 0.14 0.03 0.12 0.14 0.31 0.06 0.06 0.11 0.12 0.12 0.12 0.13
0.01 0.40 0.01 0.03 0.17 0 0.10 0.15 0.16 0.06 0.10 0.01 0.60 0.26 0.11
0.15 0.22 0.14 0.01 }}
- \rput(4,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=Log]{
+ \rput(4,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=1 gt {Log} if]{
0.07 0.49 0.34 0.20 0.02 1.08 6.83 0.31 0.54 0.02 0.29 0.18 0.60 0.09 0.61
1.37 0.26 0.03 2.30 0.09 3.15 0.13 0.29 0.27 1.30 0.73 0.63 0.24 10.03 0
0.26 0.18 3.29 2.43 1.94 0.22 0.23 0.60 1.69 0.35 3.96 0.56 9.90 0.10 0.43
0.22 0.26 0.31 0.29 0.79 }}
- \rput(5,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=Log]{
+\fi
+\psaxes[ylogBase=10,Oy=-2,Ox=1,logLines=y,ticksize=0 4pt, subticks=5](1,-2)(6,4)
+ \rput(2,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=Log]{
12.70 1.34 0.68 0.51 1.77 0.04 3.79 287.05 1.35 5.41 15.56 3.13 0.91 7.48
2.40 1.04 3.53 0.58 31.71 7.89 4.90 2.61 0.89 0.03 3.78 8.11 4.82 1.02 5.57
8.85 0.15 17.59 0.21 8.10 2.15 3.43 6.44 1.65 6.83 23.54 0.52 1.47 0.75
3.54 3.59 5.56 0.33 8.58 1.90 0.78 }}
- \rput(6,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=Log]{
+ \rput(3,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=Log]{
55.72 14.91 14.95 6.01 6.53 88.30 281.50 40.15 13.41 0.91 1.65 44.32 13.41
7.33 3.51 3.44 70.40 0.75 58.20 54.88 26.45 33.76 0.70 0.05 0.29 57.12
14.30 31.11 18.56 0.48 21.33 1.15 2.22 3.88 1.78 151.25 7.77 137.92 0.50
3.01 1.99 23.18 119.59 17.50 15.87 13.63 21.85 23.53 68.72 2.90 }}
- \rput(7,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=Log]{
+ \rput(4,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=Log]{
1.19 1.94 13.40 7.40 267.30 5.94 11.05 6.51 2.94 5.45 5.24 231 4.48 0.68
311.29 77.47 621.20 139.08 1933.59 2.52 100.96 11.02 153.43 26.67 83.84
4.31 106.34 15.90 1118.59 9.49 131.48 48.92 5.85 3.74 1.05 32.03 5.69
45.10 12.43 238.56 28.75 1.01 119.29 12.09 31.18 16.60 29.67 138.55
17.42 0.83 }}
- \rput(8,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=Log]{
+ \rput(5,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=Log]{
2077.45 762.10 469 143.60 685 3600 20.20 249.60 269 0.30 0.20 779.40 1.80
146.80 1.30 32.50 137 2016.40 2.30 33.90 801.60 2.20 646.90 3600 1184 627
500.50 238.30 477.40 3600 17.80 1726.80 2 316.70 174.50 2802.70 335.30
@@ -532,36 +504,26 @@ an output with a vertical axis in logarithm scaling:
\begin{lstlisting}
-\begin{pspicture}(-1,-3)(9,5)
+\begin{pspicture}(-1,-3)(6,5)
\psset{fillstyle=solid}
-\psaxes[ylogBase=10,Oy=-2,logLines=y,ticksize=0 4pt, subticks=5](1,-2)(9,4)
-\rput(3,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=Log]{
- 0.09 0.44 0.12 0.06 0.32 0.23 0.44 0.02 0.15 0.18 0 0.29 0 0.11 0.26 0.11
- 0 0.45 0.04 0.14 0.03 0.12 0.14 0.31 0.06 0.06 0.11 0.12 0.12 0.12 0.13
- 0.01 0.40 0.01 0.03 0.17 0 0.10 0.15 0.16 0.06 0.10 0.01 0.60 0.26 0.11
- 0.15 0.22 0.14 0.01 }}
- \rput(4,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=Log]{
-0.07 0.49 0.34 0.20 0.02 1.08 6.83 0.31 0.54 0.02 0.29 0.18 0.60 0.09 0.61
-1.37 0.26 0.03 2.30 0.09 3.15 0.13 0.29 0.27 1.30 0.73 0.63 0.24 10.03 0
-0.26 0.18 3.29 2.43 1.94 0.22 0.23 0.60 1.69 0.35 3.96 0.56 9.90 0.10 0.43
-0.22 0.26 0.31 0.29 0.79 }}
- \rput(5,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=Log]{
+\psaxes[ylogBase=10,Oy=-2,Ox=1,logLines=y,ticksize=0 4pt, subticks=5](1,-2)(6,4)
+ \rput(2,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=Log]{
12.70 1.34 0.68 0.51 1.77 0.04 3.79 287.05 1.35 5.41 15.56 3.13 0.91 7.48
2.40 1.04 3.53 0.58 31.71 7.89 4.90 2.61 0.89 0.03 3.78 8.11 4.82 1.02 5.57
8.85 0.15 17.59 0.21 8.10 2.15 3.43 6.44 1.65 6.83 23.54 0.52 1.47 0.75
3.54 3.59 5.56 0.33 8.58 1.90 0.78 }}
- \rput(6,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=Log]{
+ \rput(3,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=Log]{
55.72 14.91 14.95 6.01 6.53 88.30 281.50 40.15 13.41 0.91 1.65 44.32 13.41
7.33 3.51 3.44 70.40 0.75 58.20 54.88 26.45 33.76 0.70 0.05 0.29 57.12
14.30 31.11 18.56 0.48 21.33 1.15 2.22 3.88 1.78 151.25 7.77 137.92 0.50
3.01 1.99 23.18 119.59 17.50 15.87 13.63 21.85 23.53 68.72 2.90 }}
- \rput(7,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=Log]{
+ \rput(4,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=Log]{
1.19 1.94 13.40 7.40 267.30 5.94 11.05 6.51 2.94 5.45 5.24 231 4.48 0.68
311.29 77.47 621.20 139.08 1933.59 2.52 100.96 11.02 153.43 26.67 83.84
4.31 106.34 15.90 1118.59 9.49 131.48 48.92 5.85 3.74 1.05 32.03 5.69
45.10 12.43 238.56 28.75 1.01 119.29 12.09 31.18 16.60 29.67 138.55
17.42 0.83 }}
- \rput(8,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=Log]{
+ \rput(5,0){\psBoxplot[fillcolor=red!30,barwidth=0.9cm,postAction=Log]{
2077.45 762.10 469 143.60 685 3600 20.20 249.60 269 0.30 0.20 779.40 1.80
146.80 1.30 32.50 137 2016.40 2.30 33.90 801.60 2.20 646.90 3600 1184 627
500.50 238.30 477.40 3600 17.80 1726.80 2 316.70 174.50 2802.70 335.30
@@ -622,7 +584,7 @@ as for the x-axis.
\psset{unit=1cm}
\begin{center}
-\readdata{\data}{demo1.data}
+\readdata{\data}{data/demo1.data}
\pstScalePoints(1,1e-08){}{}% (x,y){additional x operator}{y op}
\psset{llx=-1cm,lly=-1cm}
\begin{psgraph}[axesstyle=frame,xticksize=0 7.59,yticksize=0 25,%
@@ -633,7 +595,7 @@ as for the x-axis.
\end{center}
\begin{lstlisting}
-\readdata{\data}{demo1.data}
+\readdata{\data}{data/demo1.data}
\pstScalePoints(1,1e-08){}{}% (x,y){additional x operator}{y op}
\psset{llx=-1cm,lly=-1cm}
?\ON?\begin{psgraph}?\OFF?[axesstyle=frame,xticksize=0 7.59,yticksize=0 25,%
@@ -663,7 +625,7 @@ In the following example, the y unit gets the same value as the one for the x-ax
%-----------------------------------------------------------------------------
\begin{center}
-\readdata{\data}{demo1.data}
+\readdata{\data}{data/demo1.data}
\psset{xAxisLabel=x-Axis,yAxisLabel=y-Axis,llx=-.5cm,lly=-1cm,lly=-1cm,ury=0.5cm,
xAxisLabelPos={c,-1},yAxisLabelPos={-7,c}}
\pstScalePoints(1,0.00000001){}{}
@@ -674,7 +636,7 @@ In the following example, the y unit gets the same value as the one for the x-ax
\end{center}
\begin{lstlisting}
-\readdata{\data}{demo1.data}
+\readdata{\data}{data/demo1.data}
\psset{?\ON?xAxisLabel?\OFF?=x-Axis,?\ON?yAxisLabel?\OFF?=y-Axis,llx=-.5cm,lly=-1cm,ury=0.5cm,
?\ON?xAxisLabelPos?\OFF?={c,-1},?\ON?yAxisLabelPos?\OFF?={-7,c}}
\pstScalePoints(1,0.00000001){}{}
@@ -687,7 +649,7 @@ In the following example, the y unit gets the same value as the one for the x-ax
%-----------------------------------------------------------------------------
\begin{LTXexample}[pos=t,preset=\centering]
-\readdata{\data}{demo1.data}
+\readdata{\data}{data/demo1.data}
\psset{llx=-0.5cm,lly=-1cm}
\pstScalePoints(1,0.000001){}{}
\psgraph[arrows=->,Dx=5,dy=200\psyunit,Dy=200,subticks=5,ticksize=-10pt 0,
@@ -700,7 +662,7 @@ In the following example, the y unit gets the same value as the one for the x-ax
%-----------------------------------------------------------------------------
\begin{center}
-\readdata{\data}{demo1.data}
+\readdata{\data}{data/demo1.data}
\pstScalePoints(1,0.2){}{log}
\psset{lly=-0.75cm}
\psgraph[ylogBase=10,Dx=5,Dy=1,subticks=5](0,0)(25,2){12cm}{4cm}
@@ -712,7 +674,7 @@ In the following example, the y unit gets the same value as the one for the x-ax
\begin{lstlisting}
-\readdata{\data}{demo1.data}
+\readdata{\data}{data/demo1.data}
\pstScalePoints(1,0.2){}{log}
\psset{lly=-0.75cm}
\psgraph[?\ON?ylogBase?\OFF?=10,Dx=5,Dy=1,subticks=5](0,0)(25,2){12cm}{4cm}
@@ -723,7 +685,7 @@ In the following example, the y unit gets the same value as the one for the x-ax
%-----------------------------------------------------------------------------
\begin{LTXexample}[pos=t,preset=\centering]
-\readdata{\data}{demo0.data}
+\readdata{\data}{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,%
@@ -738,7 +700,7 @@ In the following example, the y unit gets the same value as the one for the x-ax
\begin{LTXexample}[pos=t,preset=\centering]
\psset{lly=-0.75cm,ury=0.5cm}
-\readdata{\data}{demo0.data}
+\readdata{\data}{data/demo0.data}
\pstScalePoints(1,1){}{log}
\psgraph[arrows=->,Dx=0.5,ylogBase=10,Oy=-1,subticks=4](0,-3)(3,1){6cm}{3cm}
\listplot[linecolor=red,linewidth=2pt,showpoints=true,plotstyle=LineToXAxis]{\data}
@@ -749,8 +711,8 @@ In the following example, the y unit gets the same value as the one for the x-ax
%-----------------------------------------------------------------------------
\begin{center}
-\readdata{\data}{demo2.data}%
-\readdata{\dataII}{demo3.data}%
+\readdata{\data}{data/demo2.data}%
+\readdata{\dataII}{data/demo3.data}%
\pstScalePoints(1,1){1989 sub}{}
\psset{llx=-0.5cm,lly=-1cm, xAxisLabel=Year,yAxisLabel=Whatever,%
xAxisLabelPos={c,-0.4in},yAxisLabelPos={-0.4in,c}}
@@ -762,8 +724,8 @@ In the following example, the y unit gets the same value as the one for the x-ax
\end{center}
\begin{lstlisting}
-\readdata{\data}{demo2.data}%
-\readdata{\dataII}{demo3.data}%
+\readdata{\data}{data/demo2.data}%
+\readdata{\dataII}{data/demo3.data}%
\pstScalePoints(1,1){1989 sub}{}
\psset{llx=-0.5cm,lly=-1cm, ?\ON?xAxisLabel?\OFF?=Year,?\ON?yAxisLabel?\OFF?=Whatever,%
?\ON?xAxisLabelPos?\OFF?={c,-0.4in},?\ON?yAxisLabelPos?\OFF?={-0.4in,c}}
@@ -777,8 +739,8 @@ In the following example, the y unit gets the same value as the one for the x-ax
%\begin{LTXexample}[pos=t,preset=\centering]
\begin{center}
-\readdata{\data}{demo2.data}%
-\readdata{\dataII}{demo3.data}%
+\readdata{\data}{data/demo2.data}%
+\readdata{\dataII}{data/demo3.data}%
\psset{llx=-0.5cm,lly=-0.75cm,plotstyle=LineToXAxis}
\pstScalePoints(1,1){1989 sub}{2 sub}
\begin{psgraph}[axesstyle=frame,Dx=2,Ox=1989,Oy=2,subticks=2](0,0)(12,4){6in}{3in}
@@ -790,8 +752,8 @@ In the following example, the y unit gets the same value as the one for the x-ax
%\end{LTXexample}
\begin{lstlisting}
-\readdata{\data}{demo2.data}%
-\readdata{\dataII}{demo3.data}%
+\readdata{\data}{data/demo2.data}%
+\readdata{\dataII}{data/demo3.data}%
\psset{llx=-0.5cm,lly=-0.75cm,plotstyle=LineToXAxis}
\pstScalePoints(1,1){1989 sub}{2 sub}
\begin{psgraph}[axesstyle=frame,Dx=2,Ox=1989,Oy=2,subticks=2](0,0)(12,4){6in}{3in}
@@ -885,8 +847,8 @@ can be outside of the visible \Lenv{pspicture} environment.
\medskip
\begin{center}
-\readdata{\data}{demo2.data}%
-\readdata{\dataII}{demo3.data}%
+\readdata{\data}{data/demo2.data}%
+\readdata{\dataII}{data/demo3.data}%
\psset{llx=-1cm,lly=-1.25cm,urx=0.5cm,ury=0.1in,xAxisLabel=Year,%
yAxisLabel=Whatever,xAxisLabelPos={c,-0.4in},%
yAxisLabelPos={-0.4in,c}}
@@ -902,8 +864,8 @@ can be outside of the visible \Lenv{pspicture} environment.
\begin{lstlisting}
-\readdata{\data}{demo2.data}%
-\readdata{\dataII}{demo3.data}%
+\readdata{\data}{data/demo2.data}%
+\readdata{\dataII}{data/demo3.data}%
\psset{llx=-1cm,lly=-1.25cm,urx=0.5cm,ury=0.1in,xAxisLabel=Year,%
yAxisLabel=Whatever,xAxisLabelPos={c,-0.4in},%
yAxisLabelPos={-0.4in,c}}
@@ -930,8 +892,8 @@ The legend has to be defined \emph{before} the environment \Lenv{psgraph}.
\medskip
\begin{center}
-\readdata{\data}{demo2.data}%
-\readdata{\dataII}{demo3.data}%
+\readdata{\data}{data/demo2.data}%
+\readdata{\dataII}{data/demo3.data}%
\psset{llx=-1cm,lly=-1.25cm,urx=0.5cm,ury=0.1in,xAxisLabel=Year,%
yAxisLabel=Whatever,xAxisLabelPos={c,-0.4in},%
yAxisLabelPos={-0.4in,c}}
@@ -948,8 +910,8 @@ The legend has to be defined \emph{before} the environment \Lenv{psgraph}.
\begin{lstlisting}
-\readdata{\data}{demo2.data}%
-\readdata{\dataII}{demo3.data}%
+\readdata{\data}{data/demo2.data}%
+\readdata{\dataII}{data/demo3.data}%
\psset{llx=-1cm,lly=-1.25cm,urx=0.5cm,ury=0.1in,xAxisLabel=Year,%
yAxisLabel=Whatever,xAxisLabelPos={c,-0.4in},%
yAxisLabelPos={-0.4in,c}}
@@ -986,8 +948,8 @@ The macro \Lcs{psframebox} uses the style \Lkeyval{legendstyle} which is preset
\medskip
\begin{center}
-\readdata{\data}{demo2.data}%
-\readdata{\dataII}{demo3.data}%
+\readdata{\data}{data/demo2.data}%
+\readdata{\dataII}{data/demo3.data}%
\psset{llx=-1cm,lly=-1.25cm,urx=0.5cm,ury=0.1in,xAxisLabel=Year,%
yAxisLabel=Whatever,xAxisLabelPos={c,-0.4in},%
yAxisLabelPos={-0.4in,c}}
@@ -1005,8 +967,8 @@ The macro \Lcs{psframebox} uses the style \Lkeyval{legendstyle} which is preset
\begin{lstlisting}
-\readdata{\data}{demo2.data}%
-\readdata{\dataII}{demo3.data}%
+\readdata{\data}{data/demo2.data}%
+\readdata{\dataII}{data/demo3.data}%
\psset{llx=-1cm,lly=-1.25cm,urx=0.5cm,ury=0.1in,xAxisLabel=Year,%
yAxisLabel=Whatever,xAxisLabelPos={c,-0.4in},%
yAxisLabelPos={-0.4in,c}}
@@ -1127,6 +1089,8 @@ redefinition, then do it for \Lcs{pst@@@hlabel} and
& \pageref{values}\\
\Lkeyword{decimalSeparator} & char & . & \pageref{comma}\\ %ok
\Lkeyword{fontscale} & real & 10 & \pageref{values}\\
+\Lkeyword{fractionLabelBase} & integer & 0 & \pageref{fraclabels}\\
+\Lkeyword{fractionLabels} & boolean & \false & \pageref{fraclabels}\\
\Lkeyword{ignoreLines} & integer & 0 & \pageref{ignorelines}\\
\Lkeyword{labelFontSize} & macro & \{\} & \pageref{labelfontsize}\\
\Lkeyword{labels} & \Lkeyval{all}|\Lkeyval{x}|\Lkeyval{y}|\Lkeyval{none}
@@ -1237,25 +1201,9 @@ redefinition, then do it for \Lcs{pst@@@hlabel} and
There is a new value \Lkeyval{cspline} for the plotstyle to interpolate a curve with cubic splines.
-\begin{filecontents}{data1.dat}
-256.4912 0.0674
-259.7543 0.0904
-264.7287 0.0502
-270.1739 0.0339
-276.2696 0.0531
-281.4192 0.0402
-284.4351 -0.1221
-286.7098 -0.2659
-289.9052 -0.8337
-292.8813 -1.391
-295.1299 -1.3968
-297.858 -1.8959
-299.5145 -0.608
-302.1028 -0.323
-\end{filecontents}
%
\begin{LTXexample}[pos=b]
-\readdata{\foo}{data1.dat}
+\readdata{\foo}{data/data1.dat}
\begin{psgraph}[axesstyle=frame,ticksize=6pt,subticks=5,ury=1cm,
Ox=250,Dx=10,Oy=-2,](250,-2)(310,0.2){0.8\linewidth}{0.3\linewidth}
\listplot[plotstyle=cspline,linecolor=red,linewidth=0.5pt,showpoints]{\foo}
@@ -1637,7 +1585,7 @@ options allow you to define the additional part of the value, but
it must be set in math mode when using math operators or macros like \Lcs{cdot}!
\begin{LTXexample}[pos=b]
-\readdata{\data}{demo1.data}
+\readdata{\data}{data/demo1.data}
\pstScalePoints(1,0.000001){}{}% (x,y){additional x operator}{y op}
\psset{llx=-1cm,lly=-1cm}
\psgraph[ylabelFactor=\cdot 10^6,Dx=5,Dy=100](0,0)(25,750){8cm}{5cm}
@@ -1646,6 +1594,26 @@ it must be set in math mode when using math operators or macros like \Lcs{cdot}!
\pstScalePoints(1,1){}{}% reset
\end{LTXexample}
+
+\begin{LTXexample}[pos=t]
+\psset{xunit=0.05, yunit=2,labelFontSize=\scriptstyle,algebraic,plotpoints=500}
+\newpsstyle{mygrid}{%
+ Dx=10,Dy=0.5,labels=none,subticks=5,tickwidth=0.4pt,subtickwidth=0.2pt,
+ tickcolor=Red!30,subtickcolor=ForestGreen!30,
+ xticksize=-1 1.5,yticksize=0 180,subticksize=1}
+\begin{pspicture}(-10,-1.3)(190,1.8)
+ \psaxes[style=mygrid](0,0)(0,-1)(180,1.51)
+ \psplot[linecolor=NavyBlue]{0}{180}{sin(x*Pi/180)+1/2}
+ \psaxes[Dx=20,Dy=0.5,linecolor=gray,tickcolor=gray,linewidth=1pt,ticksize=-3pt 3pt,
+ xlabelFactor={}^\circ]{<->}(0,0)(-5,-1.2)(185,1.7)[$x$,0][$y$,90]
+\end{pspicture}
+\end{LTXexample}
+
+\psset{unit=1cm}
+
+
+\clearpage
+
%--------------------------------------------------------------------------------------
\subsection{Options \nxLkeyword{decimalSeparator} and \nxLkeyword{comma}}\label{comma}
%--------------------------------------------------------------------------------------
@@ -1709,6 +1677,27 @@ behaviour.
%--------------------------------------------------------------------------------------
+\subsection[Option \nxLkeyword{fractionLabels}]{Options \nxLkeyword{fractionLabels},
+\nxLkeyword{xfractionLabels}, \nxLkeyword{yfractionLabels}, \nxLkeyword{fractionLabelBase}, \nxLkeyword{xfractionLabelBase},
+and \nxLkeyword{yfractionLabelBase}}\label{fraclabels}
+%--------------------------------------------------------------------------------------
+With the option \Lkeyword{fractionLabels}=\true\ the labels on the axes
+are set as fractions.
+The option \Lkeyword{fractionLabelBase} sets the
+denominator of fraction. The default value of 0 is the same as no
+fraction.
+
+\begin{LTXexample}[pos=t]
+\psset{fractionLabels,fractionLabelBase=3,unit=3cm}
+\begin{pspicture}(-2,-1)(2,1)
+ \psaxes[dx=0.333,dy=0.333](0,0)(-2,-1)(2,1)
+ \psplot[algebraic,plotpoints=100]{-2}{2}{0.4*x-1/3}
+\end{pspicture}
+\end{LTXexample}
+
+
+
+%--------------------------------------------------------------------------------------
\subsection[Option \nxLkeyword{triglabels}]{Options \nxLkeyword{trigLabels},
\nxLkeyword{xtrigLabels}, \nxLkeyword{ytrigLabels}, \nxLkeyword{trigLabelBase}, \nxLkeyword{xtrigLabelBase},
and \nxLkeyword{ytrigLabelBase}
@@ -2760,21 +2749,21 @@ records, e.\,g. \Lkeyword{nStep}=10, only every 10\textsuperscript{th}
record is saved.
\begin{lstlisting}
-\readdata[ignoreLines=2]{\dataA}{stressrawdata.data}
-\readdata[nStep=10]{\dataA}{stressrawdata.data}
+\readdata[ignoreLines=2]{\dataA}{data/stressrawdata.data}
+\readdata[nStep=10]{\dataA}{data/stressrawdata.data}
\end{lstlisting}
The default value for \Lkeyword{ignoreLines} is $0$ and for \Lkeyword{nStep} is $1$.
the following data file has two text lines which shall be ignored by the \Lcs{readdata} macro:
\begin{LTXexample}[width=4cm]
-\begin{filecontents*}{pstricks-add-data9.data}
+\begin{filecontents*}{data/pstricks-add-data9.data}
some nonsense in this line ---time forcex forcey
0 0.2
1 1
2 4
\end{filecontents*}
-\readdata[ignoreLines=2]{\data}{pstricks-add-data9.data}
+\readdata[ignoreLines=2]{\data}{data/pstricks-add-data9.data}
\pspicture(2,4)
\listplot[showpoints]{\data}
\psaxes{->}(2,4)
@@ -2797,7 +2786,7 @@ for the \Lcs{listplot} macro, which is not a real limitation, because all data r
from a file with the \Lcs{readdata} macro (see example files or~\cite{dtk02.2:jackson.voss:plot-funktionen}):
\begin{lstlisting}[style=syntax]
-\readdata[nStep=10]{\data}{/home/voss/data/data1.data}
+\readdata[nStep=10]{\data}{data/data1.data}
\end{lstlisting}
\xLcs{readdata}
@@ -2822,7 +2811,7 @@ The datafile \verb|data.data| contains $1000$ data records. The thin blue line i
of all records with the plotstyle option \Lkeyval{curve}.\xLkeyword{nStep}\xLkeyword{xStep}\xLkeyword{yStep}
\begin{LTXexample}[preset=\centering,pos=t]
-\readdata{\data}{data.data}
+\readdata{\data}{data/data.data}
\psset{xunit=12.5cm,yunit=0.2mm}
\begin{pspicture}(-0.080,-30)(1,270)
\pstScalePoints(1,1){1000 div}{1000 div}
@@ -2834,7 +2823,7 @@ of all records with the plotstyle option \Lkeyval{curve}.\xLkeyword{nStep}\xLkey
\end{LTXexample}
\begin{LTXexample}[preset=\centering,pos=t]
-\readdata{\data}{data.data}
+\readdata{\data}{data/data.data}
\psset{xunit=12.5cm,yunit=0.2mm}
\begin{pspicture}(-0.080,-30)(1,270)
\pstScalePoints(1,1){1000 div}{1000 div}
@@ -2858,7 +2847,7 @@ of all records with the plotstyle option \Lkeyval{curve}.\xLkeyword{nStep}\xLkey
%--------------------------------------------------------------------------------------
\begin{LTXexample}[preset=\centering,pos=t]
-\readdata{\data}{data.data}
+\readdata{\data}{data/data.data}
\psset{xunit=12.5cm,yunit=0.2mm}
\begin{pspicture}(-0.080,-30)(1,270)
\pstScalePoints(1,1){1000 div}{1000 div}
@@ -2877,7 +2866,7 @@ of all records with the plotstyle option \Lkeyval{curve}.\xLkeyword{nStep}\xLkey
%--------------------------------------------------------------------------------------
\begin{LTXexample}[preset=\centering,pos=t]
-\readdata{\data}{data.data}
+\readdata{\data}{data/data.data}
\psset{xunit=12.5cm,yunit=0.2mm}
\begin{pspicture}(-0.080,-30)(1,270)
\pstScalePoints(1,1){1000 div}{1000 div}
@@ -2897,7 +2886,7 @@ of all records with the plotstyle option \Lkeyval{curve}.\xLkeyword{nStep}\xLkey
%--------------------------------------------------------------------------------------
\begin{LTXexample}[preset=\centering,pos=t]
-\readdata{\data}{data.data}
+\readdata{\data}{data/data.data}
\psset{xunit=12.5cm,yunit=0.2mm}
\begin{pspicture}(-0.080,-30)(1,270)
\pstScalePoints(1,1){1000 div}{1000 div}
@@ -2949,7 +2938,7 @@ We have the following data file:
without any modification to the data file:
\begin{LTXexample}[preset=\centering,pos=t]
-\readdata\Data{dataMul.data}
+\readdata\Data{data/dataMul.data}
\psset{xunit=0.1cm, yunit=0.5cm,lly=-0.5cm}
\begin{pspicture}(0,-7.5)(150,10)
\psaxes[Dx=10,Dy=2.5]{->}(0,0)(0,-7.5)(150,7.5)[$\mathbf{x}$,-90][$\mathbf{y}$,0]
@@ -2990,30 +2979,9 @@ data set.
\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}
+\readdata{\data}{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}
@@ -3036,7 +3004,7 @@ Otherwise we do not get a closed path. With the option
\Lkeyword{ChangeOrder} the values are used in reverse order:
\begin{LTXexample}[pos=t,preset=\centering]
-\begin{filecontents*}{test.data}
+\begin{filecontents*}{data/test.data}
0 3 8
2 4 7
5 5 5.5
@@ -3045,7 +3013,7 @@ Otherwise we do not get a closed path. With the option
\end{filecontents*}
\psset{lly=-.5cm}
\begin{psgraph}[axesstyle=frame,ticklinestyle=dotted,ticksize=0 10](0,0)(10,10){4in}{2in}%
-\readdata{\data}{test.data}%
+\readdata{\data}{data/test.data}%
\pscustom[fillstyle=solid,fillcolor=blue!40]{%
\listplot[plotNo=2,plotNoMax=2]{\data}%
\listplot[plotNo=1,plotNoMax=2,ChangeOrder]{\data}}
@@ -3063,7 +3031,7 @@ is set by an angle (0\ldots360) and the values of \Index{Saturation} and \Index{
are set by the relative $y$ value of the data records. The default value for
\Lkeyword{Hue} is 180.
-\readdata{\data}{data3.data}
+\readdata{\data}{data/data3.data}
\psset{xunit=10,yunit=0.02}
\begin{pspicture}(0,-50)(1.1,400)
\psaxes[dy=1cm,Dy=50]{->}(0,0)(0,-50)(1.1,400)
@@ -3073,7 +3041,7 @@ are set by the relative $y$ value of the data records. The default value for
\psset{unit=1cm}
\begin{lstlisting}
-\readdata{\data}{data3.data}
+\readdata{\data}{data/data3.data}
\psset{xunit=10,yunit=0.02}
\begin{pspicture}(0,-50)(1.1,400)
\psaxes[dy=1cm,Dy=50]{->}(0,0)(0,-50)(1.1,400)
@@ -3263,11 +3231,8 @@ best all data records.
\bgroup
\centering
-\begin{filecontents*}{LSM.data}
-0 1 1 3 2.8 4 3 2.9 2 5 4 4 5 5.5 6 8.2 8 7
-\end{filecontents*}
\psset{lly=-.5cm}
-\readdata{\data}{LSM.data}
+\readdata{\data}{data/LSM.data}
\begin{psgraph}[arrows=->](0,0)(0,0)(8,8){.5\textwidth}{!}
\listplot[plotstyle=dots]{\data}
\listplot[plotstyle=LSM,linecolor=red]{\data}
@@ -3276,11 +3241,11 @@ best all data records.
\begin{lstlisting}
-\begin{filecontents*}{LSM.data}
+\begin{filecontents*}{data/LSM.data}
0 1 1 3 2.8 4 3 2.9 2 5 4 4 5 5.5 6 8.2 8 7
\end{filecontents*}
\psset{lly=-.5cm}
-\readdata{\data}{LSM.data}
+\readdata{\data}{data/LSM.data}
\begin{psgraph}[arrows=->](0,0)(0,0)(8,8){.5\textwidth}{!}
\listplot[plotstyle=dots]{\data}
\listplot[?\ON?plotstyle?\OFF?=?\ON?LSM?\OFF?,linecolor=red]{\data}
@@ -3295,10 +3260,7 @@ They are preset with an empty value \verb+{}+.
\bgroup
\centering
-\begin{filecontents*}{LSM.data}
-0 1 1 3 2.8 4 3 2.9 2 5 4 4 5 5.5 6 8.2 8 7
-\end{filecontents*}
-\readdata{\data}{LSM.data}
+\readdata{\data}{data/LSM.data}
\psset{lly=-1.75cm}
\begin{psgraph}[arrows=->](0,0)(0,0)(8,8){.5\textwidth}{!}
\listplot[plotstyle=dots]{\data}
@@ -3307,10 +3269,7 @@ They are preset with an empty value \verb+{}+.
\egroup
\begin{lstlisting}
-\begin{filecontents*}{LSM.data}
-0 1 1 3 2.8 4 3 2.9 2 5 4 4 5 5.5 6 8.2 8 7
-\end{filecontents*}
-\readdata{\data}{LSM.data}
+\readdata{\data}{data/LSM.data}
\psset{lly=-1.75cm}
\begin{psgraph}[arrows=->](0,0)(0,0)(8,8){.5\textwidth}{!}
\listplot[plotstyle=dots]{\data}
@@ -3332,13 +3291,7 @@ we subtract 0.003 from all x-values and then scale them with
\bgroup
\centering
-\begin{filecontents*}{LSM.data}
-0.003298697 1.397785583
-0.003193358 1.615489564
-0.003094538 2.044019006
-0.003001651 2.259240127
-\end{filecontents*}
-\readdata{\data}{LSM.data}
+\readdata{\data}{data/LSM2.data}
\pstScalePoints(10000,1){ 0.003 sub }{}
\psset{lly=-1.75cm}
\psgraph[arrows=->,Ox=0.0030,Dx=0.0001,dx=\psxunit](0,0)(3.2,3){10cm}{5cm}
@@ -3349,13 +3302,13 @@ we subtract 0.003 from all x-values and then scale them with
\egroup
\begin{lstlisting}
-\begin{filecontents*}{LSM.data}
+\begin{filecontents*}{data/LSM2.data}
0.003298697 1.397785583
0.003193358 1.615489564
0.003094538 2.044019006
0.003001651 2.259240127
\end{filecontents*}
-\readdata{\data}{LSM.data}
+\readdata{\data}{data/LSM2.data}
?\ON?\pstScalePoints?\OFF?(10000,1){ 0.003 sub }{}
\psset{lly=-1.75cm}
\psgraph[arrows=->,Ox=0.0030,Dx=0.0001,dx=\psxunit](0,0)(3.2,3){10cm}{5cm}