[pstricks] problem with pscustom

Herbert Voss Herbert.Voss at FU-Berlin.DE
Fri Jun 8 07:25:43 CEST 2012


Am 07.06.2012 22:20, schrieb Kin Mye:

> In my previous post I attached an image of the problem when I compile
> the file
>
> http://tug.org/PSTricks/pst-plot/Examples/plot19.tex
>
> whithout any change.

If you do not know the intersection points then you have
to clip the area:

\listfiles
\documentclass{article}
\usepackage{pst-plot}
\begin{document}
\psset{xAxisLabel=$x$,yAxisLabel=$y$,plotpoints=1000}%
\def\F{x 2 mul sqrt}%
\def\f{x 2 sub dup mul 8 div 1 add}

\begin{psgraph}[ticksize=0,arrowscale=1.5,labels=none,linewidth=0.5pt]{->}%
    (0,0)(-0.1,-0,1)(8,5){0.5\linewidth}{0.5\linewidth}%
%  \psplot{0}{7}{\F} \psplot{0}{7}{\f}%
\psclip{%
   \pscustom[linestyle=none]{\psplot{0}{7}{\F}\psline(7,0)(0,0)(0,1)}
   \pscustom[linestyle=none]{\psplot{7}{0}{\f}}}
   \psframe[fillstyle=hlines,hatchsep=4pt,hatchcolor=blue](8,8)
\endpsclip
\end{psgraph}
\end{document}


Herbert


More information about the PSTricks mailing list