I have been trying an ugly workaround to put a plot along with its
associated data onto the same page and notice a problem in the output
format.
While I clearly specify the text spacing for the text data set
"dat=:10j0 ": i.3 8" ... when this is inserted into the plot routine all
spacing/formatting is lost.
This pd call tests out correctly
line=:2
'text 0 ',(":pos),'x ',line{dat
text 0 _70x 8 9 10 11
But in the final output .... all is 'scrunched'!
Does anybody have any ideas?
load 'plot'
multiplot=: verb define
pd 'reset'
pd 'sub 2 1'
pd 'new' NB. ** PLOT1 **
pd 'sub 10x 0 _1x _10x'
dat=:10j0 ": i.3 8
line=:0
pos=:_10
while. line<3 do.
pd 'text 0 ',(":pos),'x ',line{dat
pos=:pos-20
line=:line+1
end.
pd 'endsub'
pd 'new' NB. ** PLOT2 **
pd 'sub 10x 0 _1x _10x'
pd i.5 24
pd 'show'
)
multiplot ''
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm