Joey,

Below is a copy of the script in j60232 that produces both lines and
symbols on the same plot. It is taken from the demo named
Gallery|Curve Fitting. Perhaps type symbol would work more
predictably?

y=. 3 2 5 7 6 5 7 4
x=. i.#y
dat=. x,:y
m=. cubicspline dat
x2=. steps 0,(<:#y),50
y2=. m interspline x2
y3=. (3 lsfit dat) p. x2
y4=. (5 lsfit dat) p. x2
pd 'title Spline vs Cubic vs Quintic'
pd 'backcolor lightgray'
pd 'type symbol'
pd x;y
pd 'type line'
pd x2;y2,y3,:y4



-- 
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to