summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pgfplots/pgfplots.intro.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/pgfplots/pgfplots.intro.tex')
-rw-r--r--Master/texmf-dist/doc/latex/pgfplots/pgfplots.intro.tex62
1 files changed, 31 insertions, 31 deletions
diff --git a/Master/texmf-dist/doc/latex/pgfplots/pgfplots.intro.tex b/Master/texmf-dist/doc/latex/pgfplots/pgfplots.intro.tex
index 3cb4be4c2ab..c81d1a1268e 100644
--- a/Master/texmf-dist/doc/latex/pgfplots/pgfplots.intro.tex
+++ b/Master/texmf-dist/doc/latex/pgfplots/pgfplots.intro.tex
@@ -11,86 +11,86 @@
%\hspace{-1cm}%
\begin{tabular}{*{2}{p{4cm}}}%
}%
-\item[\LaTeX:] \lstinline!\usepackage{pgfplots}! and
+\item[\LaTeX:] |\usepackage{pgfplots}| and
{\HEAD
-\begin{lstlisting}
+\begin{codeexample}[code only]
\begin{tikzpicture}
\begin{axis}
...
\end{axis}
\end{tikzpicture}
-\end{lstlisting}
+\end{codeexample}
&
-\begin{lstlisting}
+\begin{codeexample}[code only]
\begin{tikzpicture}
\begin{semilogxaxis}
...
\end{semilogxaxis}
\end{tikzpicture}
-\end{lstlisting}
+\end{codeexample}
\\
\end{tabular}%
}
A small \LaTeX--example file can be found in
-\begin{lstlisting}
+\begin{codeexample}[code only]
doc/latex/pgfplots/pgfplotsexample.tex.
-\end{lstlisting}
+\end{codeexample}
-\item[Con{\TeX}t:] \lstinline!\usemodule[pgfplots]! and
+\item[Con{\TeX}t:] |\usemodule[pgfplots]| and
{\HEAD
-\begin{lstlisting}
+\begin{codeexample}[code only]
\starttikzpicture
\startaxis
...
\stopaxis
\stoptikzpicture
-\end{lstlisting}
+\end{codeexample}
&
-\begin{lstlisting}
+\begin{codeexample}[code only]
\starttikzpicture
\startsemilogxaxis
...
\stopsemilogxaxis
\stoptikzpicture
-\end{lstlisting}
+\end{codeexample}
\\
\end{tabular}%
}
A small Con{\TeX}t--example file can be found in
-\begin{lstlisting}
+\begin{codeexample}[code only]
doc/context/pgfplots/pgfplotsexample.tex.
-\end{lstlisting}
+\end{codeexample}
-\item[plain \TeX:] \lstinline!\input pgfplots.tex! and
+\item[plain \TeX:] |\input pgfplots.tex| and
{\HEAD
-\begin{lstlisting}
+\begin{codeexample}[code only]
\tikzpicture
\axis
...
\endaxis
\endtikzpicture
-\end{lstlisting}
+\end{codeexample}
&
-\begin{lstlisting}
+\begin{codeexample}[code only]
\tikzpicture
\semilogxaxis
...
\endsemilogxaxis
\endtikzpicture
-\end{lstlisting}
+\end{codeexample}
\\
\end{tabular}%
}
A small plain--\TeX--example file can be found in
-\begin{lstlisting}
+\begin{codeexample}[code only]
doc/plain/pgfplots/pgfplotsexample.tex.
-\end{lstlisting}
+\end{codeexample}
\end{description}
You may need to set low--level drivers if you intend to use |dvipdfm|, see section~\ref{sec:drivers}.
@@ -127,10 +127,10 @@ Plotting is done using \lstinline|\begin{axis} ... \addplot ...; \end{axis}|, wh
\end{axis}
\end{tikzpicture}%
\end{codeexample}
-The \lstinline!plot coordinates! and \lstinline!plot function! commands are two of the several \Tikz\ ways to create plots, see section~\ref{sec:addplot} for more details\footnote{Please note that you need \lstinline{gnuplot} installed to use \lstinline{plot function}.}. The options `|xlabel|' and `|ylabel|' define axis descriptions.
+The |plot coordinates| and |plot function| commands are two of the several \Tikz\ ways to create plots, see section~\ref{sec:addplot} for more details\footnote{Please note that you need \lstinline{gnuplot} installed to use \lstinline{plot function}.}. The options `|xlabel|' and `|ylabel|' define axis descriptions.
\subsection{Two plots in the same axis}
-Multiple \lstinline!\addplot!-commands can be placed into the same axis.
+Multiple |\addplot|-commands can be placed into the same axis.
% generated with this statement:
%\addplot plot[id=filesuffix_noise,domain=-6:5,samples=10] function{(-x**5 - 242 + (-300 + 600*rand(0)))};
\begin{codeexample}[leave comments]
@@ -221,18 +221,18 @@ The first plot employs inline coordinates; the second one reads numerical data f
\noindent
Besided the environment ``|loglogaxis|'' you can use
\begin{itemize}
- \item \lstinline!\begin{axis}...\end{axis}! for normal plots,
- \item \lstinline!\begin{semilogxaxis}...\end{semilogxaxis}! for plots which have a normal~$y$ axis and a logarithmic~$x$ axis,
- \item \lstinline!\begin{semilogyaxis}...\end{semilogyaxis}! the same with $x$~and~$y$ switched,
- \item \lstinline!\begin{loglogaxis}...\end{loglogaxis}! for double--logarithmic plots.
+ \item |\begin{axis}...\end{axis}| for normal plots,
+ \item |\begin{semilogxaxis}...\end{semilogxaxis}| for plots which have a normal~$y$ axis and a logarithmic~$x$ axis,
+ \item |\begin{semilogyaxis}...\end{semilogyaxis}| the same with $x$~and~$y$ switched,
+ \item |\begin{loglogaxis}...\end{loglogaxis}| for double--logarithmic plots.
\end{itemize}
You can also use
-\begin{lstlisting}
+\begin{codeexample}[code only]
\begin{axis}[xmode=normal,ymode=log]
...
\end{axis}
-\end{lstlisting}
-which is the same as \lstinline!\begin{semilogyaxis}...\end{semilogyaxis}!.
+\end{codeexample}
+which is the same as |\begin{semilogyaxis}...\end{semilogyaxis}|.
\begin{codeexample}[]
\begin{tikzpicture}
\begin{semilogyaxis}[
@@ -252,7 +252,7 @@ which is the same as \lstinline!\begin{semilogyaxis}...\end{semilogyaxis}!.
\end{codeexample}
\subsection{Cycling line styles}
-You can skip the style arguments for \lstinline!\addplot[...]! to determine plot specifications from a predefined list:
+You can skip the style arguments for |\addplot[...]| to determine plot specifications from a predefined list:
\label{page:plotcoords:src}%
\begin{codeexample}[width=4cm]
\begin{tikzpicture}