Advertisement
Guest User

Labels are wrong

a guest
Jun 27th, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.90 KB | None | 0 0
  1. \documentclass{standalone}        
  2. \usepackage{tikz,pgfplots}                    
  3. \begin{document}
  4. \begin{tikzpicture}
  5. \begin{axis}[
  6.     legend entries={$700x$,$1050-500(x-1.5)$},
  7.     legend style={anchor=north east},
  8.    scale only axis,
  9.    width=11cm,
  10.    grid=major,
  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.    ylabel style={anchor=north east},
  17.    yticklabel style={inner ysep=0pt, anchor=south east},
  18.    ytick={0,100,...,1100},
  19.    xticklabel style={inner xsep=0pt, anchor=north west},
  20.    xtick={0,0.5,...,5},
  21.    xscale=1.25,
  22.    ymin=-100,
  23.    ymax=1125,
  24.    xmin=-.25,
  25.    xmax=4.25,]
  26.    
  27. \addplot[color=red,very thick,samples=200,domain=0:1.5] {x*700};
  28. \addplot[color=blue,very thick,samples=200,domain=1.5:3.60] {1050-(x-1.5)*500};
  29. \end{axis}
  30. \end{tikzpicture}
  31. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement