[pstricks] cspline prroblem

Patrice MEGRET Patrice.MEGRET at umons.ac.be
Mon Aug 28 18:04:55 CEST 2017


Dear list,

There is a small problem with cspline curve fitting from pst-plot:  the cubic spline curve shows a discontinuity at point (514,0) but for a cubic spline the curve and its slope should be continuous.
Do you have the same behavior?

Best regards,
Patrice

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
%\usepackage[french]{babel}

\usepackage{filecontents}

\usepackage{pst-plot}

\begin{document}

\begin{filecontents*}{datatestspline.dat}
0, 0
214, 2
480, 0.1
514, 0
600, 1
625, 4
640, 0.5
656, 1
700, 0
\end{filecontents*}

\readdata{\pmtest}{datatestspline.dat}

\begin{psgraph}[Dy=1,Dx=200,ticks=x,labels=x]{->}(0,0)(850,4.5){6cm}{5cm}
\listplot[showpoints=true,linecolor=orange,plotstyle=cspline]{\pmtest} %
\end{psgraph}
\end{document}





UMONS
__________________________________________________________
Prof. Dr Ir Patrice Mégret
Université de Mons - University of Mons
Faculté Polytechnique - Faculty of Engineering
Head of Electromagnetism and Telecommunication Department
Boulevard Dolez 31
7000 Mons
Belgium
+32(0)65/37.41.91 (direct)
+32(0)65/37.41.47 (secretary)
+32(0)65/37.41.99 (fax)
Site web telecom<http://www.umons.ac.be/telecom>
Staff<people.umons.ac.be/patrice.megret>
Page personnelle<http://www.telecom.fpms.ac.be/umons/member.asp?au=PM>
__________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20170828/9f83921a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testspline.pdf
Type: application/pdf
Size: 6479 bytes
Desc: testspline.pdf
URL: <http://tug.org/pipermail/pstricks/attachments/20170828/9f83921a/attachment-0001.pdf>


More information about the PSTricks mailing list