Google Charts is harder at first but would be a good investment as it is 
the basis of the jgc verb (J Google Charts) used in the jhs version of 
J701.  jgcx'' gives several examples of what is possible including 
putting several graphs in the same display.  You probably need the 
xlinexy feature as in


    'reset xlinexy &chs=360x270 show' jgc 1 2 3 2 ; 0 1 0 0.5

to show a path from 1 0 to 2 1 to 3 0 to 2 0.5 .

It is easy to get multiple paths each with its own color and label, see 
examples provided by jgcx'' .  (For multiple paths append additional x 
and y coordinate boxes.)

You may not even need

http://code.google.com/apis/chart/

On 11/13/2011 11:23 PM, Ian Clark wrote:
> ok folx, don't worry -- I think I'm going to use turtle graphics. Will
> be far simpler and quicker to adapt to what I want to do.
>
>
> On Mon, Nov 14, 2011 at 4:46 AM, Ian Clark<[email protected]>  wrote:
>> 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.
>>
>>
>> On Mon, Nov 14, 2011 at 1:07 AM, Ian Clark<[email protected]>  wrote:
>>> Thanks, Fraser.
>>>
>>> Yes, having my mind on other things I was hoping not to have to go
>>> down to the pd level, and wondering if someone's done it already for
>>> me.
>>>
>>> "Really quite easy" when you get down to it. Nothing an evening or
>>> three won't sort out. Then I can get down to the real problem.
>>>
>>>
>>> On Mon, Nov 14, 2011 at 12:47 AM, Fraser Jackson
>>> <[email protected]>  wrote:
>>>> Using the low-level verb  pd  in the plot package gives you complete 
>>>> control
>>>> of  overlaying plots on the same scales.  See the help on Plot/ Verbs  and
>>>> definitions in the plot demos.
>>>>
>>>> ----- Original Message -----
>>>> From: "Ian Clark"<[email protected]>
>>>> To: "Programming forum"<[email protected]>
>>>> Sent: Monday, November 14, 2011 12:54 PM
>>>> Subject: [Jprogramming] Modified plot
>>>>
>>>>
>>>>> j602 Plot Package question...
>>>>>
>>>>> How best can I superimpose a polygon (ideally drawn using the same x,y
>>>>> coords) on a Plot window generated by eg:
>>>>>    'line' plot XX ; YY
>>>>> where XX is x-positions generated by (say) steps 0 10 100
>>>>> and YY is corresponding y-data?
>>>>>
>>>>> Purpose: to view the behavior of candidate curve-following algorithms.
>>>>> YY is the curve to be followed. The polygon will show the attempts to
>>>>> follow it.
>>>>> ----------------------------------------------------------------------
>>>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>>>
>>>> ----------------------------------------------------------------------
>>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>>>
>>>
>>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to