From cb816f38f1e3873a1da8f2b33f2b630ccf8e8fa6 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 24 Apr 2013 23:18:04 +0000 Subject: numericplots (21apr13) git-svn-id: svn://tug.org/texlive/trunk@30097 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/numericplots/BasicFunctionality.tex | 874 -- .../doc/latex/numericplots/DataTestRealData.tex | 174 - .../doc/latex/numericplots/FurtherExamples.tex | 177 - .../doc/latex/numericplots/MatlabSupport.tex | 121 - .../doc/latex/numericplots/MultiplePlots.tex | 232 - .../doc/latex/numericplots/NumericPlots.pdf | Bin 154313 -> 367811 bytes .../doc/latex/numericplots/NumericPlotsDoc.tex | 175 - Master/texmf-dist/doc/latex/numericplots/README | 30 + .../doc/latex/numericplots/README.TEXLIVE | 2 + .../texmf-dist/doc/latex/numericplots/README.doc | 30 - .../doc/latex/numericplots/Roll406_Ref2288.tex | 1759 ---- .../doc/latex/numericplots/TechnicalDetails.tex | 140 - .../doc/latex/numericplots/TestPlots.tex | 100 - .../texmf-dist/doc/latex/numericplots/history.tex | 107 - .../latex/numericplots/keys_NumericDataPlot.tex | 54 - .../texmf-dist/doc/latex/numericplots/options.tex | 39 - .../latex/numericplots/src/BasicFunctionality.tex | 612 ++ .../doc/latex/numericplots/src/FurtherExamples.tex | 301 + .../doc/latex/numericplots/src/MatlabSupport.tex | 131 + .../doc/latex/numericplots/src/MultiplePlots.tex | 37 + .../doc/latex/numericplots/src/NumericPlotsDoc.tex | 212 + .../doc/latex/numericplots/src/Roll406_Ref2288.tex | 1759 ++++ .../latex/numericplots/src/TechnicalDetails.tex | 254 + .../doc/latex/numericplots/src/TestPlots.tex | 122 + .../numericplots/src/examples/BodeDiagramm.tex | 44 + .../numericplots/src/examples/DataTestRealData.tex | 174 + .../latex/numericplots/src/examples/DefineData.tex | 47 + .../src/examples/LabelsNTickLabels.tex | 49 + .../numericplots/src/examples/NyquistPlot.tex | 76 + .../src/examples/Sprungantwort_PT1Glied.tex | 39 + .../numericplots/src/examples/basic_Boxes.tex | 22 + .../numericplots/src/examples/basic_EasyPlot.tex | 9 + .../latex/numericplots/src/examples/basic_Grid.tex | 13 + .../numericplots/src/examples/basic_Labels.tex | 17 + .../numericplots/src/examples/basic_Legend.tex | 3 + .../numericplots/src/examples/basic_LegendI.tex | 4 + .../numericplots/src/examples/basic_LegendII.tex | 8 + .../numericplots/src/examples/basic_LegendIII.tex | 7 + .../numericplots/src/examples/basic_LineStyles.tex | 27 + .../numericplots/src/examples/basic_Lines.tex | 18 + .../src/examples/basic_LogarithmicI.tex | 8 + .../src/examples/basic_LogarithmicII.tex | 8 + .../src/examples/basic_MultipleData.tex | 20 + .../numericplots/src/examples/basic_Objects.tex | 29 + .../src/examples/basic_PlaceObjects.tex | 31 + .../src/examples/basic_PlaceObjectsII.tex | 25 + .../numericplots/src/examples/basic_PlotWHoles.tex | 8 + .../numericplots/src/examples/basic_UseRput.tex | 29 + .../src/examples/basic_UserLinestyles.tex | 27 + .../src/examples/data_BodeDiagrammLinearerTerm.tex | 1028 +++ .../numericplots/src/examples/data_Nyquist.tex | 302 + .../src/examples/data_SprungantwortPT1Glied.tex | 69 + .../src/examples/furtherEx_TickLabels.tex | 18 + .../src/examples/multiplots_exampleI.tex | 76 + .../src/examples/multiplots_exampleII.tex | 24 + .../numericplots/src/fig_NoiseData_ClosedLine.eps | 8412 +++++++++++++++++++ .../numericplots/src/fig_NoiseData_OpenLine.eps | 8413 ++++++++++++++++++++ .../doc/latex/numericplots/src/history.tex | 157 + .../numericplots/src/keys_NumericDataPlot.tex | 69 + .../doc/latex/numericplots/src/options.tex | 44 + 60 files changed, 22814 insertions(+), 3982 deletions(-) delete mode 100644 Master/texmf-dist/doc/latex/numericplots/BasicFunctionality.tex delete mode 100644 Master/texmf-dist/doc/latex/numericplots/DataTestRealData.tex delete mode 100644 Master/texmf-dist/doc/latex/numericplots/FurtherExamples.tex delete mode 100644 Master/texmf-dist/doc/latex/numericplots/MatlabSupport.tex delete mode 100644 Master/texmf-dist/doc/latex/numericplots/MultiplePlots.tex delete mode 100644 Master/texmf-dist/doc/latex/numericplots/NumericPlotsDoc.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/README delete mode 100644 Master/texmf-dist/doc/latex/numericplots/README.doc delete mode 100644 Master/texmf-dist/doc/latex/numericplots/Roll406_Ref2288.tex delete mode 100644 Master/texmf-dist/doc/latex/numericplots/TechnicalDetails.tex delete mode 100644 Master/texmf-dist/doc/latex/numericplots/TestPlots.tex delete mode 100644 Master/texmf-dist/doc/latex/numericplots/history.tex delete mode 100644 Master/texmf-dist/doc/latex/numericplots/keys_NumericDataPlot.tex delete mode 100644 Master/texmf-dist/doc/latex/numericplots/options.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/BasicFunctionality.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/FurtherExamples.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/MatlabSupport.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/MultiplePlots.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/NumericPlotsDoc.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/Roll406_Ref2288.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/TechnicalDetails.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/TestPlots.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/BodeDiagramm.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/DataTestRealData.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/DefineData.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/LabelsNTickLabels.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/NyquistPlot.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/Sprungantwort_PT1Glied.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/basic_Boxes.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/basic_EasyPlot.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/basic_Grid.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/basic_Labels.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/basic_Legend.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/basic_LegendI.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/basic_LegendII.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/basic_LegendIII.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/basic_LineStyles.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/basic_Lines.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/basic_LogarithmicI.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/basic_LogarithmicII.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/basic_MultipleData.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/basic_Objects.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/basic_PlaceObjects.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/basic_PlaceObjectsII.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/basic_PlotWHoles.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/basic_UseRput.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/basic_UserLinestyles.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/data_BodeDiagrammLinearerTerm.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/data_Nyquist.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/data_SprungantwortPT1Glied.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/furtherEx_TickLabels.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/multiplots_exampleI.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/examples/multiplots_exampleII.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/fig_NoiseData_ClosedLine.eps create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/fig_NoiseData_OpenLine.eps create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/history.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/keys_NumericDataPlot.tex create mode 100644 Master/texmf-dist/doc/latex/numericplots/src/options.tex (limited to 'Master/texmf-dist/doc/latex/numericplots') diff --git a/Master/texmf-dist/doc/latex/numericplots/BasicFunctionality.tex b/Master/texmf-dist/doc/latex/numericplots/BasicFunctionality.tex deleted file mode 100644 index 3a9298b5f55..00000000000 --- a/Master/texmf-dist/doc/latex/numericplots/BasicFunctionality.tex +++ /dev/null @@ -1,874 +0,0 @@ -% Copyright 2010 Thomas Koenig, Alexander Michel -% -% This file is part of NumericPlots. -% -% NumericPlots is free software: you can redistribute it and/or modify -% it under the terms of the GNU General Public License as published by -% the Free Software Foundation, either version 3 of the License, or -% any later version. -% -% NumericPlots is distributed in the hope that it will be useful, -% but WITHOUT ANY WARRANTY; without even the implied warranty of -% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -% GNU General Public License for more details. -% -% You should have received a copy of the GNU General Public License -% along with NumericPlots. If not, see . - -\part{Using the package} - -\section{Basic Functionality} - -The package NumericPlots\\ -\verb+\usepackage{NumericPlots}+ -\\ -is intended to be used to plot numeric data which -may, e.g., be exported from Matlab by export2latex.m. The data must be defined -in the form -\begin{verbatim} - \def\IdentI{ - 1.0 1.0e2 - 1.1 11e1 - 1.2 1.25e2 - 1.3 110 - 1.4 100 - 1.5 90 - 1.6 80 - } -\end{verbatim} -\def\IdentI{ - 1.0 1.0e2 - 1.1 11e1 - 1.2 1.25e2 - 1.3 110 - 1.4 100 - 1.5 90 - 1.6 80 - } -\def\IdentII{ - 1.0 125 - 1.05 100 - 1.1 75 - 1.15 85 - 1.2 90 - 1.3 115 - 1.4 130 - 1.5 125 - 1.6 120 - } -\def\LogData{ - 6 6 - 10 10 - 20 20 - 30 30 - 40 40 - 50 50 - 60 60 - 70 70 - 80 80 - 90 90 - 100 100 - 200 200 - 300 300 - 400 400 - 500 500 - 600 600 - 700 700 - 800 800 - 900 900 - 1000 1000 - 1100 1100 - 1200 1200 - 1300 1300 - 1400 1400 - 1500 1500 -} -where the first column contains the x, the second column the y-data. - -\subsection{plots} - -% \begin{LTXExample} -% \begin{NumericDataPlot}{\textwidth}{5cm} -% \setxAxis{xMin=1, xMax=2, Dx=0.1} -% \setyAxis{yMin=50, yMax=150, Dy=25} -% -% \plotxAxis{x-axis label} -% \plotyAxis{y-axis label} -% -% \listplot[style=StdLineStyA]{\IdentI} -% \end{NumericDataPlot} -% \end{LTXExample} - -The easiest plot may be done by -\begin{verbatim} - \begin{NumericDataPlot}{\textwidth}{5cm} - \setxAxis{xMin=-1, xMax=2, Dx=0.5} - \setyAxis{yMin=-50, yMax=150, Dy=25} - - \plotxAxis{x-axis label} - \plotyAxis{y-axis label} - - \listplot[style=StdLineStyA]{\IdentI} - \end{NumericDataPlot} -\end{verbatim} -\begin{NumericDataPlot}{\textwidth}{5cm} - \setxAxis{xMin=-1, xMax=2, Dx=0.5, xO=0} - \setyAxis{yMin=-50, yMax=150, Dy=25, yO=0} - - \plotxAxis{x-axis label} - \plotyAxis{y-axis label} - - \listplot[style=StdLineStyA]{\IdentI} -\end{NumericDataPlot} - -if you want to add a legend, you simply call - -\begin{minipage}{0.5\linewidth} -\begin{verbatim} -\LegendDefinition{ - \LegLine{style=StdLineStyA} & IdentI -} -\end{verbatim} -\end{minipage}\begin{minipage}{0.5\linewidth} -\centering -\LegendDefinition{ - \LegLine{style=StdLineStyA} & IdentI -} -\end{minipage} - -To plot multiple data in one plot call \newline -\begin{minipage}[T]{0.5\linewidth} - \begin{verbatim} - \begin{NumericDataPlot} - {\textwidth}{5cm} - \setxAxis - {xMin=1, xMax=2, Dx=0.2} - \setyAxis - {yMin=50, yMax=150, Dy=25} - - \plotxAxis{x-axis label} - \plotyAxis{y-axis label} - - \listplot[style=StdLineStyA] - {\IdentI} - \listplot[style=StdLineStyB] - {\IdentII} - - \putSE{\LegendDefinition{ - \LegLine{style=StdLineStyA} & IdentI \\ - \LegLine{style=StdLineStyB} & IdentII - }} - \end{NumericDataPlot} - \end{verbatim} -\end{minipage} -\begin{minipage}[T]{0.5\linewidth} - \vspace{10pt} - \begin{NumericDataPlot}{\textwidth}{5cm} - \setxAxis{xMin=1, xMax=2, Dx=0.2} - \setyAxis{yMin=50, yMax=150, Dy=25} - - \plotxAxis{x-axis label} - \plotyAxis{y-axis label} - - \listplot[style=StdLineStyA]{\IdentI} - \listplot[style=StdLineStyB]{\IdentII} - - \putSE{\LegendDefinition{ - \LegLine{style=StdLineStyA} & IdentI \\ - \LegLine{style=StdLineStyB} & IdentII - }} - \end{NumericDataPlot} -\end{minipage} - - -\subsection{Label and TickLabels} - -The commands \texttt{plotxAxis} and \texttt{plotyAxis} take the options -\texttt{NoLabel}, \texttt{NoTicks}, \texttt{NoTickLabel} as well as -\texttt{LabelOption} and \texttt{TickLabelOption} which may be used to eliminate -or change the look of the labels. - -Standard values for \texttt{LabelOption} and \texttt{TickLabelOption} may be set\\ -by \verb|\newcommand{\StdLabelOption}{\color{blue}|\\ -and \verb|\newcommand{\StdTickLabelOption}{\small}|. - -The option \texttt{xLabelSep} for \verb|\plotxAxis| (and \texttt{yLabelSep} for -\verb|\plotyAxis|) may be used to set the seperation between the axis and the label. Standard value -is 10pt for the x-label and 20pt for the y-label. - -\begin{minipage}[T]{0.5\linewidth} - \begin{verbatim} - \begin{NumericDataPlot}{\textwidth}{5cm} - \setxAxis{xMin=1, xMax=1.6, Dx=0.2} - \setyAxis{yMin=75, yMax=130, Dy=25} - - \plotxAxis - [LabelOption=\LARGE,% - TickLabelOption=\color{red},% - xLabelSep=40pt] - {x-axis label} - \plotyAxis - [NoLabel, NoTicks, NoTickLabel] - {y-axis label} - - \listplot[style=StdLineStyA]{\IdentI} - \listplot[style=StdLineStyB]{\IdentII} - - \end{NumericDataPlot} - \end{verbatim} -\end{minipage} -\begin{minipage}[T]{0.5\linewidth} - \vspace{10pt} - \begin{NumericDataPlot}{\textwidth}{5cm} - \setxAxis{xMin=1, xMax=1.6, Dx=0.2} - \setyAxis{yMin=75, yMax=130, Dy=25} - - \plotxAxis[LabelOption=\LARGE, TickLabelOption=\color{red}, - xLabelSep=40pt]{x-axis label} - \plotyAxis[NoLabel, NoTicks, NoTickLabel]{y-axis label} - - \listplot[style=StdLineStyA]{\IdentI} - \listplot[style=StdLineStyB]{\IdentII} - - \end{NumericDataPlot} -\end{minipage} - - -\subsection{Place ``Objects'' in the plot.} - -There are basically two different options to place objects in the plot. To -understand the difference one has to keep in mind that the axis have two -different coordinate systems. One is the system defined by xMin, xMax, yMin and -yMax (refered to as ``DataCoordinateSystem''), the other ist the system defined -by xCoordMin, xCoordMax, yCoordMin and yCoordMax (refered to as -``PictureCoordinateSystem''), see section \ref{sec:MultiplePlots}. - -It is now possible to place stuff in the graph with the DataCoordinates with the -command NDPput, see the following example. - -\begin{minipage}[T]{0.5\linewidth} - \begin{verbatim} - \begin{NumericDataPlot} - {\textwidth}{5cm} - \setxAxis - {xMin=1, xMax=2, Dx=0.2} - \setyAxis - {yMin=50, yMax=150, Dy=25} - - \plotxAxis{x-axis label} - \plotyAxis[NoLabel]{} - - \listplot[style=StdLineStyA] - {\IdentI} - - % put some stuff somewhere - \NDPput[x=1.2, y=75, RefPoint=br]{text} - \NDPput[x=1.2, y=100]{$a^2$} - - % or put nodes... - \NDPput[x=1.6, y=100]{\pnode{A}} - \NDPput[x=1.8, y=150]{\pnode{B}} - % ...and draw a line between them - \ncline{A}{B} - - % or put the legend at a specific position - \NDPput[x=1.8, y=75]{\LegendDefinition{ - \LegLine{style=StdLineStyA} & IdentI - }} - \end{NumericDataPlot} - \end{verbatim} -\end{minipage} -\begin{minipage}[T]{0.5\linewidth} - \vspace{10pt} - \begin{NumericDataPlot} - {\textwidth}{5cm} - \setxAxis - {xMin=1, xMax=2, Dx=0.2} - \setyAxis - {yMin=50, yMax=150, Dy=25} - - \plotxAxis{x-axis label} - \plotyAxis[NoLabel]{} - - \listplot[style=StdLineStyA] - {\IdentI} - - % put some stuff somewhere - \NDPput[x=1.2, y=75, RefPoint=br]{text} - \NDPput[x=1.2, y=100]{$a^2$} - - % or put nodes... - \NDPput[x=1.6, y=100]{\pnode{A}} - \NDPput[x=1.8, y=150]{\pnode{B}} - % ...and draw a line between them - \ncline{A}{B} - - % or put the legend at a specific position - \NDPput[x=1.8, y=75]{\LegendDefinition{ - \LegLine{style=StdLineStyA} & IdentI - }} - \end{NumericDataPlot} -\end{minipage} - -For convenience the commands \verb|\putXX{object}| where -$XX\in\left(N,S,E,W,NW,NE,SW,SE\right)$ are defined to place something in the -North, South,\ldots, SouthEast corner of the plot. Also, the command -\verb|\putExpY{xx}| and \verb|\putExpX{xx}| may be used to place exponents at -the axes. - -\begin{minipage}[T]{0.5\linewidth} - \begin{verbatim} - \begin{NumericDataPlot} - ... - \putExpY{$\times 10^{-3}$} - \putExpX{$\times 10^{-6}$} - - \putN{N} - \putS{S} - \putW{W} - \putE{E} - \putNW{NW} - \putNE{NE} - \putSW{SW} - \putSE{SE} - \end{NumericDataPlot} - \end{verbatim} -\end{minipage} -\begin{minipage}[T]{0.5\linewidth} - \vspace{10pt} - \begin{NumericDataPlot} - {\textwidth}{5cm} - \setxAxis - {xMin=1, xMax=1.6, Dx=0.2} - \setyAxis - {yMin=50, yMax=150, Dy=25} - - \plotxAxis{x-axis label} - \plotyAxis[NoLabel]{} - - \listplot[style=StdLineStyA] - {\IdentI} - - \putExpY{$\times 10^{-3}$} - \putExpX{$\times 10^{-6}$} - - \putN{N} - \putS{S} - \putW{W} - \putE{E} - \putNW{NW} - \putNE{NE} - \putSW{SW} - \putSE{SE} - \end{NumericDataPlot} -\end{minipage} - - -Alternatively, stuff can be placed -within the plot with \verb|\rput|. - -\begin{minipage}[T]{0.5\linewidth} - \begin{verbatim} - \begin{NumericDataPlot} - ... - - % put text in the middle of the plot - \rput{45}(500,500){text} - % put a formula in the lower left corner - \rput[bl](0,0){$a^2+b^2=c^2$} - - % or put nodes... - \NDPput[x=1.2, y=125]{\pnode{A}} - \rput(750,900){\Rnode{B}{peak}} - % ...and draw a line between them - \ncline{<-}{A}{B} - - % or put the legend at a specific position - \rput{-45}(750,250){\LegendDefinition{ - \LegLine{style=StdLineStyA} & IdentI - }} - \end{NumericDataPlot} - \end{verbatim} -\end{minipage} -\begin{minipage}[T]{0.5\linewidth} - \vspace{10pt} - \begin{NumericDataPlot} - {\textwidth}{5cm} - \setxAxis - {xMin=1, xMax=1.6, Dx=0.2} - \setyAxis - {yMin=50, yMax=150, Dy=25} - - \plotxAxis{x-axis label} - \plotyAxis[NoLabel]{} - - \listplot[style=StdLineStyA] - {\IdentI} - - % put text in the middle of the plot - \rput{45}(500,500){text} - % put a formula in the lower left corner - \rput[bl](0,0){$a^2+b^2=c^2$} - - % or put nodes... - \NDPput[x=1.2, y=125]{\pnode{A}} - \rput(750,900){\Rnode{B}{peak}} - % ...and draw a line between them - \ncline{<-}{A}{B} - - % or put the legend at a specific position - \rput{-45}(750,250){\LegendDefinition{ - \LegLine{style=StdLineStyA} & IdentI - }} - \end{NumericDataPlot} -\end{minipage} - - - -% ================================= -% | | -% | Linestyles and colors | -% | | -% ================================= - -\subsection{Linestyles and colors} - -While using the package, there are predefined linestyles which may be used: - -\begin{minipage}{0.6\linewidth} - \centering - \small - - \input{DataTestRealData} - - \begin{NumericDataPlot}[]{\linewidth}{0.7\linewidth} - \setxAxis{xMin=2, xMax=17, xO=5, Dx=4} - \setyAxis{yMin=20, yMax=70, yO=20, Dy=20} - - \plotxAxis[NoLabel, AxisStyle=Boxed]{} - \plotyAxis[NoLabel, AxisStyle=Boxed]{} - - \listplot[style=StdLineStyA]{\DataA} - \listplot[style=StdLineStyB]{\DataB} - \listplot[style=StdLineStyC]{\DataC} - \listplot[style=StdLineStyD]{\DataD} - \listplot[style=StdLineStyE]{\DataE} - \listplot[style=StdLineStyF]{\DataF} - \listplot[style=StdLineStyG]{\DataG} - \end{NumericDataPlot} -\end{minipage} -\begin{minipage}{0.4\linewidth} - \centering - \LegendDefinition{ - \LegLine{style=StdLineStyA} & StdLineStyA \\ - \LegLine{style=StdLineStyB} & StdLineStyB \\ - \LegLine{style=StdLineStyC} & StdLineStyC \\ - \LegLine{style=StdLineStyD} & StdLineStyD \\ - \LegLine{style=StdLineStyE} & StdLineStyE \\ - \LegLine{style=StdLineStyF} & StdLineStyF \\ - \LegLine{style=StdLineStyG} & StdLineStyG \\ - } -\end{minipage} - -When using the package option \texttt{BW} the standard line styles will be -replaced by their black and white counterparts: - -\begin{minipage}{0.6\linewidth} - \centering - \small - - \input{DataTestRealData} - - \begin{NumericDataPlot}[]{\linewidth}{0.7\linewidth} - \setxAxis{xMin=2, xMax=17, xO=5, Dx=4} - \setyAxis{yMin=20, yMax=70, yO=20, Dy=20} - - \plotxAxis[NoLabel, AxisStyle=Boxed]{} - \plotyAxis[NoLabel, AxisStyle=Boxed]{} - - \listplot[style=BWStdLineStyA]{\DataA} - \listplot[style=BWStdLineStyB]{\DataB} - \listplot[style=BWStdLineStyC]{\DataC} - \listplot[style=BWStdLineStyD]{\DataD} - \listplot[style=BWStdLineStyE]{\DataE} - \listplot[style=BWStdLineStyF]{\DataF} - \listplot[style=BWStdLineStyG]{\DataG} - \end{NumericDataPlot} -\end{minipage} -\begin{minipage}{0.4\linewidth} - \centering - \LegendDefinition{ - \LegLine{style=BWStdLineStyA} & BWStdLineStyA \\ - \LegLine{style=BWStdLineStyB} & BWStdLineStyB \\ - \LegLine{style=BWStdLineStyC} & BWStdLineStyC \\ - \LegLine{style=BWStdLineStyD} & BWStdLineStyD \\ - \LegLine{style=BWStdLineStyE} & BWStdLineStyE \\ - \LegLine{style=BWStdLineStyF} & BWStdLineStyF \\ - \LegLine{style=BWStdLineStyG} & BWStdLineStyG \\ - } -\end{minipage} - -For values which are nearly the same (reference and measurement, e.g.) the -following line styles may be used: - -\begin{minipage}{0.6\linewidth} - \centering - \small - - \input{DataTestRealData} - - \begin{NumericDataPlot}[]{\linewidth}{0.7\linewidth} - \setxAxis{xMin=2, xMax=17, xO=5, Dx=4} - \setyAxis{yMin=20, yMax=70, yO=20, Dy=20} - - \plotxAxis[NoLabel, AxisStyle=Boxed]{} - \plotyAxis[NoLabel, AxisStyle=Boxed]{} - - \listplot[style=StdLineStyX]{\DataC} - \listplot[style=StdLineStyY]{\DataC} - - \listplot[style=BWStdLineStyX]{\DataD} - \listplot[style=BWStdLineStyY]{\DataD} - \end{NumericDataPlot} -\end{minipage} -\begin{minipage}{0.4\linewidth} - \centering - \LegendDefinition{ - \LegLine{style=StdLineStyX} & StdLineStyX \\ - \LegLine{style=StdLineStyY} & StdLineStyY \\ - \LegLine{style=BWStdLineStyX} & BWStdLineStyX \\ - \LegLine{style=BWStdLineStyY} & BWStdLineStyY \\ - } -\end{minipage} - -It is, of course, possible to redefine the available linestyles or to define new -linestyles. - -\begin{minipage}[T]{0.5\linewidth} - \begin{verbatim} - \definecolor{MyColor}{cmyk}{0.6 0.21 1.0 0.2} - \newpsstyle{MyLine} - {linecolor=MyColor, linewidth=2pt, - linestyle=dashed, - dash=1pt 1pt 4pt 1pt 1pt 3pt, - dotstyle=*, showpoints=true, - dotsize=5pt} - \newpsstyle{MyLineA} - {linecolor=blue, linestyle=dotted, - dotstyle=asterisk, showpoints=true} - - \listplot[style=MyLine] - {\IdentI} - \listplot[style=MyLineA] - {\IdentII} - - \putSE{\LegendDefinition{ - \LegLine{style=MyLine} & IdentI - \LegLine{style=MyLineA} & IdentII - }} - \end{verbatim} -\end{minipage} -\begin{minipage}[T]{0.5\linewidth} - \begin{NumericDataPlot} - {\textwidth}{5cm} - - \definecolor{MyColor}{cmyk}{0.6 0.21 1.0 0.2} - \newpsstyle{MyLine}{linecolor=MyColor, linewidth=2pt, linestyle=dashed, - dash=1pt 1pt 4pt 1pt 1pt 3pt, dotstyle=*, showpoints=true, dotsize=5pt} - \newpsstyle{MyLineA}{linecolor=blue, linestyle=dotted, - dotstyle=asterisk, showpoints=true} - - \setxAxis - {xMin=1, xMax=1.6, Dx=0.2} - \setyAxis - {yMin=50, yMax=150, Dy=25} - - \plotxAxis[NoLabel]{} - \plotyAxis[NoLabel]{} - - \listplot[style=MyLine] - {\IdentI} - \listplot[style=MyLineA] - {\IdentII} - - \putSE{\LegendDefinition{ - \LegLine{style=MyLine} & IdentI - }} - \end{NumericDataPlot} -\end{minipage} - - -% ================================= -% | | -% | Legend | -% | | -% ================================= - -\subsection{Legend} - -The legend may be created with \verb|\LegendDefinition|. The command takes the -two optional arguments \texttt{nrCols} and \texttt{LabelOrientation=[l|c|r]}. -The mandatory argument is the definition of a table as demonstrated in the -follwing examples. - - \begin{verbatim} - \LegendDefinition{ - \LegLine{style=StdLineStyA} & IdentI\\ - \LegLine{style=StdLineStyB, linewidth=3pt} & second legend - } - \end{verbatim} - \LegendDefinition{ - \LegLine{style=StdLineStyA} & IdentI\\ - \LegLine{style=StdLineStyB, linewidth=3pt} & second legend - } - \begin{verbatim} - \newpsstyle{LegendBoxStyle}% - {framearc=0.2, fillstyle=solid, fillcolor=yellow, opacity=0.2} - \LegendDefinition[nrCols=2]{ - \LegLine{style=StdLineStyA} & IdentI & - \LegLine{style=StdLineStyB, linewidth=3pt} & legend 2 - \newpsstyle{LegendBoxStyle}% - {fillstyle=solid, fillcolor=white} - } - \end{verbatim} - \newpsstyle{LegendBoxStyle}% - {framearc=0.2, fillstyle=solid, fillcolor=yellow, opacity=0.2} - \LegendDefinition[nrCols=2]{ - \LegLine{style=StdLineStyA} & IdentI & - \LegLine{style=StdLineStyB, linewidth=3pt} & legend 2 - } - \newpsstyle{LegendBoxStyle}% - {fillstyle=solid, fillcolor=white} - \begin{verbatim} - \LegendDefinition[LabelOrientation=c]{ - \LegLine{style=StdLineStyA} & IdentI\\ - \LegLine{style=StdLineStyB, linewidth=3pt} & legend 2 \\ - \LegLine{style=StdLineStyC} & whatever this data is\ldots\\ - \LegLine{style=StdLineStyD} & and more data - } - \end{verbatim} - \LegendDefinition[LabelOrientation=c]{ - \LegLine{style=StdLineStyA} & IdentI\\ - \LegLine{style=StdLineStyB, linewidth=3pt} & second legend\\ - \LegLine{style=StdLineStyC} & whatever this data is\ldots\\ - \LegLine{style=StdLineStyD} & and more data - } - -\subsection{Add Lines to the Plot} - -Horizontal and vertical lines may be added to the plot with the commands -\verb|\NDPhline{coord}|, \verb|\NDPvline{coord}| and \verb|\NDPline{coord}|. It is also possible to put -nodes and draw lines between them, see placing stuff\ldots - -\begin{minipage}[T]{0.5\linewidth} - \begin{verbatim} - \begin{NumericDataPlot} - {\textwidth}{5cm} - \setxAxis - {xMin=1, xMax=1.6, Dx=0.2} - \setyAxis - {yMin=50, yMax=150, Dy=25} - - \plotxAxis[NoLabel]{} - \plotyAxis[NoLabel]{} - - \listplot[style=StdLineStyA] - {\IdentI} - - \NDPhline[linecolor=LineColorD]{73} - \NDPvline[linecolor=LineColorE, linestyle=dashed]{1.5} - \NDPline[linecolor=red]{1.1}{75}{1.3}{125} - \end{NumericDataPlot} - \end{verbatim} -\end{minipage} -\begin{minipage}[T]{0.5\linewidth} - \vspace{10pt} - \begin{NumericDataPlot} - {\textwidth}{5cm} - \setxAxis - {xMin=1, xMax=1.6, Dx=0.2} - \setyAxis - {yMin=50, yMax=150, Dy=25} - - \plotxAxis[NoLabel]{} - \plotyAxis[NoLabel]{} - - \listplot[style=StdLineStyA] - {\IdentI} - - \NDPhline[linecolor=LineColorD]{73} - \NDPvline[linecolor=LineColorE, linestyle=dashed]{1.5} - \NDPline[linecolor=red]{1.1}{75}{1.3}{125} - \end{NumericDataPlot} -\end{minipage} - -\subsection{Add Boxes to the Plot} - -Horizontal and vertical boxes may be added to the plot with the commands -\verb|\NDPhbox{coord}|, \verb|\NDPvbox{coord}| and \verb|\NDPbox{coord}|. It is also possible to put -nodes and draw lines between them, see placing stuff\ldots - -\begin{minipage}[T]{0.5\linewidth} - \begin{verbatim} - \begin{NumericDataPlot} - {\textwidth}{5cm} - \setxAxis - {xMin=1, xMax=1.6, Dx=0.2} - \setyAxis - {yMin=50, yMax=150, Dy=25} - - \plotxAxis[NoLabel]{} - \plotyAxis[NoLabel]{} - - \NDPhbox[fillstyle=solid,fillcolor=green]% - {75.0}{100.0}% - - \listplot[style=StdLineStyA] {\IdentI} - - \NDPvbox[fillstyle=solid,fillcolor=red] - {1.4}{1.5} - - \NDPbox[fillstyle=solid,% - fillcolor=orange, opacity=0.2, linestyle=none]% - {1.1}{60}{1.15}{130} - \end{NumericDataPlot} - \end{verbatim} -\end{minipage} -\begin{minipage}[T]{0.5\linewidth} - \vspace{10pt} - \begin{NumericDataPlot} - {\textwidth}{5cm} - \setxAxis - {xMin=1, xMax=1.6, Dx=0.2} - \setyAxis - {yMin=50, yMax=150, Dy=25} - - \plotxAxis[NoLabel]{} - \plotyAxis[NoLabel]{} - - \NDPhbox[fillstyle=solid,fillcolor = green]% - {75.0}{100.0}% - - \listplot[style=StdLineStyA] {\IdentI} - - \NDPvbox[fillstyle=solid,fillcolor=red] - {1.4}{1.5} - - \NDPbox[fillstyle=solid,% - fillcolor=orange, opacity=0.2, linestyle=none]% - {1.1}{60}{1.15}{130} - \end{NumericDataPlot} -\end{minipage} - - -\subsection{Grid} - -One may choose not to plot the grid with the option \texttt{NoGrid} for the -commands \verb|\plotxAxis| and \verb|\plotyAxis|. - -If the grid is plottet with the axis it may happen that the grid is plottet over -the axis. To avoid this, plot the grid first and then plot the axis as shown. - -\begin{minipage}[T]{0.5\linewidth} - \begin{verbatim} - \begin{NumericDataPlot} - {\textwidth}{5cm} - \setxAxis - {xMin=1, xMax=1.6, Dx=0.2} - \setyAxis - {yMin=50, yMax=150, Dy=25} - - \plotxGrid - \plotyGrid - \plotxAxis - [NoLabel, NoGrid, AxisStyle=Boxed]{} - \plotyAxis - [NoLabel, NoGrid, AxisStyle=Boxed]{} - - \listplot[style=StdLineStyA] - {\IdentI} - - \end{NumericDataPlot} - \end{verbatim} -\end{minipage} -\begin{minipage}[T]{0.5\linewidth} - \vspace{10pt} - \begin{NumericDataPlot} - {\textwidth}{5cm} - \setxAxis - {xMin=1, xMax=1.6, Dx=0.2} - \setyAxis - {yMin=50, yMax=150, Dy=25} - - \plotxGrid - \plotyGrid - \plotxAxis[NoLabel, NoGrid, AxisStyle=Boxed]{} - \plotyAxis[NoLabel, NoGrid, AxisStyle=Boxed]{} - - \listplot[style=StdLineStyA] - {\IdentI} - - \end{NumericDataPlot} -\end{minipage} - - -\subsection{Logarithmic axes} - - -\begin{minipage}[T]{0.5\linewidth} - \begin{verbatim} - \begin{NumericDataPlot}{\textwidth}{5cm} - \setxAxis - {xMin=6, xMax=2500, Dx=10, xLog} - \setyAxis - {yMin=0, yMax=2500, Dy=500} - \plotxAxis{} - \plotyAxis{} - - \listplot{\LogData} - \end{NumericDataPlot} - \end{verbatim} -\end{minipage} -\begin{minipage}[T]{0.5\linewidth} - \vspace{10pt} - \begin{NumericDataPlot}{\textwidth}{5cm} - \setxAxis{xMin=6, xMax=2500, Dx=10, xLog} - \setyAxis{yMin=0, yMax=2500, Dy=500} - \plotxAxis{} - \plotyAxis{} - - \listplot{\LogData} - \end{NumericDataPlot} -\end{minipage} - - -\begin{minipage}[T]{0.5\linewidth} - \begin{verbatim} - \begin{NumericDataPlot}{\textwidth}{5cm} - \setxAxis - {xMin=1, xMax=1500, Dx=10, xLog} - \setyAxis - {yMin=1, yMax=1500, Dy=10, yLog} - \plotxAxis{} - \plotyAxis{} - - \listplot{\LogData} - \end{NumericDataPlot} - \end{verbatim} -\end{minipage} -\begin{minipage}[T]{0.5\linewidth} - \vspace{10pt} - \begin{NumericDataPlot}{\textwidth}{5cm} - \setxAxis{xMin=1, xMax=1500, Dx=10, xLog} - \setyAxis{yMin=1, yMax=1500, Dy=10, yLog} - \plotxAxis{} - \plotyAxis{} - - \listplot{\LogData} - \end{NumericDataPlot} -\end{minipage} - - - - - diff --git a/Master/texmf-dist/doc/latex/numericplots/DataTestRealData.tex b/Master/texmf-dist/doc/latex/numericplots/DataTestRealData.tex deleted file mode 100644 index 985ee468f20..00000000000 --- a/Master/texmf-dist/doc/latex/numericplots/DataTestRealData.tex +++ /dev/null @@ -1,174 +0,0 @@ -% data written by export2latex -% date: 10-Mar-2010 - -\def\DataA{ -2 58.828 -3 56.353 -4 58.817 -5 55.814 -6 56.713 -7 52.671 -8 56.493 -9 48.933 -10 52.068 -11 45.674 -12 48.869 -13 48.317 -14 49.677 -15 62.636 -16 51.374 -17 48.876 -} - -\def\DataB{ -2 62.894 -3 59.824 -4 59.908 -5 56.158 -6 54.775 -7 50.489 -8 50.897 -9 44.732 -10 44.923 -11 39.731 -12 39.663 -13 37.731 -14 36.13 -15 38.342 -16 30.646 -17 28.224 -} -\def\DataC{ - 2.0000 52.5244 - 3.0000 52.9925 - 4.0000 52.7279 - 5.0000 51.7954 - 6.0000 50.4234 - 7.0000 48.9477 - 8.0000 47.7296 - 9.0000 47.0674 - 10.0000 47.1232 - 11.0000 47.8834 - 12.0000 49.1618 - 13.0000 50.6454 - 14.0000 51.9710 - 15.0000 52.8140 - 16.0000 52.9681 - 17.0000 52.3955 -} - -\def\DataD{ -2.0000 48.9294 - 3.0000 47.7015 - 4.0000 46.1762 - 5.0000 44.5214 - 6.0000 42.9193 - 7.0000 41.5462 - 8.0000 40.5534 - 9.0000 40.0500 - 10.0000 40.0916 - 11.0000 40.6736 - 12.0000 41.7318 - 13.0000 43.1498 - 14.0000 44.7715 - 15.0000 46.4183 - 16.0000 47.9090 - 17.0000 49.0795 -} - -\def\DataE{ - 2.0000 55.0918 - 3.0000 57.2074 - 4.0000 58.8597 - 5.0000 59.9770 - 6.0000 60.5465 - 7.0000 60.6154 - 8.0000 60.2864 - 9.0000 59.7056 - 10.0000 59.0472 - 11.0000 58.4936 - 12.0000 58.2160 - 13.0000 58.3549 - 14.0000 59.0052 - 15.0000 60.2054 - 16.0000 61.9334 - 17.0000 64.1090 -} - -\def\DataF{ -2 20.828 -3 20.353 -4 26.817 -5 20.828 -6 20.353 -7 26.817 -8 22.828 -9 23.353 -10 24.817 -11 20.828 -12 28.353 -13 26.817 -14 22.828 -15 27.353 -16 26.817 -17 24.9 -} - -\def\DataG{ - 2.0000 34.2537 - 3.0000 33.1056 - 4.0000 32.5301 - 5.0000 32.3504 - 6.0000 32.4343 - 7.0000 32.6791 - 8.0000 33.0000 - 9.0000 33.3209 - 10.0000 33.5657 - 11.0000 33.6496 - 12.0000 33.4699 - 13.0000 32.8944 - 14.0000 31.7463 - 15.0000 29.7847 - 16.0000 26.6776 - 17.0000 21.9643 -} - - -\def\DataDBhex{ -2 93 -3 87.09 -4 80.44 -5 74.57 -6 68.55 -7 63.55 -8 57.9 -9 53.86 -10 49.4 -11 46.09 -12 42.51 -13 39.17 -14 35.98 -15 32.39 -16 30.25 -17 28.53 -} - -\def\DataREShexint{ -2 88.312 -3 82.771 -4 76.83 -5 71.332 -6 65.886 -7 61.094 -8 56.068 -9 52.002 -10 48.015 -11 44.735 -12 41.543 -13 38.397 -14 35.457 -15 32.409 -16 29.98 -17 28.332 -} - diff --git a/Master/texmf-dist/doc/latex/numericplots/FurtherExamples.tex b/Master/texmf-dist/doc/latex/numericplots/FurtherExamples.tex deleted file mode 100644 index f770c7ebc45..00000000000 --- a/Master/texmf-dist/doc/latex/numericplots/FurtherExamples.tex +++ /dev/null @@ -1,177 +0,0 @@ -\section{Further Examples} - -\def\MoreData{ -0 5 -1 7 -2 10 -3 11 -4 11.5 -5 10 -6 5 -7 4 -8 9 -9 12 -10 11 -11 5 -} - -\def\MoreDataI{ -0 -5 -1 -7 -2 -10 -3 -11 -4 -11.5 -5 -10 -6 10 -7 15 -8 10 -9 -12 -10 -11 -11 -5 -} - -\begin{minipage}{0.5\linewidth} -\begin{verbatim} - \listplot - [style=StdLineStyA] - {\MoreData} - \listplot - [style=StdLineStyB, yEnd=10] - {\MoreData} - \listplot - [style=StdLineStyC, xStart=5, xEnd=9] - {\MoreData} - \listplot - [style=StdLineStyD, showpoints=true, nStep=2] - {\MoreData} -\end{verbatim} -\end{minipage}\begin{minipage}{0.5\linewidth} -\centering -\begin{NumericDataPlot}{\textwidth}{5cm} - \setxAxis{xMin=0, xMax=15, Dx=5, xO=0} - \setyAxis{yMin=0, yMax=15, Dy=5, yO=0} - - \plotxAxis[NoLabel]{x-axis label} - \plotyAxis[NoLabel]{y-axis label} - - \listplot[style=StdLineStyA]{\MoreData} - \listplot[style=StdLineStyB, yEnd=10]{\MoreData} - \listplot[style=StdLineStyC, xStart=5, xEnd=9]{\MoreData} - \listplot[style=StdLineStyD, showpoints=true, nStep=2]{\MoreData} -\end{NumericDataPlot} -\end{minipage} - - -\begin{NumericDataPlot}{\textwidth}{5cm} - \setxAxis{xMin=0, xMax=15, Dx=5, xO=0} - \setyAxis{yMin=0, yMax=15, Dy=5, yO=10} - - \plotxAxis{x-axis label} - \plotyAxis{y-axis label} - - \listplot[style=StdLineStyA, yMaxValue=10]{\MoreData} -\end{NumericDataPlot} - - -\subsection{Fill area between plots} - -\begin{minipage}{0.5\linewidth} -\begin{verbatim} - \begin{NumericDataPlot}% - {\textwidth}{5cm} - \setxAxis - {xMin=0, xMax=15, Dx=5, xO=0} - \setyAxis - {yMin=-15, yMax=15, Dy=5, yO=10} - - \plotxAxis{x-axis label} - \plotyAxis[NoLabel]{} - - \pscustom% - [style=StdLineStyA, fillstyle=solid, % - fillcolor=blue!40]{% - \listplot{\MoreData}% - \listplot[ChangeOrder]{\MoreDataI}% - } - \end{NumericDataPlot} -\end{verbatim} -\end{minipage}\begin{minipage}{0.5\linewidth} -\centering - \begin{NumericDataPlot}{\textwidth}{5cm} - \setxAxis{xMin=0, xMax=15, Dx=5, xO=0} - \setyAxis{yMin=-15, yMax=15, Dy=5, yO=10} - - \plotxAxis{x-axis label} - \plotyAxis[NoLabel]{} - - \pscustom[style=StdLineStyA, fillstyle=solid, fillcolor=blue!40]{% - \listplot{\MoreData}% - \listplot[ChangeOrder]{\MoreDataI}% - } - \end{NumericDataPlot} -\end{minipage} - - - - - - -\begin{minipage}{0.5\linewidth} -\begin{verbatim} - ... - \pscustom% - [style=StdLineStyA, fillstyle=solid, % - fillcolor=green!40]{% - \NDPhline{0} - \listplot[ChangeOrder]{\MoreDataI}% - } - ... -\end{verbatim} -\end{minipage}\begin{minipage}{0.5\linewidth} -\centering - \begin{NumericDataPlot}{\textwidth}{5cm} - \setxAxis{xMin=0, xMax=15, Dx=5, xO=0} - \setyAxis{yMin=-15, yMax=15, Dy=5, yO=10} - - \plotxAxis{x-axis label} - \plotyAxis[NoLabel]{} - - \pscustom% - [style=StdLineStyA, fillstyle=solid, % - fillcolor=green!40]{% - \NDPhline{0} - \listplot[ChangeOrder]{\MoreDataI}% - } - \end{NumericDataPlot} -\end{minipage} - - -\begin{minipage}{0.5\linewidth} -\begin{verbatim} - ... - \pscustom% - [style=StdLineStyA, fillstyle=solid, % - fillcolor=red!40]{% - \NDPline{0}{5}{11}{10} - \listplot[ChangeOrder]{\MoreDataI}% - } - ... -\end{verbatim} -\end{minipage}\begin{minipage}{0.5\linewidth} -\centering - \begin{NumericDataPlot}{\textwidth}{5cm} - \setxAxis{xMin=0, xMax=15, Dx=5, xO=0} - \setyAxis{yMin=-15, yMax=15, Dy=5, yO=10} - - \plotxAxis{x-axis label} - \plotyAxis[NoLabel]{} - - \pscustom% - [fillstyle=solid, linestyle=none,% - fillcolor=red!40]{% - \NDPline{0}{5}{11}{10} - \listplot[ChangeOrder]{\MoreDataI}% - } - \listplot[style=StdLineStyB]{\MoreDataI} - \end{NumericDataPlot} -\end{minipage} \ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/numericplots/MatlabSupport.tex b/Master/texmf-dist/doc/latex/numericplots/MatlabSupport.tex deleted file mode 100644 index 6c914996ca4..00000000000 --- a/Master/texmf-dist/doc/latex/numericplots/MatlabSupport.tex +++ /dev/null @@ -1,121 +0,0 @@ -\subsection{export2latex.m} - -The function \texttt{export2latex(data, filename, [options])} may be used to -export data from Matlab to be used with NumericPlots.sty. The function takes the -two parameters data and filename, where filename is the name of the file where -the data should be stored with full path but without extension. Data is a -structure with the three entries x, y, and ident, where x are the x-data, y the -y-data and ident is an identifier to have access to the data in Latex. To access -the data in Latex the command \verb+\Data+ is used. - -The parameter data may be provided as an 1xK array if each entry of the array is -a structure with the entries x, y and ident. There may be an additional entry -descr. -\begin{itemize} - \item data(1,i).x = $X_i$ - \item data(1,i).y = $Y_i$ - \item data(1,i).ident = Identifier - \item (data(1,i).descr = Description) -\end{itemize} -Identifier must be a valid Latex command name, which basically means it must be -a string without numbers. - -For every entry of data, $X$ and $Y$ must be arrays of the same size -$M\text{x}N$. If $M>1$, each column of the array is exported to the file and the -identifier is expanded by the roman representation of the column number. - -It might be useful to do a \texttt{interp1} before exporting the data to get -smaller files and to use less of \TeX's memory. ($\rightarrow$ script -Patrick?!?) - -The optional parameter \texttt{options} might be used to control which -additional information is provided in the output file. -\begin{itemize} - \item \texttt{options.DataBoundaries} [true] If set to true, the output file - contains the commands \verb+\DataXmin+, \verb+\DataXmax+, \verb+\DataYmin+ and - \verb+\DataYmax+ which may be used to define the axis. - \item \texttt{options.AxisBoundaries} [false] If set to true, the output file - contains the commands \verb+\DataXminAxis+, \verb+\DataXmaxAxis+, - \verb+\DataYminAxis+ and \verb+\DataYmaxAxis+ which may be used to define the - axis. In contrary to the DataBoundaries the AxisBoundaries add an additional - gap of \texttt{options.AxisBoundariesGap} [10] percent of the full scale to - the data boundaries such that the plot doesn't touch the axis. -\end{itemize} - -\subsection{struct2latex.m} -The function -\texttt{struct2latex(data,[xname],[downsample],[filename],[postfix],[options])} -may be used to export a Matlab struct to be used with NumericPlots.sty. The -function is based on export2latex and the \verb+options+ argument is given to -export2latex. The optional argument \verb+xname+ specifies the fieldname of the -x-data. If no \verb+xname+ is given, you have to chose one via popup. All other -fields are treated like y-data. Furthermore, the identifier of the y-data are -equal to the fieldnames and have to be valid Latex commands (fieldnames with -numbers are not supported). The struct2latex command only supports 1 dimensional -arrays (row vectors). Column vectors are mapped for propper export without -warning. With the optional argument \verb+downsample+ (integer$>0$) it is -possible to downsample the data for smaller files. A warning is given when data -points exceed $5000$. Usually $1000$ data points are enough for a propper plot -in latex. The optional argument \verb+filename+ specifies the outputname with -path of the texfile. If no filename is given, it has to be chosen via popup. The -optional argument \verb+postfix+ can be used to put a postfix after the -fieldname in the identifier of the y-data. The \verb+options+ argument is also -optional and equal to the options argument of the function export2latex. - -Matlab example. -\begin{verbatim} - % data for struct2latex should be row-vectors. anyway, column-vectors are - % mapped to row-vectors. matrices are not supported - - %% export row-vectors - t = [1:0.1:10]; - - data.time = t; - data.sin = sin(t); - data.cos = cos(t); - data.exp = exp(t); - data.tan = tan(t); - - %struct2latex(data,xname,downsample,filename,postfix,options) - %downsample,filename,postfix,options are optional arguments - struct2latex(data,'time',1,'texdataA','row'); -\end{verbatim} - -\subsection{dspace2struct} -The function \texttt{dspace2struct(dataname,version)} may be used to import -\texttt{.mat} created by \textsc{dSpace} to \textsc{Matlab}. It returns a -\textsc{Matlab} struct out of the provided variables \verb+dataname+ and -\verb+version+. Thereby \verb+dataname+ is the name of the \textsc{dSpace} -\verb+.mat+ file and the optional string argument \verb+version+ has to be equal -\verb+version = 'NG'+ if \textsc{dSpace Control Desk Next Generation} is used. -It is convenient to chose a unique signal name in \textsc{Matlab/Simulink} -because they will be the same in \textsc{dSpace}. The function -\texttt{dspace2struct(dataname,version)} just adopts the names provided by -\textsc{dSpace} and use them as fieldnames. The time vector will always be -called \verb+.time+. - -Matlab example: -\begin{verbatim} - dataOG = dspace2struct(measurements) %Old Control Desk - dataNG = dspace2struct(measurements,'NG') %Control Desk Next Generation -\end{verbatim} - -The resulting structs \verb+dataOG+ and \verb+dataNG+ differ in way of -structuring. In the older versions of \textsc{dSpace} it was only possible to -save one time vector. The \textsc{dSpace Control Desk Next Generation} allows to -save several time vectors. So it was necessary to save the index of the time -vector with the signal name. Typical plot commands for the two data structures -look as follows: -\begin{verbatim} - %Old Control Desk - plot(dataOG.time,dataOG.signalname); - - %Control Desk Next Generation - plot(dataNG.time(dataNG.signalname.timeidx),dataNG.signalname.Data); -\end{verbatim} -\subsection{dspace2latex} -The function \texttt{dspace2latex} is just a combination of -\texttt{dspace2struct} and \texttt{struct2latex} with commonly used arguments. -It is a simple and quick way to export measurements from \textsc{dSpace} to -\LaTeX{} without any revision of the data. However, the current implementation -allows only data structures of the old version of \textsc{dSpace Control Desk}. diff --git a/Master/texmf-dist/doc/latex/numericplots/MultiplePlots.tex b/Master/texmf-dist/doc/latex/numericplots/MultiplePlots.tex deleted file mode 100644 index c385635b9c9..00000000000 --- a/Master/texmf-dist/doc/latex/numericplots/MultiplePlots.tex +++ /dev/null @@ -1,232 +0,0 @@ -% Copyright 2010 Thomas Koenig, Alexander Michel -% -% This file is part of NumericPlots. -% -% NumericPlots is free software: you can redistribute it and/or modify -% it under the terms of the GNU General Public License as published by -% the Free Software Foundation, either version 3 of the License, or -% any later version. -% -% NumericPlots is distributed in the hope that it will be useful, -% but WITHOUT ANY WARRANTY; without even the implied warranty of -% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -% GNU General Public License for more details. -% -% You should have received a copy of the GNU General Public License -% along with NumericPlots. If not, see . - - -\section{Multiple plots in one picture}\label{sec:MultiplePlots} - -xPicMin, xPicMax, yPicMin and yPicMax are the inner coordinates of one picture. -The position of the axes are defined in this coordinate system via xCoordMin, -xCoordMax, yCoordMin and yCoordMax. - -Example: - -\begin{verbatim} -% input data and define linestyles -\input{DataTestRealData} -\newpsstyle{Database}{linecolor=LineColorA, linestyle=none, dotstyle=*, -showpoints=true, dotsize=5pt} -\newpsstyle{Result}{linecolor=LineColorB, linestyle=none, dotstyle=+, -showpoints=true, dotsize=10pt} - -\begin{center} - \begin{NumericDataPlot}[xPicMin=0, xPicMax=1050, - yPicMin=0, yPicMax=1450]{\textwidth}{0.75\textheight} - - % --- definition of the axis and the grid --- - % set the axis of the lower left corner - \setxAxis{xMin=2, xMax=17, Dx=4, xCoordMin=0, xCoordMax=500} - \setyAxis{yMin=20, yMax=70, Dy=20, yCoordMin=0, yCoordMax=500} - - % plot the axis of the lower left corner - \plotxAxis{Stichnummer} - \plotyAxis{$F_{roll}$ in $\mega\newton$} - - \listplot[style=Database]{\DataA} - \listplot[style=Result]{\DataB} - \listplot[style=StdLineStyC]{\DataC} - \listplot[style=StdLineStyD]{\DataD} - \listplot[style=StdLineStyE]{\DataE} - \listplot[style=StdLineStyF]{\DataF} - \listplot[style=StdLineStyG]{\DataG} - - % set the y-axis for the plot in the middle of the left side - % x-axis remains the same - \setyAxis{yMin=20, yMax=70, Dy=20, yCoordMin=550, yCoordMax=1050} - % plot the axis (x-axis without ticklabels and label - \plotxAxis[NoTickLabel, NoLabel]{} - \plotyAxis{$F_{roll}$ in $\mega\newton$} - - \rput[t]{0}(250,550){a) Ein plot} - - \listplot[style=Database]{\DataA} - \listplot[style=Result]{\DataB} - - % set axis for the plot at the right side - \setxAxis{xMin=2, xMax=17, Dx=4, xCoordMin=600, xCoordMax=1050} - \setyAxis{yMin=20, yMax=70, Dy=10, yCoordMin=0, yCoordMax=1050} - - % plot the axis at the right side (y-axis without label) - \plotxAxis{Stichnummer} - \plotyAxis[NoLabel, TickSep=10]{$F_{roll}$ in $\mega\newton$} - - \listplot[style=Database]{\DataA} - \listplot[style=Result]{\DataB} - \listplot[style=StdLineStyC]{\DataC} - \listplot[style=StdLineStyD]{\DataD} - \listplot[style=StdLineStyE]{\DataE} - \listplot[style=StdLineStyF]{\DataF} - \listplot[style=StdLineStyG]{\DataG} - - % set the axis for the plot at the top - \setxAxis{xMin=8, xMax=17, Dx=1, xCoordMin=0, xCoordMax=1050} - \setyAxis{yMin=35, yMax=65, Dy=10, yO=40, yCoordMin=1150, yCoordMax=1450} - - % plot the axis for the plot at the top - \plotxAxis[NoLabel]{Stichnummer} - \plotyAxis[NoLabel]{$F_{roll}$ in $\mega\newton$} - - % plot only part of the data - \listplot[style=Database, xStart=11, xEnd=17]{\DataA} - \listplot[style=Result, xStart=8, xEnd=13]{\DataB} - - \end{NumericDataPlot} - - % put legend outside of the plot - \LegendDefinition[nrCols=1, LabelOrientation=r]{ - \LegLine{Database} & Werte aus der Datenbank \\ - \LegLine{Result} & Modell} - -\end{center} -\end{verbatim} - -% input data and define linestyles -\input{DataTestRealData} -\newpsstyle{Database}{linecolor=LineColorA, linestyle=none, dotstyle=*, -showpoints=true, dotsize=5pt} -\newpsstyle{Result}{linecolor=LineColorB, linestyle=none, dotstyle=+, -showpoints=true, dotsize=10pt} - -\begin{center} - \begin{NumericDataPlot}[xPicMin=0, xPicMax=1050, - yPicMin=0, yPicMax=1450]{\textwidth}{0.75\textheight} - - % --- definition of the axis and the grid --- - % set the axis of the lower left corner - \setxAxis{xMin=2, xMax=17, Dx=4, xCoordMin=0, xCoordMax=500} - \setyAxis{yMin=20, yMax=70, Dy=20, yCoordMin=0, yCoordMax=500} - - % plot the axis of the lower left corner - \plotxAxis{Stichnummer} - \plotyAxis{$F_{roll}$ in $\mega\newton$} - - \listplot[style=Database]{\DataA} - \listplot[style=Result]{\DataB} - \listplot[style=StdLineStyC]{\DataC} - \listplot[style=StdLineStyD]{\DataD} - \listplot[style=StdLineStyE]{\DataE} - \listplot[style=StdLineStyF]{\DataF} - \listplot[style=StdLineStyG]{\DataG} - - % set the y-axis for the plot in the middle of the left side - % x-axis remains the same - \setyAxis{yMin=20, yMax=70, Dy=20, yCoordMin=550, yCoordMax=1050} - % plot the axis (x-axis without ticklabels and label - \plotxAxis[NoTickLabel, NoLabel]{} - \plotyAxis{$F_{roll}$ in $\mega\newton$} - - \rput[t]{0}(250,550){a) Ein plot} - - \listplot[style=Database]{\DataA} - \listplot[style=Result]{\DataB} - - % set axis for the plot at the right side - \setxAxis{xMin=2, xMax=17, Dx=4, xCoordMin=600, xCoordMax=1050} - \setyAxis{yMin=20, yMax=70, Dy=10, yCoordMin=0, yCoordMax=1050} - - % plot the axis at the right side (y-axis without label) - \plotxAxis{Stichnummer} - \plotyAxis[NoLabel, TickSep=10]{$F_{roll}$ in $\mega\newton$} - - \listplot[style=Database]{\DataA} - \listplot[style=Result]{\DataB} - \listplot[style=StdLineStyC]{\DataC} - \listplot[style=StdLineStyD]{\DataD} - \listplot[style=StdLineStyE]{\DataE} - \listplot[style=StdLineStyF]{\DataF} - \listplot[style=StdLineStyG]{\DataG} - - % set the axis for the plot at the top - \setxAxis{xMin=8, xMax=17, Dx=1, xCoordMin=0, xCoordMax=1050} - \setyAxis{yMin=35, yMax=65, Dy=10, yO=40, yCoordMin=1150, yCoordMax=1450} - - % plot the axis for the plot at the top - \plotxAxis[NoLabel]{Stichnummer} - \plotyAxis[NoLabel]{$F_{roll}$ in $\mega\newton$} - - % plot only part of the data - \listplot[style=Database, xStart=11, xEnd=17]{\DataA} - \listplot[style=Result, xStart=8, xEnd=13]{\DataB} - - \end{NumericDataPlot} - - % put legend outside of the plot - \LegendDefinition[nrCols=1, LabelOrientation=r]{ - \LegLine{style=Database} & Werte aus der Datenbank \\ - \LegLine{style=Result} & Modell} -\end{center} - -An example with different y-axes on the left and on the right side: -\begin{small} -\begin{verbatim} -\begin{center} - \begin{NumericDataPlot}{\textwidth}{0.25\textheight} - - % --- definition of the axis and the grid --- - \setxAxis{xMin=2, xMax=17, Dx=4} - \setyAxis{yMin=20, yMax=70, Dy=20} - - % plot the axis of the lower left corner - \plotxAxis{Stichnummer} - \plotyAxis{$F_{roll}$ in $\mega\newton$} - - \listplot[style=Database]{\DataA} - - % define a second y-axis - \setyAxis{yMin=40, yMax=90, Dy=20} - \plotyAxis[AxisStyle=Right, NoGrid]{$F_{roll}$} - - \listplot[style=Result]{\DataA} - - \end{NumericDataPlot} -\end{center} -\end{verbatim} -\end{small} - -\begin{center} - \begin{NumericDataPlot}{\textwidth}{0.25\textheight} - - % --- definition of the axis and the grid --- - \setxAxis{xMin=2, xMax=17, Dx=4} - \setyAxis{yMin=20, yMax=70, Dy=20} - - % plot the axis of the lower left corner - \plotxAxis{Stichnummer} - \plotyAxis{$F_{roll}$ in $\mega\newton$} - - \listplot[style=Database]{\DataA} - - % define a second y-axis - \setyAxis{yMin=40, yMax=90, Dy=20} - \plotyAxis[AxisStyle=Right, NoGrid]{$F_{roll}$} - - \listplot[style=Result]{\DataA} - - - - \end{NumericDataPlot} - -\end{center} \ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/numericplots/NumericPlots.pdf b/Master/texmf-dist/doc/latex/numericplots/NumericPlots.pdf index 1559820da0b..9bbaa14d848 100644 Binary files a/Master/texmf-dist/doc/latex/numericplots/NumericPlots.pdf and b/Master/texmf-dist/doc/latex/numericplots/NumericPlots.pdf differ diff --git a/Master/texmf-dist/doc/latex/numericplots/NumericPlotsDoc.tex b/Master/texmf-dist/doc/latex/numericplots/NumericPlotsDoc.tex deleted file mode 100644 index 53cabbab2f5..00000000000 --- a/Master/texmf-dist/doc/latex/numericplots/NumericPlotsDoc.tex +++ /dev/null @@ -1,175 +0,0 @@ -% Copyright 2010 Thomas Koenig, Alexander Michel, Michael Baumgart -% -% This file is part of NumericPlots. -% -% NumericPlots is free software: you can redistribute it and/or modify -% it under the terms of the GNU General Public License as published by -% the Free Software Foundation, either version 3 of the License, or -% any later version. -% -% NumericPlots is distributed in the hope that it will be useful, -% but WITHOUT ANY WARRANTY; without even the implied warranty of -% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -% GNU General Public License for more details. -% -% You should have received a copy of the GNU General Public License -% along with NumericPlots. If not, see . - - -\documentclass[parskip]{scrartcl} - -\usepackage[Gray]{SIunits} -% \usepackage{floatbarrier} -% \usepackage{showexpl} -\usepackage{etex} % use e-TeX’s extended register set - -% options for package: -% BW: black and white -% AxisStyle=