Ian,
As bill pointed out, the problem arises when you try to mix jzplot with jwplot.
jwplot is special and different from other instances of jzplot: on close it
tries to
save its position and location in config file (wpsave_j_ verb). To do that, it
performs wd 'psel plot'
AFTER wd 'psel ',PFormhwnd has already been performed in pclose_jzplot_. It
selects first
(random?) 'plot' form on a screen which may or may not be the form of jwplot.
Then when
wd 'pclose' comes, it closes whatever form was selected on previous step.
Immediate solution to this for me was to hack pclose_jzplot_ by moving wd 'psel
',PFormhwnd
right before wd 'pclose', where it properly belongs.
This did not help another problem: wpsave not saving coordinates of jwplot, but
of some other jzplot
currently open (because it issues wd 'psel plot'). I "solved" that one by
opening dummy jwplot first,
then jzplots i need.
BTW, I intentionally mix jwplot and jzplots because it is convenient to use
unqualified plot and pd to fine
tune the display and then freeze the result in one of the appropriate jzplots.
And when this leads to problems
like above, well, this is where the benefits of available source code kick in.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm