[pstricks] pstricks-add: Problems with psclip and psStep

Herbert Voss Herbert.Voss at FU-Berlin.DE
Tue Jul 21 09:02:30 CEST 2009


Marco Daniel schrieb:
> Hello,
> 
> first the minimal example:
> %=================%
> \documentclass{article}
> \pagestyle{empty}
> \parindent0pt
> \usepackage{pstricks}
> \usepackage{pst-plot}
> \usepackage{pstricks-add}
> 
> \begin{document}
> \def\pshlabel#1{$\tau_{#1}$}
>   \psset{unit=1cm,%
>       yAxisLabel={$u(t) , \widetilde{u}(t)$},xAxisLabel={$t$}}
> 
> \begin{psgraph}[labels=x,ticks=x,dx=10]{->}(0,0)(-1,0)(95,3.5){10cm}{8cm}
>             \psset{plotpoints=500,algebraic}
>             \psplot[linecolor=blue!70!black]{0}{90}{sqrt(sqrt(x+2))}
>             \psclip{%
> 
> \psStep[linewidth=0.8pt,linecolor=green!70!black,StepType=lower](0,90){9}{sqrt(sqrt(x+2))}
> 
> \psStep[linewidth=1.5pt,linecolor=red!70!black,StepType=Riemann](0,90){9}{sqrt(sqrt(x+2))}}
>             \endpsclip
>      \end{psgraph}
> \end{document}
> %=================%
> 
> I have the following problem the red line do not cover the green line. I
> hope you see it.

that is the default behaviour, because \psStep doesn't take
dime=inner|middle|outer into account.
Maybe that I'll find some time to change this ...

Herbert


More information about the PSTricks mailing list