[pstricks] looks like a problem

Herbert Voss Herbert.Voss at FU-Berlin.DE
Wed Apr 4 10:43:49 CEST 2012


Am 04.04.2012 06:36, schrieb Cyrille Piatecki:

> I want to draw a Kolm triangle --- in economics it's an equilateral
> triangle which is the set where all allocations can be generated if
> there is a public good. As shown in the
> code I plot a fonction in cartesian coordinate and I apply \pstilt. But
> it seems that some part of the function which where initialy in the
> positive plan came in the negative one.

Cyrille,

use \psTilt instead of \pstilt:

\documentclass{article}
\usepackage{pst-3d,pst-plot}
\def\gr{%
   \psline[linecolor=red](4,5)(4,1)(8,1)
 
\psplot[origin={4,1},algebraic,linewidth=2pt,linecolor=blue]{.5}{4}{x^(-2)}%
}
\begin{document}

\begin{pspicture}[showgrid](3,0)(14,6)
\pspolygon[linecolor=green](4,1)(6,4.425)(8,1)
\gr%
\psarc(4,1){4cm}{0}{90}
\psarc(8,1){4cm}{90}{180}
\rput(5,0){\psTilt{60}{\gr}}
\end{pspicture}

\end{document}

Herbert


More information about the PSTricks mailing list