3

I would like to draw the couple of spline curves in Latex. Is there anything I could use in tikz or other packages such that I could draw a spline curve by simply providing the control points value and knots vector?

  • I know about nothing on splines, but you might take a look at the pstricks pst-bspline package. – Bernard Oct 7 '15 at 22:52
  • 2
    If you tell us what one is, somebody can probably help you draw one. But a minimal example of what you've got so far would be much better. Especially if you need TikZ because this is part of a larger figure, say. Otherwise, why the obsession with TikZ? Enquiring minds need to know! – cfr Oct 7 '15 at 23:10
  • my guess is that NURBS are not supported by the postscript language (and the pdf counterpart) and does exist neither in Tikz nor in pstricks. – pluton Oct 8 '15 at 0:40
  • You may find this article useful: Howto: Draw algebraic curves using PGF/TikZ. – OSjerick Oct 8 '15 at 0:54
  • With TikZ or PSTricks, you can draw cubic Bézier curves... – Paul Gaborit Oct 8 '15 at 5:22
1

The pgfmanual on CTAN describes curved path contructions in chapter 2.4 on page 31.

\begin{tikzpicture}
\filldraw [gray] (0,0) circle [radius=2pt]
(1,1) circle [radius=2pt]
(2,1) circle [radius=2pt]
(2,0) circle [radius=2pt];
\draw (0,0) .. controls (1,1) and (2,1) .. (2,0);
\end{tikzpicture}

enter image description here

  • Also, 48.3 Path Replacing Decorations, pg 584, in TikZ Manual for Version 3.0.1a. – Sigur Jan 10 '18 at 13:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.