Otherwise (having just looked in the Labs) I think the "pd" verb may allow
you to plot different size data on the same plot.  I haven't used it yet,
I'll check it out now, but it may be what you need.


On 25 April 2014 06:36, Alex Giannakopoulos <[email protected]> wrote:

> ... contd
>
> Using (]+0j1*P) or similar
>
> Also I think the intervals must be the same on one plot.  If you try to
> mix an 8-interval with a 32-interval matrix, the 8-matrix will get padded
> with 0s or 0j0s, rendering a nice spider's web in the latter case.  You
> will need to pad the 8-matrix with the values of the terminal points to
> avoid this.
>
>
> On 25 April 2014 06:15, alexgian <[email protected]> wrote:
>
>> Further, you seem to have specified your grid in the Argand plane, I
>> don't think you can mix and match with reals just like that (I may be wrong
>> - certainly no expert on J plotting).
>> So you'd have to translate your parabola to complex coords if you wanted
>> to display it in the same context, I think.
>>
>>
>> On 25 April 2014 06:00, alexgian <[email protected]> wrote:
>>
>>> Not quite sure what you're trying to do, but would this be a step in the
>>> right direction?
>>>
>>>
>>>    load 'plot'
>>>
>>>    do=: 13 :'({.y) +(i.>:{:y)*(--/ 2{.y)%{:y'
>>>
>>>    G=:do _2 2 32
>>>
>>>    P=: 2 <. *:
>>>
>>>    plot (];P) G
>>>
>>>
>>> In your version you have not specified x-coordinates, so it picks 0-32.
>>>
>>> By using ] you specify the x-range
>>>
>>>
>>> Also note that that you do not need "do", there is a plot builtin called
>>> "steps":
>>>
>>>    plot (];P) steps _2 2 32
>>>
>>> would achieve the same result
>>>
>>>
>>>
>>>
>>>
>>> On 25 April 2014 01:25, Linda Alvord <[email protected]> wrote:
>>>
>>>> Can anyone help me put the parabola, P, on the graph paper without
>>>> changing
>>>> the scales of the graph paper.
>>>>
>>>>    load 'plot'
>>>>    do=: 13 :'({.y) +(i.>:{:y)*(--/ 2{.y)%{:y'
>>>>    A=:do _2 2 8
>>>>    V=:j./~ A
>>>>    H=:|:|. V
>>>>    'pensize 2;color 50 255 255' plot H,V
>>>>
>>>>    f=:*:
>>>>    'pensize 2;color BLUE' plot P=: 2 <. f do _2 2 32
>>>>
>>>> Linda
>>>> ----------------------------------------------------------------------
>>>> 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