<br>Dear all,<br>I have a problem with pscustom. I want to show the area under parabol x^2. <br><br>The problem is that I got unwanted hatched area.<br><br>In next code, the first picture is the one I want (and don't work): shadow x^2 from 0 to 1.<br>
Then, I repeated but from -1 to 1. And there, the result is as expected. <br><br>Maybe I don't understand how I should close the path in pscustom (??).<br>Thank you in advance,<br><br><br>\documentclass[a4paper]{article}<br>
\usepackage{pstricks,pstricks-add}<br>\begin{document}<br>\psset{algebraic=true,unit=2,linecolor=blue,fillstyle=hlines,fillcolor=gray,<br>  hatchwidth=0.4pt, hatchsep=1.5pt,hatchcolor=blue, unit=1, linewidth=0.7pt}<br><br>
\begin{pspicture}(1,1)<br>\psgrid<br>  \pscustom{%<br>    \moveto(0,0)<br>    \psplot{0}{1}{x^2}<br>    \psline(1,1)(1,0)<br>  }<br>\end{pspicture}<br>\hspace{4cm}<br>\begin{pspicture}(-1,0)(1,1)<br>\psgrid<br>  \pscustom{%<br>
    \moveto(-1,0)<br>    \psplot{-1}{1}{x^2}<br>    \psline(1,1)(1,0)<br>  }<br>\end{pspicture}<br><br>\end{document}<br><br>