[pstricks] cspline in pst-plot

Luis Sequeira lfsequeira at gmail.com
Tue Jul 14 12:53:47 CEST 2015


> Dear all,
> 
> I am using pst-plot with cpsline option to draw smooth curves.
> 
> Here are two examples:
> 
> The first one is from the documentation and it works well. (spline in red,  curve in blue)
> The second one comes from my data and I got a curve (in blue) with a discontinuity (spline in blue, curve in green). Or I was thinking that cubic spline makes the curve without discontinuity up to the second order derivative.
> 
> Is there any trouble in the cspline algorithm or do I make a mistake somewhere?
> 
> Best regards,
> Patrice

You are not making any mistake, and there is no discontinuity. It just happens that the green curve completely covers the blue spline in that particular section.
If you change the order of the two \listplot commands you will see only the blue.

Luis Sequeira




More information about the PSTricks mailing list