Advertisement
Guest User

Le problem

a guest
Jun 29th, 2012
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.86 KB | None | 0 0
  1. \documentclass{standalone}
  2. \usepackage{tikz,pgfplots}
  3. \begin{document}
  4. \begin{tikzpicture}
  5. \begin{axis}[
  6.    scale only axis,
  7.    grid=major,
  8.    width=11cm,
  9.    unit vector ratio=1 1 1,
  10.    enlargelimits=true,
  11.    grid style={dashed, gray!30},
  12.    axis lines=middle,
  13.    inner axis line style={-stealth},
  14.    xlabel={\large $x$},
  15.    ylabel={\large $y$},
  16.    yticklabel style={inner ysep=0pt, anchor=south east},
  17.    ytick={-1,0,1},
  18.    xticklabel style={inner xsep=0pt, anchor=north west},
  19.    xtick={-5,-4,...,5},
  20.    ymin=-1.5,
  21.    ymax= 1.5,
  22.    xmin=-5.5,
  23.    xmax= 5.5,
  24. after end axis/.code={
  25.        \path (axis cs:0,0)
  26.            node [anchor=north west,yshift=-0.075cm] {0}
  27.            node [anchor=south east,xshift=-0.075cm] {0};
  28.    }
  29. ]
  30. \addplot[mark=none,color=red,domain=-5:5,thick] {x/8};
  31. \end{axis}
  32. \end{tikzpicture}
  33. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement