Advertisement
luizaspan

Gráfico no LaTeX (pgfplots)

Sep 23rd, 2015
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.88 KB | None | 0 0
  1. % Remove the `multi` option and the code in between the
  2. % comment bars to achieve the `standalone` default output.
  3. \documentclass[border = {3mm, 3mm, 3mm, 3mm}]{standalone}
  4. \usepackage[utf8]{inputenc}
  5. \usepackage[brazil]{babel}
  6. \usepackage{pgfplots}
  7. \usepackage{siunitx}
  8. \pgfplotsset{compat=1.12}
  9. \pgfkeys{
  10.    /pgf/number format/.cd,
  11.        set thousands separator={\,},
  12.        min exponent for 1000 sep=4,
  13.        }
  14. \begin{document}
  15. \begin{tikzpicture}
  16.     \pgfplotsset{width=0.7\paperwidth,height=0.5\paperwidth,compat=1.12,
  17.         every axis legend/.append style={
  18.         at={(0.95,0.05)},
  19.         anchor=south east}}
  20.     \begin{axis}[
  21.         xlabel = $y_0$ (\si{\meter}),
  22.         ylabel = $t_v$ (\si{\meter}),
  23.         grid=major,
  24.         xmax=,xmin=,
  25.         ymax=,ymin=,
  26.         ]
  27.     \addplot+[mark size=1, color= blue
  28.         ] table [x index = 0, y index = 1] {questao1b.dat};
  29.     \end{axis}
  30. \end{tikzpicture}
  31. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement