I am desperately trying to get a small brace into a pspicture, bu it just doesn't work. I have already installed the
pstricks-add
package, but as soon as I want to add \psbrace
, nothing works anymore. Here is what I have:
\documentclass[12pt,a4paper]{article}\usepackage{amsmath} \usepackage{amsthm} \usepackage{amsfonts}\usepackage{tikz} \usepackage{pst-plot} \usepackage{pstricks-add} \usepackage{graphicx} \usepackage{caption} \begin{figure} \centering \begin{subfigure}{0.5\textwidth} \begin{pspicture}*(-1.5,-1.5)(8,8) \psaxes[labels=none,ticks=none]{->}(0,0)(0,0)(5.5,5.5) \psplot[linecolor=black,plotstyle=line] {0}{2.8}{x 1.9 add} \psplot[linecolor=black,plotstyle=line] {0}{4}{x} \psplot[linecolor=black,plotstyle=line] {0}{5}{x 2 exp -0.25 mul 1.5 x mul add 1.65 add} \rput(0,5.8){$Q(r_0)$} \rput(5.8,0){$r_0$} \rput(1,-0.5){$\widehat{r}$} \rput(1,0){$|$} \rput(1.75,-0.5){$\underline{r}$} \rput(1.75,0){$|$} \rput(3,-0.5){$r^T$} \rput(3,0){$|$} \psline[linestyle=dashed](1.75,-0.25)(1.75,5) \psline[linestyle=solid](1,-0.25)(1,5) \psbrace(3,3)(3,3.9) \end{pspicture} \caption{Text.} \end{subfigure}% ~ \begin{subfigure}{0.5\textwidth} ... \end{subfigure} \caption{}\label{figure2} \end{figure}