1
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}

\begin{document}

\begin{tikzpicture}
\begin{axis}[
    axis lines = left,
    xlabel = $Q$,
    ylabel = {$P$},
    xmin=0, xmax=30,
    ymin=0, ymax=30,
    xtick={0,5,...,25},
    ytick={0,5,...,25},
]
\addplot [
    domain=0:20, 
    color=red,
]
{20-0.5*x};
\addplot [
    domain=0:25, 
    color=blue,
    dashed,
]
{10-0.4*x};
\addplot [
    domain=0:25, 
    color=green,
    dashed,
]
{5-0.2*x};
\addplot [
    domain=0:25, 
    color=black,
]
{15-0.6*x};
\addplot [
    domain=0:25, 
    color=black,
]
{10-0.4*x};
\addplot [
    domain=0:25, 
    color=black,
]
{5-0.2*x};
\node[label={180:{$P_1$}},circle,fill,inner sep=2pt] at (axis cs:10,15) {};
\node[label={180:{$P_2$}},circle,fill,inner sep=2pt] at (axis cs:20,10) {};
\node[label={180:{$P_3$}},circle,fill,inner sep=2pt] at (axis cs:25,5) {};
\node[label={0:{$Q_1$}},circle,fill,inner sep=2pt] at (axis cs:10,0) {};
\node[label={0:{$Q_2$}},circle,fill,inner sep=2pt] at (axis cs:20,0) {};
\node[label={0:{$Q_3$}},circle,fill,inner sep=2pt] at (axis cs:25,0) {};
\legend{$Q_1=200-10P$,$Q_2=100-4P$,$MR_1$,$MR_2$,$D$,$MR$}
\end{axis}
\end{tikzpicture}

enter image description here

3
  • 3
    Welcome! I added a suitable preamble and the image of the output. Please clarify what the question is.
    – egreg
    Nov 25, 2023 at 16:08
  • 1
    Welcome. // What is your question? (Please add to your question via Edit)
    – MS-SPO
    Nov 25, 2023 at 16:51
  • 1
    If you want the three nodes at (10,0), (20,0) and (25,0) and their labels show completely, you need to add clip=false, as option to the axis environment (\begin{axis}[clip=false, ...). Nov 25, 2023 at 18:41

0

You must log in to answer this question.

Browse other questions tagged .