[pstricks] Intersecting ellipses

Herbert Voss Herbert.Voss at alumni.TU-Berlin.DE
Wed Nov 26 16:15:16 CET 2003


Jan Eden wrote:

> \begin{pspicture}*(9,4)
> \psellipse(3,2)(3,1)
> \rput(2,3.5){epistemische Indizes}
> \psline{->}(2,3.2)(2,2)
> \psellipse(6,2)(3,1)
> \rput(7,0.5){faktische Indizes}
> \psline{->}(7,0.7)(7,2)
> \rput(4.5,2){\parbox{1.5cm}{\small realistische Indizes}}
> \end{pspicture}
> 
> I would like to have the intersection ("realistische Indizes") coloured in lightgray while the margins of the ellipses remain visible.
> 
> How do I do that?

with psclip

Herbert


\documentclass[12pt]{article}
\thispagestyle{empty}
\parindent=0pt
\usepackage{pst-all}
\begin{document}

\begin{pspicture}(9,4)
\begin{psclip}{\psellipse(3,2)(3,1)}
	\psellipse[fillstyle=solid, fillcolor=lightgray](6,2)(3,1)
\end{psclip}
\psellipse(3,2)(3,1)
\psellipse(6,2)(3,1)
\rput(2,3.5){epistemische Indizes}
\psline{->}(2,3.2)(2,2)
\rput(7,0.5){faktische Indizes}
\psline{->}(7,0.7)(7,2)
\rput(4.5,2){\parbox{1.5cm}{\small realistische Indizes}}
\end{pspicture}

\end {document}



-- 
http://www.pstricks.de/




More information about the PSTricks mailing list