summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-fit
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-11-02 23:35:40 +0000
committerKarl Berry <karl@freefriends.org>2012-11-02 23:35:40 +0000
commit62bda70668347cf8c7c69684d89c7907efc0106a (patch)
tree921e5160e3bea24cef7cf37adcf6497275555525 /Master/texmf-dist/doc/generic/pst-fit
parent99db2cb19f00c6825c3369de307c10164fdf3c95 (diff)
new pstricks pst-fit (2nov12)
git-svn-id: svn://tug.org/texlive/trunk@28155 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-fit')
-rw-r--r--Master/texmf-dist/doc/generic/pst-fit/Changes10
-rw-r--r--Master/texmf-dist/doc/generic/pst-fit/README41
-rw-r--r--Master/texmf-dist/doc/generic/pst-fit/pst-fit-doc.bib165
-rw-r--r--Master/texmf-dist/doc/generic/pst-fit/pst-fit-doc.data107
-rw-r--r--Master/texmf-dist/doc/generic/pst-fit/pst-fit-doc.pdfbin0 -> 101201 bytes
-rw-r--r--Master/texmf-dist/doc/generic/pst-fit/pst-fit-doc.tex184
6 files changed, 507 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-fit/Changes b/Master/texmf-dist/doc/generic/pst-fit/Changes
new file mode 100644
index 00000000000..e4341e78b86
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-fit/Changes
@@ -0,0 +1,10 @@
+%% $Id: Changes 673 2012-04-01 09:50:48Z herbert $
+%%
+pst-fit.sty ----------- (hv)
+ v. 0.01 2012-04-01 first CTAN version
+
+
+pst-fit.tex ----------- (bl/hv)
+ v. 0.01 2012-04-01 first CTAN version
+
+
diff --git a/Master/texmf-dist/doc/generic/pst-fit/README b/Master/texmf-dist/doc/generic/pst-fit/README
new file mode 100644
index 00000000000..f03cf6cd819
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-fit/README
@@ -0,0 +1,41 @@
+pstricks-add redefines a lot of the pstricks macros.
+#
+# Do not load another PSTricks related package after pstricks-add!!
+#
+pstricks-add collects a lot of the code which was posted
+to the pstricks mailing list and has some more new features:
+
+- pstricks
+ o random dots
+ O braces
+ o define and calculate colors on PS side
+ o Gouraud shading
+ o braces as node connection/linestyle
+ o line style bar
+ o lines, drawn "by hand"
+ o arrows, arrows, arrows, ...
+
+- pst-plot
+ o new syntax for \psplot and \psparametricplot
+ o new macro psTangentLine
+ o new macro psplotTangent
+ o new macro psplotDiffEqn
+
+- pst-node
+ o new option lineAngle for ncdiag
+ o new macros for interpolation nodes
+ and linear combination of two vectors
+ o new macro ncbarr (line with 5 segments)
+
+
+pstricks-add.pro : the prolog file for pstricks-add
+pstricks-add-doc.tex: the included doc file
+
+Save the files pstricks-add.sty|pro|tex in a directory,
+which is part of your local TeX tree. The pro file should go
+into $TEXMF/dvips/pstricks/
+Then do not forget to run texhash to update this tree.
+For more information see the documentation of your LATEX distribution
+on installing packages into your local TeX system or read the
+TeX Frequently Asked Questions:
+(http://www.tex.ac.uk/cgi-bin/texfaq2html?label=instpackages).
diff --git a/Master/texmf-dist/doc/generic/pst-fit/pst-fit-doc.bib b/Master/texmf-dist/doc/generic/pst-fit/pst-fit-doc.bib
new file mode 100644
index 00000000000..67a3311e6a4
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-fit/pst-fit-doc.bib
@@ -0,0 +1,165 @@
+%% -*-bibtex-*-
+@STRING{tugboat = {TUGboat} }
+@STRING{beiprogramm = {{\TeX}-Beiprogramm} }
+@STRING{bretter = {Bretter, die die Welt bedeuten} }
+@STRING{dtk = {{D}ie {\TeX}nische {K}om{\"o}die} }
+@STRING{editorial = {Editorial} }
+@STRING{fremdebuehne = {Von fremden B{\"u}hnen} }
+@STRING{fundus = {Aus dem Fundus} }
+@STRING{hinterbuehne = {Hinter der B{\"u}hne} }
+@STRING{leserbrief = {Leserbrief(e)} }
+@STRING{magazin = {Magazin} }
+@STRING{rezension = {Rezensionen} }
+@STRING{schonimmer = {Was Sie schon immer {\"u}ber {\TeX} wissen wollten \dots} }
+@STRING{theaterkasse = {Von der Theaterkasse} }
+@STRING{theatertage = {{\TeX}-Theatertage} }
+
+@Book{PSTricks2,
+ author = {Herbert Vo\ss},
+ title = {{\PST} {G}rafik f\"ur \TeX{} und \LaTeX},
+ edition = {6.},
+ publisher = {DANTE -- Lehmanns},
+ year = {2010},
+ address = {Heidelberg/Berlin}
+}
+
+@Book{PSTricks-E,
+ author = {Herbert Vo\ss},
+ title = {{\PST} {G}raphics for \LaTeX},
+ edition = {1},
+ publisher = {UIT},
+ year = {2011},
+ address = {Cambridge}
+}
+
+@Book{companion04,
+ author = {Frank Mittelbach and Michel Goosens et al},
+ title = {The {\LaTeX} {C}ompanion},
+ edition = {second},
+ publisher = {Addison-Wesley Publishing Company},
+ year = {2004},
+ address = {Boston}
+}
+
+@Book{unbound,
+ author = {Alan Hoenig},
+ title = {\TeX{} {U}nbound: \LaTeX{} \& \TeX{} {S}trategies, {F}onts, {G}raphics, and {M}ore},
+ publisher = {Oxford University Press},
+ year = {1998},
+ address = {London}
+}
+@Article{ dtk02.2:jackson.voss:plot-funktionen,
+ author = {Laura E. Jackson and Herbert Vo{\ss}},
+ title = {Die Plot-Funktionen von {\texttt{pst-plot}}},
+ journal = dtk,
+ year = 2002,
+ volume = {2/02},
+ altvolume = 2,
+ altnumber = 14,
+ month = jun,
+ pages = {27--34},
+ annote = bretter,
+ keywords = {},
+ abstract = { Im letzten Heft wurden die mathematischen Funktionen von
+ \PS~im Zusammenhang mit dem {\LaTeX}-Paket
+ \texttt{pst-plot} zum Zeichnen von Funktionen beschrieben
+ und durch Beispiele erl{\"a}utert. In diesem Teil werden
+ die bislang nur erw{\"a}hnten Plot-Funktionen f{\"u}r
+ externe Daten behandelt. }
+}
+
+@Article{ dtk02.1:voss:mathematischen,
+ author = {Herbert Vo{\ss}},
+ title = {Die mathematischen {F}unktionen von {P}ost{S}cript},
+ journal = dtk,
+ year = 2002,
+ volume = {1/02},
+ altvolume = 1,
+ altnumber = 14,
+ month = mar,
+ pages = {},
+ annote = bretter,
+ keywords = {},
+ abstract = { \PS, faktisch genauso alt wie {\TeX}, ist im
+ Verh{\"a}ltnis dazu allgemein noch weniger bekannt, wenn es
+ darum geht zu beurteilen, was es denn nun im eigentlichen
+ Sinne ist. Au{\ss}erdem wird h{\"a}ufig vergessen, dass
+ sich mit den \PS-Funktionen viele Dinge erledigen lassen,
+ bei denen sonst auf externe Programme zur{\"u}ckgegriffen
+ wird. Dies wird im Folgenden f{\"u}r die mathematischen
+ Funktionen im Zusammenhang mit dem Paket \texttt{pst-plot}
+ gezeigt. }
+}
+
+@Book{tlgc2,
+ author = {Michel Goosens and Frank Mittelbach and Sebastian Rahtz and Denis Roegel and Herbert Vo{\ss}},
+ title = {The {\LaTeX} {G}raphics {C}ompanion},
+ publisher = {{Addison-Wesley Publishing Company}},
+ edition = second,
+ year = {2007},
+ address = {Reading, Mass.}
+}
+
+@Article{girou:01:,
+ author = {Denis Girou},
+ title = {Pr\'esentation de {PST}ricks},
+ journal = {Cahier {GUT}enberg},
+ year = 1994,
+ volume = {16},
+ month = apr,
+ pages = {21-70}
+}
+
+@Article{girou:02:,
+ author = {{Timothy Van} Zandt and Denis Girou},
+ title = {Inside {PST}ricks},
+ journal = TUGboat,
+ year = 1994,
+ volume = {15},
+ month = sep,
+ pages = {239-246}
+}
+
+@Book{PostScript,
+ Author = {Kollock, Nikolai G.},
+ Title = {PostScript richtig eingesetzt: vom {K}onzept zum
+ praktischen {E}insatz},
+ Publisher = {IWT},
+ Address = {Vaterstetten},
+ year = 1989,
+}
+
+@Manual{pstricks,
+ Title = {PSTricks - {\PS} macros for generic {\TeX}},
+ Author = {{Timothy Van} Zandt},
+ Organization = {},
+ Address = {\url{http://www.tug.org/application/PSTricks}},
+ Note = {},
+ year = 1993
+}
+
+@Manual{pst-plot,
+ Title = {\texttt{pst-plot}: Plotting two dimensional functions and data},
+ Author = {{Timothy Van} Zandt},
+ Organization = {},
+ Address = {\url{CTAN:graphics/pstricks/generic/pst-plot.tex}},
+ Note = {},
+ year = 1999
+}
+
+@Manual{multido,
+ Title = {\texttt{multido.tex} - a loop macro, that supports fixed-point addition},
+ Author = {{Timothy Van} Zandt},
+ Organization = {},
+ Address = {\url{CTAN:/graphics/pstricks/generic/multido.tex}},
+ Note = {},
+ year = 1997
+}
+
+@MISC{xkeyval,
+ author = {Hendri Adriaens},
+ title = {xkeyval package},
+ howpublished = {\url{CTAN:/macros/latex/contrib/xkeyval}},
+ year = 2004
+}
+
diff --git a/Master/texmf-dist/doc/generic/pst-fit/pst-fit-doc.data b/Master/texmf-dist/doc/generic/pst-fit/pst-fit-doc.data
new file mode 100644
index 00000000000..f42deca6e10
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-fit/pst-fit-doc.data
@@ -0,0 +1,107 @@
+\usepackage{filecontents}
+%Exp(3*e^2x)
+\begin{filecontents}{exp.dat}
+1 22
+2 164
+3 1210
+4 8943
+\end{filecontents}
+%Recip(100/x)
+\begin{filecontents}{recip.dat}
+1 100
+2 50
+3 33
+4 25
+5 20
+6 12.5
+\end{filecontents}
+%Poly(-7.26*x^4+57.4*x^3-142.94*x^2+294.53*x-109)
+\begin{filecontents}{poly.dat}
+1 93
+2 251
+3 450
+4 597
+5 428
+6 -498
+\end{filecontents}
+%Log(5+20*log(x))
+\begin{filecontents}{logt.dat}
+2 11
+3 14.5
+4 17
+5 19
+6 20.5
+\end{filecontents}
+%Log(5+20*ln(x))
+\begin{filecontents}{loge.dat}
+2 19
+3 27
+4 33
+5 37
+6 41
+\end{filecontents}
+%Power(x^3)
+\begin{filecontents}{power.dat}
+2 8
+3 27
+4 64
+5 125
+6 216
+7 343
+8 512
+9 729
+10 1000
+\end{filecontents}
+%Gauss (e^(-x^2))
+\begin{filecontents}{gauss.dat}
+-10 3.72008E-44
+-8 1.60381E-28
+-6 2.31952E-16
+-4 1.12535E-07
+-2 0.018315639
+2 0.018315639
+4 1.12535E-07
+6 2.31952E-16
+8 1.60381E-28
+10 3.72008E-44
+\end{filecontents}
+%Linear (2x+2)
+\begin{filecontents}{linear.dat}
+1 4
+2 6
+3 8
+4 10
+5 12
+6 14
+7 16
+8 18
+9 20
+10 22
+\end{filecontents}
+%Linear (2x 3x)
+\begin{filecontents}{linearA.dat}
+1 2 3
+2 4 6
+3 6 9
+4 8 12
+5 10 15
+6 12 18
+7 14 21
+8 16 24
+9 18 27
+10 20 30
+\end{filecontents}
+%King (sqrt(5+4*V^0.5))
+\begin{filecontents}{king.dat}
+2 3.264483765
+3 3.453723097
+4 3.605551275
+5 3.734202982
+6 3.846811533
+7 3.947531538
+8 4.039023211
+9 4.123105626
+10 4.20108446
+\end{filecontents}
+
+\endinput
diff --git a/Master/texmf-dist/doc/generic/pst-fit/pst-fit-doc.pdf b/Master/texmf-dist/doc/generic/pst-fit/pst-fit-doc.pdf
new file mode 100644
index 00000000000..5f8f02117bf
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-fit/pst-fit-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/pst-fit/pst-fit-doc.tex b/Master/texmf-dist/doc/generic/pst-fit/pst-fit-doc.tex
new file mode 100644
index 00000000000..b00c1c98ba4
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-fit/pst-fit-doc.tex
@@ -0,0 +1,184 @@
+%% $Id: pst-fit-doc.tex 673 2012-04-01 09:50:48Z herbert $
+\documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,
+ smallheadings, headexclude,footexclude,oneside]{pst-doc}
+\usepackage[utf8]{inputenc}
+\usepackage{pst-fit}
+\let\pstFitFV\fileversion
+
+\input{pst-fit-doc.data}
+\readdata[ignoreLines=0]{\Gauss}{gauss.dat}
+\readdata[ignoreLines=0]{\Power}{power.dat}
+\readdata[ignoreLines=0]{\King}{king.dat}
+\readdata[ignoreLines=0]{\Exp}{exp.dat}
+\readdata[ignoreLines=0]{\Linear}{linear.dat}
+\readdata[ignoreLines=0]{\LinearA}{linearA.dat}
+\readdata[ignoreLines=0]{\Recip}{recip.dat}
+\readdata[ignoreLines=0]{\Poly}{poly.dat}
+\readdata[ignoreLines=0]{\Logt}{logt.dat}
+\readdata[ignoreLines=0]{\Loge}{loge.dat}
+
+
+\renewcommand\bgImage{%
+\begin{psgraph}[arrows=<->,Dy=20](0,0)(0,0)(10,100){2in}{2in}
+\listplot[decimals=2,EqPos=5 50,plotstyle=GLLSR,RecipFit,linestyle=dashed]{\Recip}
+\listplot[plotstyle=dots]{\Recip}
+\end{psgraph}
+}
+
+\let\Section\section
+\def\section{\clearpage\Section}
+\begin{document}
+
+\title{\texttt{pst-fit}}
+\subtitle{Curve fitting; v.\pstFitFV}
+\author{Buddy Ledger}
+\docauthor{}
+\date{\today}
+\maketitle
+
+\tableofcontents
+%
+%
+%
+\psset{xAxisLabel=x, %Setup for psgraph env
+ yAxisLabel=y,
+ xAxisLabelPos=,
+ yAxisLabelPos=,
+ lly=-1cm,llx=-1cm}
+
+\section{Fit of Linear Function}
+%Replaces LSM using default options
+
+\begin{LTXexample}[pos=t]
+\begin{psgraph}[arrows=->,Dy=2](0,0)(0,0)(10,22){4.5in}{4.5in}
+\listplot[decimals=2,EqPos=3 15,plotstyle=GLLSR,linestyle=dashed]{\Linear}
+\listplot[plotstyle=dots,linecolor=red,dotscale=2,dotstyle=x]{\Linear}
+\end{psgraph}
+\end{LTXexample}
+
+\section{Fit of Power Function}
+\begin{LTXexample}[pos=t]
+\begin{psgraph}[arrows=->,Dy=100](0,0)(0,0)(10,1000){4.5in}{4.5in}
+\listplot[decimals=2,EqPos=1 800,linestyle=dashed,plotstyle=GLLSR,PowerFit]{\Power}
+\listplot[plotstyle=dots,linecolor=red,dotscale=2,dotstyle=x]{\Power}
+\listplot[EqPos=5 4,plotstyle=GLLSR,linecolor=blue,CustomFit,CheckZeroX,CheckZeroY,FYtrans=log,RYtrans=10 exch exp,FXtrans=log]{\Power}
+\end{psgraph}
+\end{LTXexample}
+
+\section{Fit of exp Function}
+\begin{LTXexample}[pos=t]
+\begin{psgraph}[arrows=->,Dx=1,Dy=1000,xsubticks=1,ysubticks=1](0,0)(0,0)(10,10000){4.5in}{4.5in}
+\listplot[PstDebug=1,decimals=2,EqPos=4 2000,MaPos=5 7000,plotstyle=GLLSR,ExpFit]{\Exp}
+\listplot[plotstyle=dots]{\Exp}
+\end{psgraph}
+\end{LTXexample}
+
+\section{Fit of Log10/Loge Functions}
+\begin{LTXexample}[pos=t]
+\begin{psgraph}[arrows=->,Dx=1,Dy=2,xsubticks=1,ysubticks=1](0,0)(0,0)(10,50){4.5in}{4.5in}
+\listplot[decimals=2,EqPos=5 10,plotstyle=GLLSR,LogTFit]{\Logt}
+\listplot[decimals=2,plotstyle=dots]{\Logt}
+\listplot[decimals=2,EqPos=5 28,plotstyle=GLLSR,LogEFit]{\Loge}
+\listplot[decimals=2,plotstyle=dots]{\Loge}
+%\listplot[EqPos=5 4,plotstyle=GLLSR,CustomFit,CheckZeroX=true,CheckZeroY=true,FYtrans=Yint dup mul sub %log,RYtrans=10 exch exp Yint dup mul add,FXtrans=log]{\Linear}
+\end{psgraph}
+\end{LTXexample}
+
+
+
+\section{Fit of Recip}
+\begin{LTXexample}[pos=t]
+\begin{psgraph}[arrows=<->,Dx=1,Dy=10,xsubticks=1,ysubticks=1](0,0)(0,0)(10,100){4.5in}{4.5in}
+\listplot[decimals=2,EqPos=5 2,plotstyle=GLLSR,RecipFit]{\Recip}
+\listplot[plotstyle=dots]{\Recip}
+\end{psgraph}
+\end{LTXexample}
+
+\section{Fit of Kings Law data}
+
+\begin{LTXexample}[pos=t]
+\begin{psgraph}[arrows=->,Dx=1,Dy=1,xsubticks=1,ysubticks=1](0,0)(0,0)(10,20){4.5in}{4.5in}
+\pstScalePoints(1,1){}{dup mul}
+\listplot[decimals=2,EqPos=5 2,plotstyle=GLLSR,PowerFit,Yint=5]{\King}
+\listplot[plotstyle=dots]{\King}
+\pstScalePoints(1,1){}{}
+\end{psgraph}
+\end{LTXexample}
+
+\section{Fit of Guassian}
+\begin{LTXexample}[pos=t]
+\begin{psgraph}[arrows=->,Dx=1,Dy=0.1,xsubticks=1,ysubticks=1](0,0)(-10,0)(10,1){4.5in}{4.5in}
+\listplot[plotstyle=dots]{\Gauss}
+\listplot[decimals=2,EqPos=5 0.4,plotstyle=GLLSR,GaussFit,plotpoints=400]{\Gauss}
+\end{psgraph}
+\end{LTXexample}
+
+\section{Fit of 4th Order Polynomial}
+\begin{LTXexample}[pos=t]
+\begin{psgraph}[arrows=->,Dx=1,Dy=100,xsubticks=1,ysubticks=1](0,0)(0,-600)(10,600){4.5in}{4.5in}
+\listplot[plotstyle=dots]{\Poly}
+%note that the valuewidth needs to be large for debugging matrices
+\listplot[valuewidth=20,PstDebug=1,decimals=2,EqPos=0.5 -200,plotstyle=GLLSR,MaPos=7 500,MaScale=0.5,PolyOrder=4,plotpoints=400,Yint=500]{\Poly}
+\listplot[linestyle=dashed,decimals=2,EqPos=0.5 -400,plotstyle=GLLSR,PolyOrder=4,plotpoints=400]{\Poly}
+%\listplot[decimals=2,EqPos=0.5 -200,plotstyle=GLLSR,PolyOrder=10,plotpoints=400]{\Power}
+\end{psgraph}
+\end{LTXexample}
+
+\section{LinetoXAxis respects scalepoints.}
+\begin{LTXexample}[pos=t]
+\begin{psgraph}[arrows=<->,Dx=1,Dy=1,xsubticks=1,ysubticks=1](0,0)(0,0)(10,10){4in}{4in}
+\pstScalePoints(0.5,0.25){2 add}{16 add}
+\listplot[plotstyle=line]{\Linear}
+\listplot[arrows=<-,plotstyle=LineToXAxis]{\Linear}
+\pstScalePoints(1,1){}{}
+\rput[lb](1,2){Scaled fluid velocity distribution on a plot of the physical system.}
+\end{psgraph}
+\end{LTXexample}
+
+\section{Prepare Points Modification}
+\begin{LTXexample}[pos=t]
+\begin{psgraph}[arrows=->,Dx=1,Dy=1,xsubticks=1,ysubticks=1](0,0)(0,0)(15,30){4.5in}{4.5in}
+\listplot[plotstyle=line,plotNoMax=2,plotNo=1]{\LinearA}
+\listplot[plotstyle=line,plotNoMax=2,plotNo=2]{\LinearA}
+\listplot[plotstyle=line,linestyle=dashed,plotNoMax=2,plotNo=1,plotNoTwo=2,plotNoTwoFunc=add 2 div]{\LinearA}
+\rput[lb](10,18){1st Column}
+\rput[lb](10,29){2nd Column}
+\rput[lb](10,24){Average of 1st and 2nd Columns}
+\end{psgraph}
+\end{LTXexample}
+
+\section{PrintCoor Demo}
+\begin{LTXexample}[pos=t]
+\begin{psgraph}[arrows=->,Dx=1,Dy=1,xsubticks=1,ysubticks=1](0,0)(0,0)(10,15){4.5in}{4.5in}
+%PrintCoor Demo
+\psset{xEnd=,xStart=,decimals=2,valuewidth=50,fontscale=10,PstDebug=1}
+\pstScalePoints(1,1){0.75 mul}{0.5 exp 3 mul}
+\listplot[plotstyle=PrintCoor,plotNoMax=1,plotNo=1,PstDebug=0,relxerr=0,relyerr=0.1]{\Linear}
+\listplot[plotstyle=dots,plotNoMax=1,plotNo=1]{\Linear}
+\pstScalePoints(1,1){}{}
+\end{psgraph}
+\end{LTXexample}
+
+\clearpage
+\section{List of all optional arguments for \texttt{pst-fit}}
+
+\xkvview{family=pst-fit,columns={key,type,default}}
+
+
+
+
+\bgroup
+\raggedright
+\nocite{*}
+\bibliographystyle{plain}
+\bibliography{pst-fit-doc}
+\egroup
+
+\printindex
+
+
+
+
+
+\end{document}
+