Hello,

You can use plot object:

load 'plot numeric'
p1=.''conew'jwplot'
pd__p1 steps _1 1 10
pd__p1'title plot 1;show'
p2=.''conew'jwplot'
pd__p2 steps 4 12 10
pd__p2'title plot 2;show'

NB. cleanup later
destroy__p1 ''
destroy__p2 ''

BTW, multiplot is also cool.

Esa
-----Original Message-----
From: Programming [mailto:[email protected]] On Behalf 
Of Rudolf Sykora
Sent: Friday, July 14, 2017 10:19 AM
To: [email protected]
Subject: [Jprogramming] plot with two windows?

Hello,

I'd like to plot two graphs with plot in two different windows.
I expected this to do the work:

load 'plot numeric'
pd 'reset'
pd steps _1 1 10
pd 'new'
pd steps 4 12 10
pd 'show'

However, it just shows the second plot...
Can anybody help?

Thanks
Ruda
----------------------------------------------------------------------
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