[pstricks] PSTricks Digest, Vol 111, Issue 3
Cyrille Piatecki
cyrille.piatecki at univ-orleans.fr
Fri Apr 6 11:24:34 CEST 2012
Le 04/04/2012 12:00, pstricks-request at tug.org a écrit :
> Send PSTricks mailing list submissions to
> pstricks at tug.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://tug.org/mailman/listinfo/pstricks
> or, via email, send a message with subject or body 'help' to
> pstricks-request at tug.org
>
> You can reach the person managing the list at
> pstricks-owner at tug.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of PSTricks digest..."
>
>
> Today's Topics:
>
> 1. looks like a problem (Cyrille Piatecki)
> 2. Re: looks like a problem (Herbert Voss)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 4 Apr 2012 06:36:59 +0200
> From: Cyrille Piatecki<cyrille.piatecki at univ-orleans.fr>
> To:<PSTricks at tug.org>
> Subject: [pstricks] looks like a problem
> Message-ID:<4F7BCFEB.6060301 at univ-orleans.fr>
> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
>
> Dear all,
>
> 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.
>
> I must have make a mistake but I dont know which.
>
> Thank for the help
>
> Cordialy
>
> Cyrille Piatecki
>
> PS Here is the code
>
> %&latex
> \documentclass{article}
> \usepackage[T1]{fontenc}
> \usepackage[francais]{babel}
> \usepackage{latexsym}
> \usepackage{amsmath}
> \usepackage{amssymb}
> \usepackage{graphicx}
> \usepackage{pstricks,pst-node,pst-slpe,pst-blur,cmykcolors,pst-solides3d,pst-bar,pst-func}
> \usepackage{pst-2dplot,pst-transform,pst-fun,pst-text}
> \usepackage{pst-plot,pst-tools,pst-eucl}
> \usepackage{pstricks-add}
> \begin{document}
> %\begin{figure}
> \begin{center}
> \begin{pspicture}(3,0)(14,6)
> \psgrid
> \def\gr{
> \psline[linecolor=red](4,5)(4,1)(8,1)
> \psset{origin={4,1}}
> \psplot[algebraic,linewidth=2pt,linecolor=blue]{.5}{4}{x^(-2)}
> }
> \pspolygon[linecolor=green](4,1)(6,4.425)(8,1)
> \gr
> \psset{origin={0,0}}
> \psarc(4,1){4cm}{0}{90}
> \psarc(8,1){4cm}{90}{180}
> \psset{origin={-.6,0.2}}%<-
> \rput(5,0){\pstilt{60}{\gr}}
> \end{pspicture}
> \end{center}
> \end{document}
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 4 Apr 2012 10:43:49 +0200
> From: Herbert Voss<Herbert.Voss at FU-Berlin.DE>
> To: Graphics with PSTricks<pstricks at tug.org>
> Subject: Re: [pstricks] looks like a problem
> Message-ID:<4F7C09C5.3050802 at FU-Berlin.DE>
> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
>
> 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
>
>
> ------------------------------
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
>
> End of PSTricks Digest, Vol 111, Issue 3
> ****************************************
>
Dear Herbert,
I wonder why I am oblige to put the tilted graph not exactly at (4,
0) but at (4.4,0) from in such a way it be posed in (9,1). Where is my
mistake? Secondly I have tried also to use
\pscisaillement[cisX=60]{\gr} from the psy=t-transform package but it
seems to have a weird comportment between the curve and the line.
Here is the code
%\begin{figure}
\begin{center}
\psscalebox{.8 .8}{
\begin{pspicture}(3,0)(14,6)
\psgrid
\psline[linestyle=dashed](9,1)(9,5)
\psarc[linestyle=dashed]{<-}(9,1){4cm}{65}{85}
\def\gr{
\psline[linecolor=red](4,5)(4,1)(8,1)
\psset{origin={4,1}}
\psplot[algebraic,linewidth=2pt,linecolor=blue]{.5}{4}{x^(-2)}
}
\pspolygon[linecolor=green](4,1)(6,4.425)(8,1)
\gr
\psset{origin={0,0}}
\psarc[linestyle=dashed,linewidth=.6pt](4,1){4cm}{0}{90}
\psarc[linestyle=dashed,linewidth=.6pt](8,1){4cm}{90}{180}
\rput(4.4,0){\psTilt{60}{\gr}}
\psset{origin={5,0}}
\pspolygon[linecolor=green](4,1)(6,4.425)(8,1)
\end{pspicture}}
%\caption{\textsc{}}\label{}
\end{center}
%\end{figure}
Cordialy
More information about the PSTricks
mailing list