Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass{standalone}
- \usepackage{tikz,pgfplots}
- \begin{document}
- \begin{tikzpicture}
- \begin{axis}[
- legend entries={$700x$,$1050-500(x-1.5)$},
- legend style={anchor=north east},
- scale only axis,
- width=11cm,
- grid=major,
- grid style={dashed, gray!30},
- axis lines=middle,
- inner axis line style={-stealth},
- xlabel={\large $x$},
- ylabel={\large $y$},
- ylabel style={anchor=north east},
- yticklabel style={inner ysep=0pt, anchor=south east},
- ytick={0,100,...,1100},
- xticklabel style={inner xsep=0pt, anchor=north west},
- xtick={0,0.5,...,5},
- xscale=1.25,
- ymin=-100,
- ymax=1125,
- xmin=-.25,
- xmax=4.25,]
- \addplot[color=red,very thick,samples=200,domain=0:1.5] {x*700};
- \addplot[color=blue,very thick,samples=200,domain=1.5:3.60] {1050-(x-1.5)*500};
- \end{axis}
- \end{tikzpicture}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement