I am not sure why your test does not work.  The function plot is probably 
itself a quite complex application of  pd calls.

I think what you are trying to do is just

load 'plot '

testp =: 3 : 0
pd 'reset'
z =: range 0 0.4 0.01
pd ((1+z) ; ^. 1+z) NB.  function
pd 'type line'
pd 'color red'
pd ((1+z); z)  NB.  approximation
pd 'show'
)

testp ''

----- Original Message ----- 
From: "Ian Clark" <[email protected]>
To: "Programming forum" <[email protected]>
Sent: Monday, November 14, 2011 5:46 PM
Subject: Re: [Jprogramming] Modified plot


I guess the problem I'm running up against is that:

pd 'new'
pd (sin;cos,: ]) range 1 7.5 0.5
pd  *: 0.1*i.160
pd 'show'

works with either of the two middle statements, but not both together,
the second obliterating the first. (Why not?)

I want to superimpose two differently structured data items, one of
which is able to form closed polygons but doesn't share the x-vector
of the other one.


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to