2

I'd like to create a contour diagram based off the following template

\documentclass[pstricks,border=12pt]{standalone}
\usepackage{pstricks-add,pst-eucl}

\psset
{
        PointName=none,
        PointSymbol=none,
        linecap=1,
        linecolor=red,
}

\def\Radius{1.8}
\def\radius{0.5}
\def\Angle{2.5}

\begin{document}
\begin{pspicture}[showgrid=false](-3,-3)(3,3)
    \psaxes[labels=none,ticks=none,linecolor=gray]{->}(0,0)(-3,-3)(2.7,2.7)[$\textbf{Re}\, z$,-90][$\textbf{Im}\, z$,180]
    \pstGeonode 
        (0,0){O}
        (\Radius;\Angle){A}
        (\Radius;90){B}
        (\Radius;-90){C}
        (\Radius;-\Angle){D}
        (\radius;0|D){E}
        (\radius;0|A){F}
    \pstArcOAB[arrows=->,arcsepB=-3pt]{O}{A}{B}
    \pstArcOAB[arrows=->,arcsepB=-3pt]{O}{B}{C}
    \pstArcOAB{O}{C}{D}
    \pstLineAB[ArrowInside=->]{D}{E}
    \pstArcnOAB{O}{E}{F}
    \pstLineAB[ArrowInside=->]{F}{A}
    %labeling
    \psset{labelsep=2pt}
    \uput[45](\Radius;45){$\Gamma$}
    \uput[135](\radius;135){$\gamma$}
    \uput[-45](\Radius;0){$R$}
    \uput[-135](\Radius;180){$-R$}  
\end{pspicture}
\end{document}

which I borrowed from this post. The problem is the font is too big. Is there a way to set the fontsize/family globally so that it would apply to the entire file?

Actually, one more question: I'd like to use \psComment for annotations, but I wasn't able to figure out how make multiline annotations. Would appreciate any help.

  • 1
    For the second part (multiline annotations), you can use a \parbox, as in \psComment[ref=l,angleA=180](1,-1)(0,0){\parbox{4cm}{\large Origin \\ more text}}[\ncdiagg]. – Gonzalo Medina Jun 18 '15 at 1:00
  • Thanks, I've also found another solution: to use \shortstack[c]{Line 1\\Line 2} – Alex Jun 18 '15 at 14:52
3

Very simply: add, say, footnotesize to your code:

enter image description here

| improve this answer | |
  • Thanks, I actually ended up increasing the dimensions of the picture (by adjusting xunit/yunit). That made the font appear in scale with everything else in the picture. – Alex Jun 18 '15 at 14:56
  • That's the simplest thing to do indeed. Note choosing a font size for figures slightly smaller than current font size looks fine usually. – Bernard Jun 18 '15 at 14:59

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.