- \begin{tikzpicture}
- \begin{axis}[
- axis lines = left,
- xlabel = $Q$,
- ylabel = {$P$},
- xmin=0, xmax=35,
- ymin=0, ymax=35,
- ]
- \addplot [
- domain=0:30,
- color=blue,
- ]
- {30-x};
- \addlegendentry{Спрос}
- \addplot [
- domain=0:15,
- color=green,
- ]
- {7.5+0.5*x};
- \addlegendentry{Предложение 1}
- \addplot [
- domain=0:15,
- color=red,
- ]
- {5+0.5*x};
- \addlegendentry{Предложение 2}
- \node[label={180:{A}},circle,fill,inner sep=2pt] at (axis cs:15,15) {};
- \node[label={180:{B}},circle,fill,inner sep=2pt] at (axis cs:10,20) {};
- \draw[dashed] (axis cs:0,15) -- (axis cs:15,15) -- (axis cs:15,0);
- \draw[dashed] (axis cs:0,20) -- (axis cs:10,20) -- (axis cs:10,0);
- \node[below] at (axis cs:15,0) {$Q_1$};
- \node[below] at (axis cs:10,0) {$Q_2$};
- \node[left] at (axis cs:0,15) {$P_1$};
- \node[left] at (axis cs:0,20) {$P_2$};
- \end{axis}
- \end{tikzpicture}
[text] ававав
Viewer
Editor
You can edit this paste and save as new: