2

I have the following pst-plot. How can I write A_{2} (using \rput) with white background? enter image description here

the entire Code:

\begin{pspicture}(-2,-3.5)(6,3)
    \psgrid[griddots=10,gridlabels=0pt,subgriddiv=0,gridcolor=black!20]
    \psset{algebraic,linewidth=1.5pt}
    \psaxes[ticks=none,labels=none]{->}(0,0)(-2,-3.5)(6,3)[$x$,0][$y$,180]


    \pscustom[fillstyle=vlines,fillcolor=cyan,linestyle=none]{%
      \psline(-1,0)(*-1 {-0.5*(-1-2)^2+2})
      \psplot[algebraic]{-1}{0}{-0.5*(x-2)^2+2}
      \psline(0,0)(0,0)

      \psline(0,0)(0,0)
      \psplot[algebraic]{0}{4}{-0.5*(x-2)^2+2}
      \psline(4,0)(4,0)


      \psline(5,0)(*5 {-0.5*(5-2)^2+2})
      \psplot[algebraic]{4}{5}{-0.5*(x-2)^2+2}
      \psline(4,0)(4,0)
      }

     \rput{0}(2,1){$A_{2}$}

    %plotting:
    \psplot[linecolor=red]{-1}{5}{-0.5*(x-2)^2+2}
\end{pspicture}

2 Answers 2

2

Use the star version of \rput:

\rput*(2,1){$A_2$}

enter image description here

0

Use \rput{0}(2,1){\pscirclebox*[framesep=0pt]{$A_{2}$}} or \rput{0}(2,1){\psframebox*[framesep=1pt]{$A_{2}$}}:

enter image description here enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.