Sorry - typo.  Last line of J should have been
      13!:0]0          NB. turn off debugging

On Tue, Mar 24, 2020 at 5:38 PM Devon McCormick <devon...@gmail.com> wrote:

> Hi - I did this:
>    load 'plot'
>    13!:0]1           NB. Enable debugging
>    plot 1 2;3 4 5
> |length error: getgrafmat
> |   ,"2(getgrafx x)    ,."1 citemize getgrafy y
> |getgrafmat[1]
>       y
> 3 4 5
>       x
> 1 2
>      13!:0]10          NB. turn off debugging
> So, this is a legitimate error caused by the bad input "1 2;3 4 5".  Try
> using a better input like "1 2 3;4 5 6".
>
> Regards,
>
> Devon
>
> On Tue, Mar 24, 2020 at 5:09 PM Rudolf Sykora <rsyk...@disroot.org> wrote:
>
>> Dear Henry,
>>
>>
>> Henry Rich <henryhr...@gmail.com> writes:
>> >
>> > I did look into it a little, and you could do the same.  This is what I
>> > did (in JQt):
>> >
>> >     plot 1 2 ; 3 4 5
>> > crash - before the crash a dialog about length error in getgrafmat.
>> > Indeed, the arguments have incorrect length.
>> >     load 'plot'
>> >     open 'plot'
>> > seems to use jzplot
>> >     open'jzplot'
>> > ahh, there's the source.  Look for getgrafmat.  It is:
>> >
>> > getgrafmat=: 3 : 0
>> > 'x y'=. 2 {. y { Data
>> > ,"2 (getgrafx x) ,."1 citemize getgrafy y
>> > )
>> > Perhaps it dies right there.  Let's see.  Change the function to:
>> >
>> > getgrafmat=: 3 : 0
>> > 'x y'=. 2 {. y { Data
>> > '1' 1!:2 <'C:/JPrograms/errfile.txt'
>> > res =. ,"2 (getgrafx x) ,."1 citemize getgrafy y
>> > '2' 1!:2 <'C:/JPrograms/errfile.txt'
>> > res
>> > )
>> >
>> > <lots of blundering around omitted>
>> >     plot 1 2 ; 3 4 5
>> > crash - errfile.txt has been created, containing '1'.
>> >
>> > Thus the system crashed, presumably in JQt, displaying the dialog for
>> > the length error.
>>
>> I did what you write with the exactly same result. There is '1' in the
>> errfile.txt.
>>
>>
>> > Try reinstalling.  If it still fails report again.  Make sure you
>> report
>> > you system version and JQt version.
>>
>> So I tried and reinstalled j901. It still crashes.
>>
>> Window 10 Pro, x64-based processor, Intel Core i5-8250U.
>> 1.0.193 is the version of the 'plot' addon.
>>
>> in About I read:
>>
>> Engine: j901/j64avx2/windows
>> Release-e: commercial/2020-01-29T11:17:19
>> Library 9.01.21
>> Qt IDE 1.8.6.s/5.12.7(5.12.7)
>> Platform Win64
>>
>>
>> Thanks,
>> Ruda
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
>
>
> --
>
> Devon McCormick, CFA
>
> Quantitative Consultant
>
>

-- 

Devon McCormick, CFA

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

Reply via email to