Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Splines simple problem' topicStudent Support Forum > General > "Splines simple problem"

Next Comment >Help | Reply To Topic
Author Comment/Response
Tobi
12/05/06 02:24am

Hi,

i can't get the spline example to work.

In[177]:=
<<Graphics`Spline`

In[180]:=
<<Graphics`Spline`

In[181]:=
pts={{0,0},{1,2},{-1,3},{0,1},{3,0}};

In[182]:=
Show[Graphics[{Hue[0],Line[pts],GrayLevel[0],Spline[pts,Cubic]}],PlotRange->All]

From In[182]:=
Spline::args: The spline object Spline[\[InvisibleSpace]{{0,0},{1,2},{-1,3},{0,1},{3,0}}\[InvisibleSpace],\[InvisibleSpace]Cubic\[InvisibleSpace],<>] is not a valid 2D spline of the form Spline[pts, type, (SplineFunction[...]), (opts)], and cannot be rendered.

Why is there this error. I just used copy and paste?

Thanks

Tobi

URL: ,

Subject (listing for 'Splines simple problem')
Author Date Posted
Splines simple problem Tobi 12/05/06 02:24am
Re: Splines simple problem yehuda ben-s... 12/05/06 10:37am
Next Comment >Help | Reply To Topic