[pstricks] By using pscustom different solution with pscurve

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sat Nov 7 14:55:29 CET 2009


Am 07.11.2009 13:40, schrieb Marco Daniel:

> I am sure that you can see the problem in the following example. I
> marked the regions with a red circle.


that is no problem, it is the default behaviour.
You have to use liftpen=1, then \pscurve didn't use
the current point as fifth coordinate

Herbert

\documentclass{article}
\parindent0pt
\pagestyle{empty}
\usepackage{pstricks-add}


\begin{document}

\begin{psgraph}[labels=none,ticks=none]{->}(0,0)(6.5,4.5){0.8\textwidth}{4cm}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=gray!30,linestyle=none]{%
  \pscurve[](0.5,0.1)(2,2.2)(4,0.3)(6,2.7)
  \psline(6,2.7)(6,4.1)
  \pscurve[liftpen=1](6,4.1)(4,2.1)(2,4.2)(0.5,1.3)}
\pscurve[linewidth=0.8pt](0.5,0.7)(2,3.2)(4,1.2)(6,3.4)
\pscurve[linewidth=0.6pt,linestyle=dashed](0.5,0.1)(2,2.2)(4,0.3)(6,2.7)
\pscurve[linewidth=0.6pt,linestyle=dashed](6,4.1)(4,2.1)(2,4.2)(0.5,1.3)
\pscircle[linecolor=red](1.5,1.7){0.4}
\pscircle[linecolor=red](5.2,2.9){0.4}
\end{psgraph}

\end{document}


More information about the PSTricks mailing list