-
Notifications
You must be signed in to change notification settings - Fork 7
/
example-10.2.tex
36 lines (27 loc) · 958 Bytes
/
example-10.2.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
\documentclass{article}
%% Denote paragraphs with vertical space rather than indenting (not critical)
\usepackage{parskip}
%% Support for URL in introductory text (not needed for main example)
\usepackage{url}
%% *** Enable PGFPLOTS (automatically enables TikZ) ***
\usepackage{pgfplots}
%% Prevent some PGFPLOTS messages (not critical)
\pgfplotsset{compat=1.18,compat/show suggested version=false}
\begin{document}
%% Introductory Text
Example 10.2 from the book\\
\emph{Unlocking LaTeX Graphics: A Concise Guide to Ti$k$Z/PGF and PGFPLOTS}.\\
For more information, visit \url{https://latex-graphics.com}.
\par\bigskip
%% *** START OF EXAMPLE CODE ***
\begin{tikzpicture}
\begin{axis}[table/col sep=comma,
scale only axis, width=3cm, height=3cm,
symbolic x coords={A,B,C,D},
xtick=data]
\addplot[blue,mark=*]
table[x=Ltr,y=M1]{runtime.csv};
\end{axis}
\end{tikzpicture}
%% *** END OF EXAMPLE CODE ***
\end{document}