0

I am quite new to graphing in latex and need the following example:

enter image description here

I have no idea what package to use to generate the curly bracket over the red line and the label that goes with it.

An example of the code would be appreciated

PS: I do not provide a preamble because I am not sure of the packages needed.

1 Answer 1

3
\documentclass[tikz,border=3mm]{standalone}
\usetikzlibrary{decorations.pathreplacing,calligraphy}
\begin{document}
\begin{tikzpicture}
 \draw[thick,stealth-stealth] (0,6.5) |- (6.5,0);
 \draw foreach \x in {1,...,5} {(\x,0.1) -- (\x,-0.1) node[below]{$\x$}
    (0.1,\x) -- (-0.1,\x) node[left]{$\x$}};
 \draw[dashed] foreach \x in {1,3,5 }{(\x,0) |- (0,\x)};
 \draw[red,thick] (3,3) -- (5,5);
 \draw[thick,decorate,decoration={calligraphic brace,raise=0.5ex}]
    (3,3) -- node[above left=0.6ex,align=center,font=\sffamily]{Completed\\
        Strategies}(5,5);
\end{tikzpicture}
\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .