[pstricks] psplot and continuity
Loïc
xlogo at free.fr
Fri Jul 18 20:27:33 CEST 2008
Hi everyone
I draw the function tangent with this code:
\documentclass[10pt]{article}
\usepackage{pstricks,pstricks-add,pst-math,pst-xkey}
\begin{document}
\psset{xunit=1.0cm,yunit=1.0cm,algebraic=true,dotstyle=*,dotsize=3pt
0,linewidth=0.8pt,arrowsize=3pt 2,arrowinset=0.25}
\begin{pspicture*}(-4.3,-3.88)(8.38,6.3)
\psaxes[xAxis=true,yAxis=true,Dx=1,Dy=1,ticksize=-2pt
0,subticks=2]{->}(0,0)(-4.3,-3.88)(8.38,6.3)
\psplot[plotpoints=200]{-4.3}{8.38}{tan(x)}
\rput[bl](-4.2,-2.58){$f$}
\end{pspicture*}
\end{document}
I would like to prevent discontinuity on the plotted functions.
Remark:
- Before discontinuity, the slope is around 20
- After discontinuity, the slope is around -20
I think It would be wonderful if the \psplot command implement an
argument specifying the maximum slope jump allowed between two points.
For example:
\psplot[plotpoints=200,max_slope=10]{-4.3}{8.38}{tan(x)}
won't connect any points with a slope difference greater than 10.
Do you think it will be possible?
Thanks in advance
Loïc
More information about the PSTricks
mailing list