I can't seem to get the plot option "visible" to work consistently.
Using the plot definition below in a new session (either J601 or J602)

tstplot=: 3 : 0
pd 'new 40x 20x -40x -70x'
pd 'title sin(exp) vs cos(exp)'
pd 'color red,green'
pd 'key sin(exp),cos(exp)'
x=. steps _1 2 100
pd x;sin ^x
pd x;cos ^x
pd 'visible 0'
pd 'isi'
pd 'save png'
)

The first time I run it, everything works fine.
  tstplot ''
12805

(~temp/plot.png file is written and no isigraph form displayed)

If I now redefine the tstplot verb, changing the 'visible 0' to 'visible
1', and rerun, then there is still no isigraph form displayed.

If the first time I run tstplot'' in a session, I use 'visible 1'. Then
the isigraph is displayed OK. Changing to 'visible 0' the isigraph is
correctly not displayed, but changing back to 'visible 1' again doesn't
work.

Is there something else I should be doing (I've tried pd 'reset' with no
luck) or is this a bug?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to