The error you reported was 0 255 0 dpoly p1
|psel : command failed: psel : wd ... If we inspect dpoly, we see this line: wd 'psel ',WIN_nam In a fresh session: require'~addons/graphics/fvj4/dwin.ijs' _1 _1 1 1 dwin 'hello' WIN_nam p1 If I close the window opened by dwin, I get the error you reported. If I run _1 _1 1 1 dwin 'hello' again, WIN_name becomes 'p2' and if I run wd 'psel p2' it completes without error. Is there any chance you have been closing the window created by dwin before running dpoly? Thanks, -- Raul On Mon, May 22, 2023 at 2:53 PM Nils Reuße <[email protected]> wrote: > > After performing „install ‚all‘“, 13 packages were updated and drawing with > dpoly worked in that JQT terminal (I tried it once). > > I then closed the JQt terminal and reopened it, and now, the error is back - > I also tried Devons advice and opened a larger dwin, but to no avail :( > > > P.S. Is updating all packages common practice in the J world? Feels like > using a rolling release linux distribution ;) > > > > > Am 22.05.2023 um 22:19 schrieb Raul Miller <[email protected]>: > > > > I was not able to reproduce the issue in j9.4 (nor in the j9.5 beta) > > > > That said, I had performed > > install'all' > > > > before attempting. > > > > FYI, > > > > -- > > Raul > > > > On Mon, May 22, 2023 at 1:13 PM Devon McCormick <[email protected]> wrote: > >> > >> I was able to get this to work by setting up a drawing window like this > >> before trying "0 255 0 dpoly p1": > >> > >> _2 _3 2 3 dwin 'example' > >> > >> > >> > >> On Mon, May 22, 2023 at 4:09 PM Devon McCormick <[email protected]> wrote: > >> > >>> Trying to reproduce this error, I get a different error at the same step > >>> (for version 9.4.22 on Windows 10 running JQt): > >>> > >>> |value error: SC > >>> > >>> | Y=.x:^:_1 SC 2{."1 y > >>> > >>> I will look into this and report what I find. > >>> > >>> > >>> On Mon, May 22, 2023 at 4:03 PM Nils Reuße <[email protected]> wrote: > >>> > >>>> Hi all, > >>>> > >>>> I bought Part 1 of Cliff Reiters book "Fractals, Visualization and J, > >>>> Fourth edition“ and am trying out the introduction examples. > >>>> > >>>> It first tells me to load an add-on, dwin.ijs [1], and then to create a > >>>> window, which works: > >>>> > >>>> load '~addons/graphics/fvj4/dwin.ijs' > >>>> _1 _1 1 1 dwin 'hello' > >>>> > >>>> Now, some data is created in p1: > >>>> > >>>> ]p1=: |:2 1 o./ 1r4p1*i.5 > >>>> 1 0 > >>>> 0.707107 0.707107 > >>>> 6.12323e_17 1 > >>>> _0.707107 0.707107 > >>>> _1 1.22465e_16 > >>>> > >>>> And finally, the data is supposed to be drawn with ‚dpoly‘, which fails: > >>>> > >>>> 0 255 0 dpoly p1 > >>>> > >>>> |psel : command failed: psel > >>>> : wd > >>>> | (LF,~wd ::(''"_)'qer') (13!:8)3 > >>>> > >>>> > >>>> The book states that the examples were tested with J8.04, I’m on > >>>> J9.4.2/j64arm/darwin. There is an official repository containing the code > >>>> for the book [2], but it might be out of date anyways. > >>>> > >>>> Is the code incompatible with J9.4 or am I doing something wrong? > >>>> > >>>> - Nils > >>>> > >>>> > >>>> [1] https://github.com/jsoftware/graphics_fvj4/blob/master/dwin.ijs > >>>> [2] https://github.com/jsoftware/graphics_fvj4 > >>>> ---------------------------------------------------------------------- > >>>> 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 > > ---------------------------------------------------------------------- > > 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
