Advertisement
Guest User

Ops

a guest
Jun 29th, 2012
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 1.11 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.    unit vector ratio=1 1 1,
  9.    enlargelimits=true,
  10.    grid style={dashed, gray!30},
  11.    axis lines=middle,
  12.    inner axis line style={-stealth},
  13.    xlabel={\large $x$},
  14.    ylabel={\large $y$},
  15.    legend style={cells={anchor=west}},
  16.    yticklabel style={inner ysep=0pt, anchor=south east},
  17.    ytick={-3,-2,...,5},
  18.    xticklabel style={inner xsep=0pt, anchor=north west},
  19.    xtick={-8,-7,...,6},
  20.    ymin=-3.5,
  21.    ymax= 5.5,
  22.    xmin=-7.5,
  23.    xmax= 6.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[color=black,fill=red,only marks] coordinates{
  31. (-3,-2)
  32. (6,3)
  33. (2,4)};
  34. \addplot[color=black,dashed,fill=green,fill opacity=.20,mark=none] coordinates{
  35. (-3,-2)
  36. (6,3)
  37. (2,4)
  38. (-7,-1)
  39. (-3,-2)};
  40. \addplot[color=black,fill=blue,only marks] coordinates{
  41. (-7,-1)
  42. (1,-3)};
  43. \end{axis}
  44. \end{tikzpicture}
  45. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement